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

Setup doesn't work #4

Closed
vh opened this issue Mar 22, 2016 · 5 comments
Closed

Setup doesn't work #4

vh opened this issue Mar 22, 2016 · 5 comments

Comments

@vh
Copy link
Contributor

vh commented Mar 22, 2016

But it is possible to finish setup manually after containers are runned!

docker-compose.yml

web:
  image: modx
  links:
    - db:mysql
  ports:
    - 80:80
db:
  image: mariadb
  environment:
    MYSQL_ROOT_PASSWORD: example
  ports:
    - 3306:3306

Log:

(ERROR in xPDOConnection::connect @ /var/www/html/core/xpdo/xpdo.class.php : 3058) SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

(ERROR in xPDOConnection::connect @ /var/www/html/core/xpdo/xpdo.class.php : 3058) SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

(ERROR @ setup/index.php) Could not connect to database server: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
@vh
Copy link
Contributor Author

vh commented Mar 27, 2016

Check this issue - modxcms/revolution#12274

@vh vh changed the title Setup doesn't work when opcache enabled Setup doesn't work Mar 27, 2016
@vh
Copy link
Contributor Author

vh commented Mar 28, 2016

When trying to add opcache to Dockerfile it cannot be done even manually.
Error: Checking database: MODX could not create your database. Please manually create your database and then try again.

@Mark-H
Copy link

Mark-H commented Apr 3, 2016

I think this would need to be resolved before moving on to #2 and #3... Seems kinda critical to have a functional install ;)

@vh
Copy link
Contributor Author

vh commented Apr 3, 2016

Definitely. But at this moment I have no idea why this issue appears :)

vh added a commit that referenced this issue Apr 21, 2016
@vh
Copy link
Contributor Author

vh commented Apr 21, 2016

It seems this issue resolved for new MODX 2.5 and php 7.0

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