Bug 1128172

Summary: prefs.xml file disappears
Product: [Other] RHQ Project Reporter: Yulia <prudius>
Component: AgentAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.6CC: gerhard.dreschler, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Yulia 2014-08-08 13:49:27 UTC
Description of problem:
prefs.xml file disappears after agent restart with the ./rhq-agent-wrapper.sh start and stop command

How reproducible:

Steps to Reproduce:
1.Server and agent isntalled
2.restart the agent with the ./rhq-agent-wrapper.sh start and stop command

Actual results:
sometimes after the stop command the ~/.java/.userPrefs/rhq-agent/default/prefs.xml file disappears
and the agent cannot register to the server as the token uis unknown

Expected results:
agent can successfully register to the server

Additional info:
two files were added:
after reproducing the problem, the end of the agent.log and the content of the .java/.userPrefs/
continuously displayed