linux - JBoss user permissions -
i've upgraded jboss eap 6.2.0ga 6.3.0ga, , run problem after installing activemq embedded module. same configuration working on windows computer, believe sort of centos permissions issue.
info [org.apache.activemq.store.sharedfilelocker] (starting activemq broker) database activemq-data/kahadb/lock locked... waiting 10 seconds database unlocked. reason: java.io.ioexception: failed create directory 'activemq-data/kahadb'
note has no problem writing logs or anything. it's damn activemq related permission.
the issue occurs if run service. i.e. service jboss-as start
if run bin/standalone.sh & works fine.
i've given jboss.jboss user ownership on related jboss now, , chmod 755 everything. (there's lot of confusing info jboss:jboss or jboss.jboss refer user in jboss group. neither works.)
chown -fr jboss.jboss /usr/share/jboss-eap-6.3/ chown jboss.jboss /usr/share/jboss-as chown jboss.jboss /etc/init.d/jboss-as chown jboss.jboss /etc/jboss-as/jboss-as.conf
i've done
ln -s -t /usr/share/jboss-eap-6.3 /usr/share/jboss-as ln -s -t /usr/share/jboss-eap-6.3/bin/init.d/jboss-as-standalone.sh /etc/init.d/jboss-as ln -s -t /usr/share/jboss-eap-6.3/bin/init.d/jboss-as.conf /etc/jboss-as/jboss-as.conf
my mgmt-groups.properties has:
jboss=jboss, admin, superuser
not know particularly how helps.
my mgmt-users.properties has:
jboss=6ca43af9943e59f1563a1ff04472a8f9
suggesting add-user.sh did something.
i haven't edited standalone.xml regards security or permissions.
grep 'jboss' /etc/group
shows:
jboss:x:502:
anyone ?
ok, worked out turning on debug logs , stepping through.
the difference when service x start, running /etc/rc.d/init.d/ directory, instead of when directly, it's running /bin/ directory.
[org.apache.activemq.broker.brokerservice] (starting activemq broker) using persistence adapter: kahadbpersistenceadapter[/etc/rc.d/init.d/activemq-data/kahadb] esc[0mesc[0m13:31:46,998 info [org.apache.activemq.store.sharedfilelocker] (starting activemq broker) database activemq-data/kahadb/lock locked... waiting 10 seconds database unlocked. reason: java.io.ioexception: failed create directory 'activemq-data/kahadb'
so worked:
chown -r jboss.jboss /etc/rc.d/init.d/ chmod -r 755 /etc/rc.d/init.d/
Comments
Post a Comment