You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "viola.lu" <vi...@gmail.com> on 2010/05/27 08:17:01 UTC
File not found exception when setup share file system master/slave
Hi, i tried to setup share file system master/slave on activemq 5.3.2 , my
activemq.xml is updated as below:
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="share"
useJmx="false" deleteAllMessagesOnStartup="true"
dataDirectory="${activemq.base}/data"
destroyApplicationContextOnStop="true">
....
<persistenceAdapter>
<!--<kahaDB directory="${activemq.base}/data/kahadb"/>-->
<kahaDB directory="//9.186.10.68/share"/>
</persistenceAdapter>
//9.186.10.68/share is samba share opened on a suse 10.2 system with
anonymous access.
but when i start up activemq, there is an error:
Database \\9.186.10.68\share\lock is locked... waiting 10 seconds for the
database to be unlocked. Reason: java.io.FileNotFoundException:
\\9.186.10.68\share\lock (Access is denied)
Can somebody help figure out how to configure share file system? i just
followed this article
http://activemq.apache.org/shared-file-system-master-slave.html, my shared
directory is setup wrong?
THanks a lot!
--
View this message in context: http://old.nabble.com/File-not-found-exception-when-setup-share-file-system-master-slave-tp28689955p28689955.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: File not found exception when setup share file system
master/slave
Posted by "viola.lu" <vi...@gmail.com>.
Thanks.
After i granted my share folder a write permission, it's ok now.
Gary Tully wrote:
>
> Access denied sounds like a permissions issue, can you ls that directory
> as
> the user that is running the slave?
> From an ActiveMQ perspective is is just trying to open that file using
> java
> file I/O
>
> On 28 May 2010 04:19, viola.lu <vi...@gmail.com> wrote:
>
>>
>> Can somebody help it out?
>>
>> viola.lu wrote:
>> >
>> > Hi, i tried to setup share file system master/slave on activemq 5.3.2 ,
>> my
>> > activemq.xml is updated as below:
>> >
>> > <broker xmlns="http://activemq.apache.org/schema/core"
>> brokerName="share"
>> > useJmx="false" deleteAllMessagesOnStartup="true"
>> > dataDirectory="${activemq.base}/data"
>> > destroyApplicationContextOnStop="true">
>> > ....
>> > <persistenceAdapter>
>> > <!--<kahaDB directory="${activemq.base}/data/kahadb"/>-->
>> > <kahaDB directory="//9.186.10.68/share"/>
>> > </persistenceAdapter>
>> >
>> >
>> > //9.186.10.68/share is samba share opened on a suse 10.2 system with
>> > anonymous access.
>> >
>> > but when i start up activemq, there is an error:
>> > Database \\9.186.10.68\share\lock is locked... waiting 10 seconds for
>> the
>> > database to be unlocked. Reason: java.io.FileNotFoundException:
>> > \\9.186.10.68\share\lock (Access is denied)
>> >
>> > Can somebody help figure out how to configure share file system? i just
>> > followed this article
>> > http://activemq.apache.org/shared-file-system-master-slave.html, my
>> shared
>> > directory is setup wrong?
>> > THanks a lot!
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/File-not-found-exception-when-setup-share-file-system-master-slave-tp28689955p28702346.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> http://blog.garytully.com
>
> Open Source Integration
> http://fusesource.com
>
>
--
View this message in context: http://old.nabble.com/File-not-found-exception-when-setup-share-file-system-master-slave-tp28689955p28727110.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: File not found exception when setup share file system
master/slave
Posted by Gary Tully <ga...@gmail.com>.
Access denied sounds like a permissions issue, can you ls that directory as
the user that is running the slave?
>From an ActiveMQ perspective is is just trying to open that file using java
file I/O
On 28 May 2010 04:19, viola.lu <vi...@gmail.com> wrote:
>
> Can somebody help it out?
>
> viola.lu wrote:
> >
> > Hi, i tried to setup share file system master/slave on activemq 5.3.2 ,
> my
> > activemq.xml is updated as below:
> >
> > <broker xmlns="http://activemq.apache.org/schema/core"
> brokerName="share"
> > useJmx="false" deleteAllMessagesOnStartup="true"
> > dataDirectory="${activemq.base}/data"
> > destroyApplicationContextOnStop="true">
> > ....
> > <persistenceAdapter>
> > <!--<kahaDB directory="${activemq.base}/data/kahadb"/>-->
> > <kahaDB directory="//9.186.10.68/share"/>
> > </persistenceAdapter>
> >
> >
> > //9.186.10.68/share is samba share opened on a suse 10.2 system with
> > anonymous access.
> >
> > but when i start up activemq, there is an error:
> > Database \\9.186.10.68\share\lock is locked... waiting 10 seconds for the
> > database to be unlocked. Reason: java.io.FileNotFoundException:
> > \\9.186.10.68\share\lock (Access is denied)
> >
> > Can somebody help figure out how to configure share file system? i just
> > followed this article
> > http://activemq.apache.org/shared-file-system-master-slave.html, my
> shared
> > directory is setup wrong?
> > THanks a lot!
> >
>
> --
> View this message in context:
> http://old.nabble.com/File-not-found-exception-when-setup-share-file-system-master-slave-tp28689955p28702346.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
http://blog.garytully.com
Open Source Integration
http://fusesource.com
Re: File not found exception when setup share file system
master/slave
Posted by "viola.lu" <vi...@gmail.com>.
Can somebody help it out?
viola.lu wrote:
>
> Hi, i tried to setup share file system master/slave on activemq 5.3.2 , my
> activemq.xml is updated as below:
>
> <broker xmlns="http://activemq.apache.org/schema/core" brokerName="share"
> useJmx="false" deleteAllMessagesOnStartup="true"
> dataDirectory="${activemq.base}/data"
> destroyApplicationContextOnStop="true">
> ....
> <persistenceAdapter>
> <!--<kahaDB directory="${activemq.base}/data/kahadb"/>-->
> <kahaDB directory="//9.186.10.68/share"/>
> </persistenceAdapter>
>
>
> //9.186.10.68/share is samba share opened on a suse 10.2 system with
> anonymous access.
>
> but when i start up activemq, there is an error:
> Database \\9.186.10.68\share\lock is locked... waiting 10 seconds for the
> database to be unlocked. Reason: java.io.FileNotFoundException:
> \\9.186.10.68\share\lock (Access is denied)
>
> Can somebody help figure out how to configure share file system? i just
> followed this article
> http://activemq.apache.org/shared-file-system-master-slave.html, my shared
> directory is setup wrong?
> THanks a lot!
>
--
View this message in context: http://old.nabble.com/File-not-found-exception-when-setup-share-file-system-master-slave-tp28689955p28702346.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.