{"action":"created","issue":{"url":"https://api.github.com/repos/docksal/docksal/issues/434","repository_url":"https://api.github.com/repos/docksal/docksal","labels_url":"https://api.github.com/repos/docksal/docksal/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/docksal/docksal/issues/434/comments","events_url":"https://api.github.com/repos/docksal/docksal/issues/434/events","html_url":"https://github.com/docksal/docksal/issues/434","id":285759226,"number":434,"title":"Docksal 1.6 breaks file permissions and UID/GID mapping when using older docksal.yml ","user":{"login":"charginghawk","id":7936651,"avatar_url":"https://avatars1.githubusercontent.com/u/7936651?v=4","gravatar_id":"","url":"https://api.github.com/users/charginghawk","html_url":"https://github.com/charginghawk","followers_url":"https://api.github.com/users/charginghawk/followers","following_url":"https://api.github.com/users/charginghawk/following{/other_user}","gists_url":"https://api.github.com/users/charginghawk/gists{/gist_id}","starred_url":"https://api.github.com/users/charginghawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charginghawk/subscriptions","organizations_url":"https://api.github.com/users/charginghawk/orgs","repos_url":"https://api.github.com/users/charginghawk/repos","events_url":"https://api.github.com/users/charginghawk/events{/privacy}","received_events_url":"https://api.github.com/users/charginghawk/received_events","type":"User","site_admin":false},"labels":[{"id":685460084,"url":"https://api.github.com/repos/docksal/docksal/labels/pending","name":"pending","color":"e99695","default":false},{"id":433313672,"url":"https://api.github.com/repos/docksal/docksal/labels/question","name":"question","color":"c2e0c6","default":true}],"state":"closed","locked":false,"assignee":{"login":"achekulaev","id":402007,"avatar_url":"https://avatars0.githubusercontent.com/u/402007?v=4","gravatar_id":"","url":"https://api.github.com/users/achekulaev","html_url":"https://github.com/achekulaev","followers_url":"https://api.github.com/users/achekulaev/followers","following_url":"https://api.github.com/users/achekulaev/following{/other_user}","gists_url":"https://api.github.com/users/achekulaev/gists{/gist_id}","starred_url":"https://api.github.com/users/achekulaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achekulaev/subscriptions","organizations_url":"https://api.github.com/users/achekulaev/orgs","repos_url":"https://api.github.com/users/achekulaev/repos","events_url":"https://api.github.com/users/achekulaev/events{/privacy}","received_events_url":"https://api.github.com/users/achekulaev/received_events","type":"User","site_admin":false},"assignees":[{"login":"achekulaev","id":402007,"avatar_url":"https://avatars0.githubusercontent.com/u/402007?v=4","gravatar_id":"","url":"https://api.github.com/users/achekulaev","html_url":"https://github.com/achekulaev","followers_url":"https://api.github.com/users/achekulaev/followers","following_url":"https://api.github.com/users/achekulaev/following{/other_user}","gists_url":"https://api.github.com/users/achekulaev/gists{/gist_id}","starred_url":"https://api.github.com/users/achekulaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achekulaev/subscriptions","organizations_url":"https://api.github.com/users/achekulaev/orgs","repos_url":"https://api.github.com/users/achekulaev/repos","events_url":"https://api.github.com/users/achekulaev/events{/privacy}","received_events_url":"https://api.github.com/users/achekulaev/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-01-03T17:45:32Z","updated_at":"2018-02-01T20:02:23Z","closed_at":"2018-02-01T20:02:23Z","author_association":"CONTRIBUTOR","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Description**\r\n\r\nDocksal 1.6.0 removes _set_cli_uid from fin, which had been setting the docker user's uid and gid in the container to those values for the user on the host. This made it so the docker had the same file permissions in the container that the user had on host.\r\n\r\nIn May 2017, the Docksal stacks were updated to give cli > environment HOST_UID/HOST_GID arguments that handle this functionality. See:\r\n\r\nhttps://github.com/docksal/docksal/blob/develop/stacks/stack-default-static.yml#L50-L51\r\n\r\nIf you, like me, are using a docksal.yml that was a copy of one the Docksal stack yml files from before May 2017, you don't have these arguments, and _set_cli_uid was the only thing keeping your file permissions in order.\r\n\r\n**Steps to reproduce the issue:**\r\n\r\n1. Be on Docksal 1.5.1.\r\n2. Use docksal.yml that's a copy of Docksal's services.yml or stack-default-static.yml from before May 2017.\r\n3. Upgrade to latest Docksal.\r\n\r\n**Describe the results you received:**\r\n\r\ndocker user in the container can't write files anymore (eg npm install in container, it can't create node_modules directory).\r\n\r\n```\r\nnpm ERR! code EIO\r\nnpm ERR! errno -5 \r\nnpm ERR! syscall mkdir \r\nnpm ERR! EIO: i/o error, mkdir 'node_modules'\r\n```\r\n\r\n**Describe the results you expected:**\r\n\r\nFile permissions work.\r\n\r\n**Local Fix**\r\n\r\nUpdate your docksal.yml so that cli > environment has HOST_UID/HOST_GID arguments, like so:\r\nhttps://github.com/docksal/docksal/blob/develop/stacks/stack-default-static.yml#L50-L51\r\n  \r\n  \r\n  "},"comment":{"url":"https://api.github.com/repos/docksal/docksal/issues/comments/362384919","html_url":"https://github.com/docksal/docksal/issues/434#issuecomment-362384919","issue_url":"https://api.github.com/repos/docksal/docksal/issues/434","id":362384919,"user":{"login":"achekulaev","id":402007,"avatar_url":"https://avatars0.githubusercontent.com/u/402007?v=4","gravatar_id":"","url":"https://api.github.com/users/achekulaev","html_url":"https://github.com/achekulaev","followers_url":"https://api.github.com/users/achekulaev/followers","following_url":"https://api.github.com/users/achekulaev/following{/other_user}","gists_url":"https://api.github.com/users/achekulaev/gists{/gist_id}","starred_url":"https://api.github.com/users/achekulaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achekulaev/subscriptions","organizations_url":"https://api.github.com/users/achekulaev/orgs","repos_url":"https://api.github.com/users/achekulaev/repos","events_url":"https://api.github.com/users/achekulaev/events{/privacy}","received_events_url":"https://api.github.com/users/achekulaev/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T20:02:23Z","updated_at":"2018-02-01T20:02:23Z","author_association":"OWNER","body":"Closing since #433 is closed now. "}}
{"actor":{"display_login":"achekulaev"}}