You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by smenon <me...@gmail.com> on 2017/05/29 13:55:27 UTC
After password encryption in credentials-enc.properties, on
re-start of ActiveMQ, receive the "User name or password is invalid" error.
Am using ActiveMQ 5.14.5.
Followed instructions at http://activemq.apache.org/encrypted-passwords.html
# for activemq
$AMQ_HOME/bin/activemq encrypt --password *** --input ***
# for guest
$AMQ_HOME/bin/activemq encrypt --password *** --input ***
Non-default passwords used for activemq password, guest password and
encryptor password.
Added them to $AMQ_HOME/conf/credentials-enc.properties
activemq.username=system
activemq.password=ENC(***)
guest.password=ENC(***)
Set env var ACTIVEMQ_ENCRYPTION_PASSWORD to encryptor password
Started activemq as below
$AMQ_HOME/bin/activemq start
xbean:$AMQ_HOME/examples/conf/activemq-security.xml
Below error appears in the AMQ log file $AMQ_HOME/data/activemq.log
Kindly help.
...
...
...
2017-05-29 17:49:09,106 | INFO | No Spring WebApplicationInitializer types
detected on classpath | /admin | main
2017-05-29 17:49:09,429 | INFO | ActiveMQ WebConsole available at
http://0.0.0.0:8161/ | org.apache.activemq.web.WebConsoleStarter | main
2017-05-29 17:49:09,429 | INFO | ActiveMQ Jolokia REST API available at
http://0.0.0.0:8161/api/jolokia/ | org.apache.activemq.web.WebConsoleStarter
| main
...
...
2017-05-29 17:49:10,130 | INFO | jolokia-agent: Using policy access
restrictor classpath:/jolokia-access.xml | /api | main
2017-05-29 17:49:12,852 | WARN | Failed to add Connection
id=ID:***-54351-1495714784055-3:1, clientId=ID:***-54351-1495714784055-2:1
due tojava.lang.SecurityException: User name [null] or password is invalid.
| org.apache.activemq.broker.TransportConnection | ActiveMQ Transport:
tcp:///127.0.0.1:43325@61616
2017-05-29 17:49:12,853 | WARN | Security Error occurred on connection to:
tcp://127.0.0.1:43325, User name [null] or password is invalid. |
org.apache.activemq.broker.TransportConnection.Service | ActiveMQ Transport:
tcp:///127.0.0.1:43325@61616
2017-05-29 17:49:14,855 | INFO | Stopping tcp://127.0.0.1:43325 because
Failed with SecurityException: User name [null] or password is invalid. |
org.apache.activemq.broker.TransportConnection | ActiveMQ
BrokerService[localhost] Task-2
--
View this message in context: http://activemq.2283324.n4.nabble.com/After-password-encryption-in-credentials-enc-properties-on-re-start-of-ActiveMQ-receive-the-User-nam-tp4726647.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.