Closed tims0 closed 3 years ago
Hi @tims0, It seems that the rabbitmq container has not permissions to create the file to log in that directory, could you try to create the directory rabbitmq/logs manually and retry the docker-compose up?
mkdir -p rabbitmq/logs
docker-compose up
Thanks a lot, Monica
Hi @mpast,
I tried to add the directories manually and also added the directories ./rabbitmq/data
and ./rabbitmq/etc
according to https://github.com/docker-library/rabbitmq/issues/61, but the error still persists.
Best,
Tim
Hi @tims0, Do you know if the directories are being created in the containers and if so, what are the permissions? Could you enter the container with docker exec and verify if they are and if so change the permissions with `chown rabbitmq:rabbitmq /var/rabbitmq/logs' If now, can you list the directories with the permissions from the host machine and send them here? Thanks, Monica
Hi @tims0, I figure out the issue, the directory is being mounted with root permissions, I'll continue investigating how we can solve it as soon as possible, Thanks a lot, Monica
Hi @tims0, In the new version of the rabbitmq there are some permission problems because the volume is being created with only root permissions, so I have downgraded the version until that is resolved, Please, could you confirm that the issue is fixed with this new version? Thanks a lot, Monica
I got this error when running the docker-compose.
worker_1 | [2021-09-27 15:34:17,521: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@rabbitmq:5672//: failed to resolve broker hostname. worker_1 | Trying again in 22.00 seconds... (11/100)
It comes from the error:
failed to open log file at '/var/log/rabbitmq/rabbit@2d078879d0ec_upgrade.log', reason: permission denied
.Here is the full output:
Could anybody help here?