You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by VJ_2523 <v....@gmail.com> on 2013/07/15 16:51:00 UTC

Unable to start the Activemq

We have installed Active MQ version 4.1.2 back in Oct-2012 and we got it
working fine for  about couple of months for a POC. 

We are now trying to bring up the Activemq back up and running after a gap
of 8 months. For some reason I am hitting the below error 

[cdcpoc@devdi01 bin]$ pwd
/app01/bodi/apachemq/apache-activemq-4.1.2/bin
[cdcpoc@devdi01 bin]$ ./activemq start
ACTIVEMQ_HOME: /app01/bodi/apachemq/apache-activemq-4.1.2
ACTIVEMQ_BASE: /app01/bodi/apachemq/apache-activemq-4.1.2
Loading message broker from: xbean:activemq.xml
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException:
/app01/bodi/apachemq/apache-activemq-4.1.2/activemq-data/activemq.log
(*Permission denied*)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
        at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
        at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
        at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
        at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
        at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
        at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
        at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
        at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)



Can you please let me know if there is anything that I am missing to bring
this service back up and running ? Thank you.

Regards,
Vijay 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-start-the-Activemq-tp4669298.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to start the Activemq

Posted by VJ_2523 <v....@gmail.com>.
Thank you Christian. 

I got it up and running when I changed the user to start the daemon.
Appreciate it.

Regards,
Vijay  



--
View this message in context: http://activemq.2283324.n4.nabble.com/Unable-to-start-the-Activemq-tp4669298p4669301.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Unable to start the Activemq

Posted by Christian Posta <ch...@gmail.com>.
Check the permissions the user has for accessing (writing) the log files.


On Mon, Jul 15, 2013 at 10:51 AM, VJ_2523 <v....@gmail.com> wrote:

> We have installed Active MQ version 4.1.2 back in Oct-2012 and we got it
> working fine for  about couple of months for a POC.
>
> We are now trying to bring up the Activemq back up and running after a gap
> of 8 months. For some reason I am hitting the below error
>
> [cdcpoc@devdi01 bin]$ pwd
> /app01/bodi/apachemq/apache-activemq-4.1.2/bin
> [cdcpoc@devdi01 bin]$ ./activemq start
> ACTIVEMQ_HOME: /app01/bodi/apachemq/apache-activemq-4.1.2
> ACTIVEMQ_BASE: /app01/bodi/apachemq/apache-activemq-4.1.2
> Loading message broker from: xbean:activemq.xml
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException:
> /app01/bodi/apachemq/apache-activemq-4.1.2/activemq-data/activemq.log
> (*Permission denied*)
>         at java.io.FileOutputStream.openAppend(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
>         at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
>         at
> org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
>         at
> org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
>         at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
>         at
>
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
>         at
>
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
>         at
>
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
>         at
>
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>         at
>
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>         at
>
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>         at
>
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>         at
>
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>         at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
>
>
>
> Can you please let me know if there is anything that I am missing to bring
> this service back up and running ? Thank you.
>
> Regards,
> Vijay
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Unable-to-start-the-Activemq-tp4669298.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta