Are you using a volume? Could be permissions related that ActiveMQ is unable to 
get a lock on the filesystem.

> On Jun 22, 2021, at 8:57 AM, Fabrice Triboix <fabrice.trib...@armedia.com> 
> wrote:
> 
> Hi Matt,
> 
> I am running ActiveMQ as a Docker container, so I am positively certain that 
> (1) there are no other ActiveMQ processes and (2) the "data" directory is 
> empty at startup. Additionally, when I add back all the other configuration 
> files (i.e. the files in the conf​ directory of the official tarball), this 
> problem goes away.
> 
> Cheers,
> 
>  Fabrice
> 
> ________________________________
> From: Matt Pavlovich <mattr...@gmail.com>
> Sent: 22 June 2021 13:54
> To: users@activemq.apache.org <users@activemq.apache.org>
> Subject: Re: Roundup of the configuration files
> 
> CAUTION: This email originated from outside of the organization. Do not click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.
> 
> 
> The filesystem locking is simply delegated to the OS. Double check you do not 
> have a second ActiveMQ process that was left running unintentionally during 
> the config testing.
> 
> If it is on Linux, you can use the ‘lsof’ command to look for the process 
> that has the kahadb/lock file locked.
> 
> -Matt Pavlovich
> 
>> On Jun 22, 2021, at 6:30 AM, Fabrice Triboix <fabrice.trib...@armedia.com> 
>> wrote:
>> 
>> Hello Matt,
>> 
>> I am using a subset of the configuration files found in the the conf​ 
>> directory of the official ActiveMQ release available here: 
>> https://archive.apache.org/dist/activemq/5.16.2/apache-activemq-5.16.2-bin.tar.gz
>> 
>> The configuration files I kept are:
>> 
>> *   activemq.xml
>> *   jetty.xml
>> *   log4j.properties
>> *   logging.properties
>> 
>> Indeed, activemq.xml​ referenced credentials.properties​. I commented out 
>> that reference, and ActiveMQ works a bit better. It does show the following 
>> message which is not looking good:
>> 
>>  ​INFO | Database ${activemq.data}/kahadb/lock is locked by another server. 
>> This broker is now in slave mode waiting a lock to be acquired
>> 
>> This is very odd because there is only one ActiveMQ broker running...
>> 
>> Any idea about what is going on?
>> 
>> Many thanks,
>> 
>> Fabrice
>> 
>> ________________________________
>> From: Matt Pavlovich <mattr...@gmail.com>
>> Sent: 21 June 2021 15:43
>> To: users@activemq.apache.org <users@activemq.apache.org>
>> Subject: Re: Roundup of the configuration files
>> 
>> CAUTION: This email originated from outside of the organization. Do not 
>> click links or open attachments unless you recognize the sender and know the 
>> content is safe.
>> 
>> 
>> Hello Fabrice-
>> 
>> Please be mindful that is difficult to troubleshoot over an email thread 
>> without seeing the changes you are making on your end. I suspect the top of 
>> your conf/activemq.xml has the Properties file entry referencing the 
>> conf/credentials.properties. Try removing that section from your 
>> conf/activemq.xml and the broker should start up.
>> 
>> -Matt Pavlovich
>> 
>>> On Jun 19, 2021, at 1:35 AM, Fabrice Triboix <fabrice.trib...@armedia.com> 
>>> wrote:
>>> 
>>> Hi Matt,
>>> 
>>> All right, thanks a lot for these details.
>>> 
>>> ActiveMQ crashes for me, there is a stack trace with the following error:
>>> 
>>> Caused by: java.io.FileNotFoundException: /app/conf/credentials.properties 
>>> (No such file or directory)
>>> 
>>> Also, I am not sure why I need to repeat the users/groups/passwords 
>>> information in the login.config​, groups.properties, and users.properties​ 
>>> files... This information is already available in the activemq.xml​ file, 
>>> isn't it? (I am using the simple authentication plugin)
>>> 
>>> Thanks a lot for your help!
>>> 
>>> Fabrice
>>> 
>>> ________________________________
>>> From: Matt Pavlovich <mattr...@gmail.com>
>>> Sent: 18 June 2021 22:38
>>> To: users@activemq.apache.org <users@activemq.apache.org>
>>> Subject: Re: Roundup of the configuration files
>>> 
>>> CAUTION: This email originated from outside of the organization. Do not 
>>> click links or open attachments unless you recognize the sender and know 
>>> the content is safe.
>>> 
>>> 
>>> Hi Fabrice-
>>> 
>>> The simple authentication plugin stores usernames and passwords in the 
>>> conf/activemq.xml (it is generally used for embedded brokers or unit 
>>> testing). If you use that, you won’t need the files below in the Messaging 
>>> services section.
>>> 
>>> Most general setups using running stand alone brokers with the Apache 
>>> ActiveMQ distribution:
>>> 
>>> Messaging services (JMS, MQTT, STOMP, etc):
>>> 
>>> conf/login.config           <— defines what to use
>>> conf/groups.properties <— group-to-user mappings
>>> conf/users.properties   <— user and passwords
>>> 
>>> Management (JMX):
>>> 
>>> bin/env
>>> conf/jmx.password
>>> conf/jmx.access
>>> 
>>> Web Console:
>>> 
>>> conf/jetty.xml
>>> 
>>> ref: https://activemq.apache.org/security
>>> 
>>> 
>>> Hope this helps!
>>> 
>>> -Matt Pavlovich
>>> 
>>> 
>>>> On Jun 18, 2021, at 1:46 PM, Fabrice Triboix <fabrice.trib...@armedia.com> 
>>>> wrote:
>>>> 
>>>> Hello,
>>>> 
>>>> Could somebody please provide me with an answer to my question below?
>>>> 
>>>> Thank you very much for any help,
>>>> 
>>>> Fabrice
>>>> 
>>>> ________________________________
>>>> From: Fabrice Triboix <fabrice.trib...@armedia.com>
>>>> Sent: 12 June 2021 15:50
>>>> To: users@activemq.apache.org <users@activemq.apache.org>
>>>> Subject: Re: Roundup of the configuration files
>>>> 
>>>> CAUTION: This email originated from outside of the organization. Do not 
>>>> click links or open attachments unless you recognize the sender and know 
>>>> the content is safe.
>>>> 
>>>> 
>>>> Hi Jean-Baptiste,
>>>> 
>>>> Thanks a lot for your answer.
>>>> 
>>>> Our ActiveMQ installation won't use any TLS, but will have authentication 
>>>> (using the simple authentication plugin) and authorization. Which 
>>>> additional configuration files would be required in such a setup?
>>>> 
>>>> Thanks a lot for your help!
>>>> 
>>>> Fabrice
>>>> 
>>>> ________________________________
>>>> From: Jean-Baptiste Onofre <j...@nanthrax.net>
>>>> Sent: 12 June 2021 05:37
>>>> To: users@activemq.apache.org <users@activemq.apache.org>
>>>> Subject: Re: Roundup of the configuration files
>>>> 
>>>> CAUTION: This email originated from outside of the organization. Do not 
>>>> click links or open attachments unless you recognize the sender and know 
>>>> the content is safe.
>>>> 
>>>> 
>>>> Hi,
>>>> 
>>>> Basically, for a simple bin/activemq console start, by default (without 
>>>> authentication), you just need
>>>> 
>>>> - activemq.xml (broker config)
>>>> - jetty.xml (jetty container used by admin web console)
>>>> - log4j.properties (for logging config)
>>>> - logging.properties (can be removed if you don’t use JUL)
>>>> 
>>>> All the rest is used when SSL is enabled, when authentication is enabled.
>>>> 
>>>> I’ve started some cleanup for 5.17.0 having dedicated folders per "use".
>>>> 
>>>> Regards
>>>> JB
>>>> 
>>>>> Le 11 juin 2021 à 18:20, Fabrice Triboix <fabrice.trib...@armedia.com> a 
>>>>> écrit :
>>>>> 
>>>>> Hello everyone,
>>>>> 
>>>>> I am looking at the official ActiveMQ tarball 
>>>>> (https://archive.apache.org/dist/activemq/5.16.2/apache-activemq-5.16.2-bin.tar.gz)
>>>>>  and I would like to understand how ActiveMQ is configured.
>>>>> 
>>>>> In the "conf" directory, I can see the following files:
>>>>> 
>>>>> *   activemq.xml
>>>>> *   broker.ks
>>>>> *   broker-localhost.cert
>>>>> *   broker.ts
>>>>> *   client.ks
>>>>> *   client.ts
>>>>> *   credentials-enc.properties
>>>>> *   credentials.properties
>>>>> *   groups.properties
>>>>> *   java.security
>>>>> *   jetty-realm.properties
>>>>> *   jetty.xml
>>>>> *   jmx.access
>>>>> *   jmx.password
>>>>> *   log4j.properties
>>>>> *   logging.properties
>>>>> *   login.config
>>>>> *   users.properties
>>>>> 
>>>>> I would like to know what each of these configuration files do, and 
>>>>> whether they are required or not.
>>>>> 
>>>>> Many thanks,
>>>>> 
>>>>> Fabrice
>>>> 
>>> 
>> 
> 

Reply via email to