Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied to changing ownership and cannot touch #8

Closed
giomke opened this issue Jan 6, 2018 · 0 comments
Closed

Permission denied to changing ownership and cannot touch #8

giomke opened this issue Jan 6, 2018 · 0 comments

Comments

@giomke
Copy link

giomke commented Jan 6, 2018

First off all thanks for that amazing image. I got this error on the first step of the installation

Status: Downloaded newer image for docker.io/harvarditsecurity/misp:latest
chown: changing ownership of '/var/lib/mysql': Permission denied
chown: changing ownership of '/var/lib/mysql': Permission denied
Cannot change ownership of the database directories to the 'mysql'
user.  Check that you have the necessary permissions and try again.
chown: changing ownership of '/var/lib/mysql': Permission denied
180106 12:56:51 mysqld_safe Logging to syslog.
180106 12:56:51 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
touch: cannot touch '/var/lib/mysql/.db_initialized': Permission denied
chown: changing ownership of '/var/lib/mysql': Permission denied

How I can fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant