Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Error when use with volume #28

Closed
fhgomes opened this issue Jan 3, 2018 · 3 comments
Closed

Error when use with volume #28

fhgomes opened this issue Jan 3, 2018 · 3 comments

Comments

@fhgomes
Copy link

fhgomes commented Jan 3, 2018

[org.apache.activemq.artemis.core.server] AMQ222141: Node Manager can not open file /var/lib/artemis/./data/journal/server.lock: java.io.IOException: No such file or directory
        at java.io.UnixFileSystem.createFileExclusively(Native Method) [rt.jar:1.8.0_151]

My yml
version: '3' services: amq-artemis: image: vromero/activemq-artemis:2.4.0 ports: - 8161:8161 - 61616:61616 - 1199:1199 - 1198:1198 environment: ARTEMIS_USERNAME: admin ARTEMIS_PASSWORD: admin ARTEMIS_MIN_MEMORY: 256M ARTEMIS_MAX_MEMORY: 1024M ARTEMIS_PERF_JOURNAL: AUTO ENABLE_JMX: 'true' JMX_PORT: 1199 JMX_RMI_PORT: 1198 volumes: - /opt/docker/artemis/data:/var/lib/artemis/data

@vromero
Copy link
Owner

vromero commented Jan 3, 2018

I'll take a look over the weekend

@fhgomes
Copy link
Author

fhgomes commented Jan 5, 2018

Vromero i found the problem..
i needed to create the dirs into my linux..
and too i needed to set chmod 777 to then..

mkdir /opt/docker/artemis/ mkdir /opt/docker/artemis/data mkdir /opt/docker/artemis/data/journal chmod -R 777 /opt/docker/artemis/data/

So, i think u can add this in docs to help another guys

@fkretzer
Copy link

fkretzer commented Jan 17, 2018

chmod 777 should not be a permanent solution. Any hints how to fix this?
EDIT:
I am running docker inside a VirtualBox environment and therefore the user vboxadd with group vboxsf needs to be able to access the mounted directory

chown -R vboxadd:vboxsf /opt/docker/artemis/data should fix it

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