Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

For persistence you need to own the folders #50

Closed
gorgia opened this issue Oct 11, 2019 · 2 comments
Closed

For persistence you need to own the folders #50

gorgia opened this issue Oct 11, 2019 · 2 comments

Comments

@gorgia
Copy link

gorgia commented Oct 11, 2019

After exiting the intermediate alpine image you have to chmod the persistence folders in order to use them in another container (the one with activemq running).
I know that it may sound obvious, but still I have lost some time for this reason. Maybe you could add it as a remainder in the readme.
Thanks.

@gorgia gorgia changed the title For persistence you need to own the folder For persistence you need to own the folders Oct 11, 2019
@sibtainabbas10
Copy link

sibtainabbas10 commented Oct 14, 2019

Hi gorgia,

I ran the following commands as suggested in the README

docker run --user root --rm -ti \
  -v /home/t919484/activemq/conf:/mnt/conf \
  -v /home/t919484/activemq/data:/mnt/data \
  rmohr/activemq:5.15.4-alpine /bin/sh

chown activemq:activemq /mnt/conf
chown activemq:activemq /opt/activemq/data
chown activemq:activemq /mnt/data
cp -a /opt/activemq/conf/* /mnt/conf/
cp -a /opt/activemq/data/* /mnt/data/
exit

docker run -p 61616:61616 -p 8161:8161 --name activemq-vol -d \
           -v /home/t919484/activemq/conf:/opt/activemq/conf \
           -v /home/t919484/activemq/data:/opt/activemq/data \
           rmohr/activemq

But I always get the following error:

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/activemq/data/audit.log (Permission denied)

Can you please tell me how you managed to solve this?

@rmohr
Copy link
Owner

rmohr commented Apr 25, 2022

Thanks you for your contribution.

As you probably noticed, I am not using this repo myself anymore for a long time and fail to find the time to maintain it for quite some time now too. Please consider using a fork. This repo is unmaintained and I am going to archive it soon.

@rmohr rmohr closed this as completed Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants