alexander-torosh / yona-cms

CMS based on Phalcon PHP Framework with modular structure
http://yonacms.com/
Other
367 stars 111 forks source link

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

Open hersoncruz opened 6 years ago

hersoncruz commented 6 years ago
➜  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 commented 6 years ago

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

hersoncruz commented 6 years ago

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 commented 6 years ago

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

hersoncruz commented 6 years ago

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