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: /home/hudson/rhq-server-4.10.0-SNAPSHOT so when running ./rhqctl install it tries to install rhq-data to /home which fails because of write permissions Version: rhq-server-4.10.0-SNAPSHOT d3ea23b 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: https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=release/jon3.2.x&id=6e09ef87a476b15c7853a7f7837374ddab7344b7 Please retest.
Moving to ON_QA as available for testing with new brew build.
Verified on Version : 3.2.0.ER6 Build Number : f7dcd50:643508a