{"action":"created","issue":{"url":"https://api.github.com/repos/fguillot/kanboard/issues/2029","repository_url":"https://api.github.com/repos/fguillot/kanboard","labels_url":"https://api.github.com/repos/fguillot/kanboard/issues/2029/labels{/name}","comments_url":"https://api.github.com/repos/fguillot/kanboard/issues/2029/comments","events_url":"https://api.github.com/repos/fguillot/kanboard/issues/2029/events","html_url":"https://github.com/fguillot/kanboard/issues/2029","id":142124316,"number":2029,"title":"Internal Error: The directory \"data\" must be writeable by your web server user","user":{"login":"peasead","id":7442091,"avatar_url":"https://avatars.githubusercontent.com/u/7442091?v=3","gravatar_id":"","url":"https://api.github.com/users/peasead","html_url":"https://github.com/peasead","followers_url":"https://api.github.com/users/peasead/followers","following_url":"https://api.github.com/users/peasead/following{/other_user}","gists_url":"https://api.github.com/users/peasead/gists{/gist_id}","starred_url":"https://api.github.com/users/peasead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peasead/subscriptions","organizations_url":"https://api.github.com/users/peasead/orgs","repos_url":"https://api.github.com/users/peasead/repos","events_url":"https://api.github.com/users/peasead/events{/privacy}","received_events_url":"https://api.github.com/users/peasead/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-20T03:12:08Z","updated_at":"2016-06-18T16:52:16Z","closed_at":"2016-03-20T19:12:46Z","body":"### Expected behaviour\r\n\r\nThe Kanboard login page should be displayed after starting the Kanboard Docker container.\r\n\r\n### Actual behaviour\r\n\r\nI get the following error when running the Kanboard Docker container and trying to view the login page:\r\n`Internal Error: The directory \"data\" must be writeable by your web server user`\r\n\r\n### Steps to reproduce\r\n\r\n1. Build the Docker container per the normal `docker build -t kanboard .` command\r\n2. Start the container with the following syntax:  \r\n`docker run -d -p 8080:80 --name kanboard -v /tmp/data/kanboard:/var/www/kanboard/data -v /tmp/data/kanboard/plugins:/var/www/kanboard/data/plugins kanboard`\r\n3. Receive the error when browsing to `http://hostIP:8080`\r\n\r\n### Configuration\r\n\r\n- Kanboard version: Latest Dockerfile\r\n- Database type and version: Latest Dockerfile\r\n- PHP version: Latest Dockerfile\r\n- OS: Atomic Host (Fedora)\r\n- Browser: Chrome\r\n\r\n### Troubleshooting\r\n\r\nI tried to chmod -R /tmp/data to ensure that everything could write to the directory - no luck \r\nI tried `docker run -d -p 8080:80 --name kanboard kanboard` and the container runs as expected, but I have no persistent storage \r\nI ran `chmod -R 777 /tmp/data` in an attempt to allow access \r\nI (begrudgingly) tried `setenforce 0`\r\n\r\n### Caveat\r\n\r\nI'm no Docker expert, I assume that there is something I may need to add to the Dockerfile to define a user...or something I need to create a user to allow containers to write to the host OS?"},"comment":{"url":"https://api.github.com/repos/fguillot/kanboard/issues/comments/226952647","html_url":"https://github.com/fguillot/kanboard/issues/2029#issuecomment-226952647","issue_url":"https://api.github.com/repos/fguillot/kanboard/issues/2029","id":226952647,"user":{"login":"allustin","id":55323,"avatar_url":"https://avatars.githubusercontent.com/u/55323?v=3","gravatar_id":"","url":"https://api.github.com/users/allustin","html_url":"https://github.com/allustin","followers_url":"https://api.github.com/users/allustin/followers","following_url":"https://api.github.com/users/allustin/following{/other_user}","gists_url":"https://api.github.com/users/allustin/gists{/gist_id}","starred_url":"https://api.github.com/users/allustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allustin/subscriptions","organizations_url":"https://api.github.com/users/allustin/orgs","repos_url":"https://api.github.com/users/allustin/repos","events_url":"https://api.github.com/users/allustin/events{/privacy}","received_events_url":"https://api.github.com/users/allustin/received_events","type":"User","site_admin":false},"created_at":"2016-06-18T16:52:16Z","updated_at":"2016-06-18T16:52:16Z","body":"similar issue\r\n\r\n1. if i mount in docker 1.11.3 volume drives from host, like this\r\n\r\n```\r\n -v /home/ubuntu/kaboard/data:/var/www/kanboard/data \\\r\n -v /home/ubuntu/kaboard/plugins:/var/www/kanboard/plugins \\\r\n```\r\n\r\n2. and then logon into container and run `ls -al /var/www/kanboard/`\r\n\r\n```\r\nubuntu@backstage:~/board$ docker exec -it my-kanboard bash\r\nbash-4.3# ls -al /var/www/kanboard/ | grep data\r\ndrwxr-xr-x    2 root     root          4096 Jun 18 16:14 data\r\nbash-4.3#\r\nbash-4.3# ls -al /var/www/kanboard/ | grep plugins\r\ndrwxr-xr-x    2 root     root          4096 Jun 18 16:14 plugins\r\nbash-4.3#\r\n```\r\n\r\ni have see - the `data` and `plugins` have owner `root`\r\n\r\nif i run the container without mounting a volume we have\r\n\r\n```\r\nubuntu@backstage:~/board$ docker exec -it my-kanboard bash\r\nbash-4.3#\r\nbash-4.3#  ls -al /var/www/kanboard/ | grep data\r\ndrwxrwxrwx    2 nginx    nginx         4096 Jun 18 16:42 data\r\nbash-4.3#\r\nbash-4.3#  ls -al /var/www/kanboard/ | grep plugins\r\ndrwxrwxrwx    2 nginx    nginx         4096 Jun 18 16:42 plugins\r\nbash-4.3#\r\n\r\n```\r\n\r\nseem to be wthat we have a strange behavior of docker... but ;-) there is a fix for what\r\n\r\n**kanboard NEED to be run with sudo** like this\r\n\r\n```\r\nsudo docker run -d --restart=\"on-failure:1\" -p 80:80 --name my-kanboard kanboard/kanboard \\\r\n        -v /home/ubuntu/kaboard/data:/var/www/kanboard/data \\\r\n        -v /home/ubuntu/kaboard/plugins:/var/www/kanboard/plugins\r\n```\r\n\r\nand then you have see\r\n\r\n```\r\nubuntu@backstage:~/board$ docker exec -it my-kanboard bash\r\nbash-4.3#\r\nbash-4.3#  ls -al /var/www/kanboard/ | grep data\r\ndrwxrwxrwx    2 nginx    nginx         4096 Jun 18 16:42 data\r\nbash-4.3#\r\nbash-4.3#  ls -al /var/www/kanboard/ | grep plugins\r\ndrwxrwxrwx    2 nginx    nginx         4096 Jun 18 16:42 plugins\r\nbash-4.3#\r\n\r\n```\r\n\r\nthis bug (or feature) will be reproduce, then you add your user to docker group, like its recomended in docker install."}}
{"actor":{"display_login":"allustin"}}