touch: /app/docker-data/db_status: No such file or directory

Hello guys anyone could help me? I'm getting this error in my worker...I'm using docker swarm!
version: "3.7"
services:

crm_server:
image: twentycrm/twenty:v0.40.0
user: "0:0" # Ajuste o UID:GID de acordo com o host
volumes:
- crm-server-data:/app/packages/server/local
- crm-docker-data:/app/docker-data
networks:
- network_public ## Nome da rede interna
version: "3.7"
services:

crm_server:
image: twentycrm/twenty:v0.40.0
user: "0:0" # Ajuste o UID:GID de acordo com o host
volumes:
- crm-server-data:/app/packages/server/local
- crm-docker-data:/app/docker-data
networks:
- network_public ## Nome da rede interna
3 Replies
Antonio Pinto
Antonio Pinto2mo ago
Looks like an issue with the docker volume configuration. The error message you're encountering
touch: /app/docker-data/db_status: No such file or directory
touch: /app/docker-data/db_status: No such file or directory
indicates that the directory
/app/docker-data
/app/docker-data
does not exist in your container, which is likely causing the issue when the worker tries to access or create the
db_status
db_status
file. For your setup, you should have this on your docker-compose.yml (+ the db volume or any other you use).
volumes:
crm-docker-data:
crm-server-data:
volumes:
crm-docker-data:
crm-server-data:
I'm not sure which docker-compose file you are using, but that's not the official one. I suggest that you read the docs at https://twenty.com/developers/section/self-hosting/docker-compose The official docker-compose.yml can be found here https://github.com/twentyhq/twenty/blob/main/packages/twenty-docker/docker-compose.yml
lucas lima
lucas limaOP2mo ago
@Antonio Pinto hello! I do have it into my swarm stack
No description
lucas lima
lucas limaOP2mo ago
ok.... So I use 3 stacks so 3 containers - server - db - worker so to fix this i have declared the volumes in both stacks server and workers

Did you find this page helpful?