{"action":"created","issue":{"url":"https://api.github.com/repos/harvard-itsecurity/docker-misp/issues/20","repository_url":"https://api.github.com/repos/harvard-itsecurity/docker-misp","labels_url":"https://api.github.com/repos/harvard-itsecurity/docker-misp/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/harvard-itsecurity/docker-misp/issues/20/comments","events_url":"https://api.github.com/repos/harvard-itsecurity/docker-misp/issues/20/events","html_url":"https://github.com/harvard-itsecurity/docker-misp/issues/20","id":322323996,"number":20,"title":"mysql permission issues","user":{"login":"RANGERBEE","id":15255470,"avatar_url":"https://avatars0.githubusercontent.com/u/15255470?v=4","gravatar_id":"","url":"https://api.github.com/users/RANGERBEE","html_url":"https://github.com/RANGERBEE","followers_url":"https://api.github.com/users/RANGERBEE/followers","following_url":"https://api.github.com/users/RANGERBEE/following{/other_user}","gists_url":"https://api.github.com/users/RANGERBEE/gists{/gist_id}","starred_url":"https://api.github.com/users/RANGERBEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RANGERBEE/subscriptions","organizations_url":"https://api.github.com/users/RANGERBEE/orgs","repos_url":"https://api.github.com/users/RANGERBEE/repos","events_url":"https://api.github.com/users/RANGERBEE/events{/privacy}","received_events_url":"https://api.github.com/users/RANGERBEE/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-05-11T14:46:21Z","updated_at":"2018-05-12T00:40:03Z","closed_at":null,"author_association":"NONE","body":"Hello All,\r\n  Could you advise of cause on this error and support a solution?\r\n\r\n\r\nRunning command:\r\n```console\r\ndocker run -it --rm \\\r\n\t\t    -v /docker/misp-db:/var/lib/mysql \\\r\n\t\t    harvarditsecurity/misp /init-db &&\r\n```\r\n\r\nMet with:\r\n> chown: cannot read directory '/var/lib/mysql': Permission denied\r\nchown: changing ownership of '/var/lib/mysql': Permission denied\r\nCannot change ownership of the database directories to the 'mysql'\r\nuser.  Check that you have the necessary permissions and try again.\r\nchown: cannot read directory '/var/lib/mysql': Permission denied\r\n\r\nI looked into container file system and permissions of the mysql folder is set to \"root\" though unable to access.\r\n\r\n\r\nThank you!\r\n"},"comment":{"url":"https://api.github.com/repos/harvard-itsecurity/docker-misp/issues/comments/388517529","html_url":"https://github.com/harvard-itsecurity/docker-misp/issues/20#issuecomment-388517529","issue_url":"https://api.github.com/repos/harvard-itsecurity/docker-misp/issues/20","id":388517529,"user":{"login":"RANGERBEE","id":15255470,"avatar_url":"https://avatars0.githubusercontent.com/u/15255470?v=4","gravatar_id":"","url":"https://api.github.com/users/RANGERBEE","html_url":"https://github.com/RANGERBEE","followers_url":"https://api.github.com/users/RANGERBEE/followers","following_url":"https://api.github.com/users/RANGERBEE/following{/other_user}","gists_url":"https://api.github.com/users/RANGERBEE/gists{/gist_id}","starred_url":"https://api.github.com/users/RANGERBEE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RANGERBEE/subscriptions","organizations_url":"https://api.github.com/users/RANGERBEE/orgs","repos_url":"https://api.github.com/users/RANGERBEE/repos","events_url":"https://api.github.com/users/RANGERBEE/events{/privacy}","received_events_url":"https://api.github.com/users/RANGERBEE/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T00:40:03Z","updated_at":"2018-05-12T00:40:03Z","author_association":"NONE","body":"@ventz  Thanks.\r\n\r\nI will check that out. \r\nThe directory you see in the image is from the container. ( I use Rancher to manage)\r\n\r\nI prep my hosts with this script code:( see anything ?)\r\n```console\r\n                        sed -i -- \"s/SELINUX=.*/SELINUX=disabled/g\" /etc/sysconfig/selinux &&\r\n\t\t\tcat /etc/sysconfig/selinux;\r\n\t\t\tsysctl -w vm.swappiness=1;\r\n\t\t\tsysctl -w vm.max_map_count=262144;\r\n\t\t\tsed -i -e \"\\$avm.max_map_count=262144\" /etc/sysctl.conf &&\r\n\t\t\tchcon -R system_u:object_r:admin_home_t:s0 /opt/MISP/;\r\n\t\t\tgroupadd docker;\r\n\t\t\tusermod -aG docker $USER;\r\n\t\t\tgpasswd -a $USER docker;\r\n\t\t\tcd /usr/libexec/docker;\r\n\t\t\tln -s docker-runc-current docker-runc;\r\n```\r\nThanks for your time!!\r\n\r\n"}}
{"actor":{"display_login":"RANGERBEE"}}