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

[php7.0] db and php won't start on docker-compose up #103

Open
hersoncruz opened this issue Apr 18, 2018 · 4 comments
Open

[php7.0] db and php won't start on docker-compose up #103

hersoncruz opened this issue Apr 18, 2018 · 4 comments

Comments

@hersoncruz
Copy link

hersoncruz commented Apr 18, 2018

➜  yona-cms git:(php7.0) docker-compose up                   
Starting yona-cms-phpmyadmin ... 
Starting yona-cms-mysql ... done
Starting yona-cms-php7 ... done
Starting yona-cms-www ... done
Attaching to yona-cms-phpmyadmin, yona-cms-mysql, yona-cms-php7, yona-cms-www
yona-cms-phpmyadmin | 2018-04-18 22:47:29,962 CRIT Supervisor running as root (no user in config file)
yona-cms-phpmyadmin | 2018-04-18 22:47:29,963 WARN Included extra file "/etc/supervisor.d/nginx.ini" during parsing
yona-cms-phpmyadmin | 2018-04-18 22:47:29,966 WARN Included extra file "/etc/supervisor.d/php.ini" during parsing
yona-cms-phpmyadmin | 2018-04-18 22:47:29,985 INFO RPC interface 'supervisor' initialized
yona-cms-phpmyadmin | 2018-04-18 22:47:29,991 CRIT Server 'unix_http_server' running without any HTTP authentication checking
yona-cms-mysql | Initializing database
yona-cms-mysql | mkdir: cannot create directory '/var/lib/mysql//mysql': Permission denied
yona-cms-mysql | Fatal error Can't create database directory '/var/lib/mysql//mysql'
yona-cms-mysql | 
yona-cms-mysql | The latest information about mysql_install_db is available at
yona-cms-mysql | https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
yona-cms-mysql exited with code 1
yona-cms-phpmyadmin | 2018-04-18 22:47:29,994 INFO supervisord started with pid 1
yona-cms-phpmyadmin | 2018-04-18 22:47:30,997 INFO spawned: 'php-fpm' with pid 13
yona-cms-php7 | [18-Apr-2018 22:47:31] ERROR: Unable to create the PID file (/run/php/php7.1-fpm.pid).: No such file or directory (2)
yona-cms-php7 | [18-Apr-2018 22:47:31] ERROR: FPM initialization failed
yona-cms-php7 exited with code 78
yona-cms-phpmyadmin | 2018-04-18 22:47:30,999 INFO spawned: 'nginx' with pid 14
^CGracefully stopping... (press Ctrl+C again to force)
Stopping yona-cms-www        ... done
Stopping yona-cms-phpmyadmin ... done
@alexander-torosh
Copy link
Owner

@hersoncruz try to clean docker/data dir, update its permissions and try again docker-compose up -d

@hersoncruz
Copy link
Author

Thank you @oleksandr-torosh, that -d parameter made the trick, everything runs without errors now, but when trying to login to phpmyadmin, I'm getting:

#2002 - php_network_getaddresses: getaddrinfo failed: Name does not resolve — The server is not responding (or the local server's socket is not correctly configured).
mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Name does not resolve
mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name does not resolve

@alexander-torosh
Copy link
Owner

@hersoncruz use mysql as server address when you're trying to login to PHPMyAdmin

@hersoncruz
Copy link
Author

@oleksandr-torosh yes, I use the info in documentation: mysq, root, 111
Same mysql errors.

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

2 participants