Red Hat Bugzilla – Bug 1027133
Default rhq-data directory location is incorrect
Last modified: 2014-01-02 15:39:50 EST
Description of problem:
static final String DEFAULT_DATA_DIR = "../../../rhq-data/data";
which is one level above the parent directory of rhq-server.
We have following directory structure:
so when running ./rhqctl install it tries to install rhq-data to /home which fails because of write permissions
See commit 85aa4b31
This is on purpose, as this way you can install a new version of the rhq-server next to the existing one, that uses the same data dir and then wipe the old server directory.
If the data directory of the storage node would be inside the rhq-server, you could loose it that way or you would have to manually move it around.
Solution: don't install the server into /home/hudson, but /home/hudson/rhq
The default location is the same. The change for the default location was made in bug 1002226. The only change is to use relative paths, and the reason for doing so is explained in comment 1.
Correction from comment 2. The default location *should be* the same. The changes I made for bug 1018213 moved the default directory one level up. I will go ahead and fix this.
*** Bug 1027245 has been marked as a duplicate of this bug. ***
This issue has been fixed as part of bug 1018213, the check permissions method was checking the wrong directory for write permissions.
release/jon3.2.x branch commit:
Moving to ON_QA as available for testing with new brew build.
Build Number :