dagu icon indicating copy to clipboard operation
dagu copied to clipboard

Can't create new dag via docker doploy

Open ArkURL opened this issue 2 years ago • 2 comments

I deployed DAGU via docker but when i tried to create new dag, error happened. image Reproduce to reproduce this problem, just need to run docker container as readme showed. Environment I use window wsl2 and docker to deploy.

ArkURL avatar Jan 03 '24 02:01 ArkURL

same

srcrs avatar Jan 08 '24 18:01 srcrs

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.

gerardnico avatar Jun 05 '24 15:06 gerardnico