JON 3.2.0 Agent install fails if the install user has no home directory
Issue
JON 3.2.0 installs fails while installing the agent. Why is it failing to get a file lock? What other permissions does it need
INFO [org.rhq.server.control.command.Install] Configuring the RHQ agent with default configuration file: /opt/jboss/jon/rhq-agent/conf/agent-configuration.xml
ERROR [org.rhq.server.control.command.Install] An error occurred while configuring the agent: Couldn't get file lock.
ERROR [org.rhq.server.control.RHQControl] Couldn't get file lock.
Installation was done using the command rhqctl install --start
Full agent console log snippet
===== RHQ AGENT INSTALL =====
Installing Agent To: /opt/jboss/jon
Version: 4.9.0.JON320GA
Build Number: 734bd56
Jar File: /opt/jboss/jon/jon-server-3.2.0.GA/modules/org/rhq/server-startup/main/deployments/rhq.ear/rhq-downloads/rhq-agent/rhq-enterprise-agent-4.9.0.JON320GA.jar
[install] [echo] Extract the agent distro zip from the agent update binary
[install] [unjar] Expanding: /opt/jboss/jon/jon-server-3.2.0.GA/modules/org/rhq/server-startup/main/deployments/rhq.ear/rhq-downloads/rhq-agent/rhq-enterprise-agent-4.9.0.JON320GA.jar into /opt/jboss/jon/jon-server-3.2.0.GA
[install] [echo] Unzip the agent distro into the new installation directory
[install] [unzip] Expanding: /opt/jboss/jon/jon-server-3.2.0.GA/rhq-enterprise-agent-4.9.0.JON320GA.zip into /opt/jboss/jon
[install] [echo] chmod +x on executables under /opt/jboss/jon/rhq-agent
[install] [echo] Remove the agent distro zip
[install] [delete] Deleting: /opt/jboss/jon/jon-server-3.2.0.GA/rhq-enterprise-agent-4.9.0.JON320GA.zip
[install] [echo] DONE! Agent version 4.9.0.JON320GA (build number=734bd56) has been installed to /opt/jboss/jon
10:47:23,003 INFO [org.rhq.server.control.command.Install] The agent installer finished running with exit value 0
10:47:23,004 INFO [org.rhq.server.control.command.Install] Configuring the RHQ agent with default configuration file: /opt/jboss/jon/rhq-agent/conf/agent-configuration.xml
10:47:24,579 ERROR [org.rhq.server.control.command.Install] An error occurred while configuring the agent: Couldn't get file lock.
10:47:24,581 ERROR [org.rhq.server.control.RHQControl] Couldn't get file lock.
10:47:24,582 WARN [org.rhq.server.control.command.Install] UNDO: Removing agent install directory
10:47:24,599 WARN [org.rhq.server.control.command.Install] UNDO: Removing server-installed marker file and management user
10:47:24,600 WARN [org.rhq.server.control.command.Install] UNDO: Stopping component: --server
Trying to stop the RHQ Server...
RHQ Server (pid=11557) is stopping...
.. ..
Environment
- Red Hat JBoss Operations Network (JON) 3.2.0
- Install user has no home directory
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.