build symlink for activemq-data dir#38
build symlink for activemq-data dir#38cliles wants to merge 1 commit intopuppetlabs-toy-chest:masterfrom
Conversation
|
The problem is that activemq package as of 5.9 has a different set of configuration. The one provided in the rpm package is correct. The one in puppet module (the static as well as the template), though, appears to be outdated, so it is not pointing activemq to the right data directories. |
There was a problem hiding this comment.
Should the target here be /var/cache/activemq/data? (which is where /usr/share/activmeq/data links to)
There was a problem hiding this comment.
Same problem here with ActiveMQ 5.9.1 on EL7
activemq-5.9.1-2.el7.noarch
2015-08-20 20:19:13,627 [main ] INFO SharedFileLocker - Database activemq-data/puppetserver4.hacklab/KahaDB/lock is locked... waiting 10 seconds for the database to be unlocked. Reason: java.io.IOException: Failed to create directory 'activemq-data/puppetserver4.hacklab/KahaDB'
Thanks for the patch jlambert121
|
Just to add that the same applies to RHEL6. I fixed it manually by adding the missing link, just a quick workaround test, and the activemq started to work. The patch above is wrong as @jlambert121 jlambert121 says. The version check should be the other way imo. I made a check that if greater than 5.9, do the link. This made it work: |
|
|
When using this module with the puppetlabs activemq rpm on an el7 box, the data dir is not setup correctly. This results in a java process that is forever stuck trying to start activemq, no ports bound, just infinite loop in the log about how the data directory can not be created.