dagu
dagu copied to clipboard
Can't create new dag via docker doploy
I deployed DAGU via docker but when i tried to create new dag, error happened.
Reproduce
to reproduce this problem, just need to run docker container as readme showed.
Environment
I use window wsl2 and docker to deploy.
same
It would have been easy to find it with text.
Here it's:
2024/06/05 15:24:37 Failed to start DAG: mkdir /home/dagu/.dagu/logs/HELLO_WORLD: permission denied
It's because the permission on the folder are not good, the owner being root
docker exec eraldy-dagu-1 ls -l /home/dagu/.dagu
drwxr-sr-x 2 dagu dagu 4096 Jun 5 15:23 dags
drwxr-sr-x 3 dagu dagu 4096 Jun 5 15:24 data
drwxr-xr-x 2 root root 4096 Jun 5 15:10 logs
drwxr-sr-x 2 dagu dagu 4096 Jun 5 15:24 suspend
The doc gives an hint on how to change it: docker-compose doc
Even if I find it strange.