Error: Unable to download wp core


#1

I am trying to create the first site using Ubuntu 18.04 and I am getting the following error:

Error: Unable to download wp core.
Warning: Couldn’t connect to global-db:3306 or there was issue in wp config create. Please check logs.
Warning: Initiating clean-up.
[mydev4.local] Docker Containers removed.
[mydev4.local] site root removed.
Site mydev4.local deleted.

Here is the log where the problem is happening:

[08-12-2018 13:39:42] ee.DEBUG: STDOUT: Downloading WordPress 5.0 (en_US)… md5 hash verified: 541befa7a362900f631c34d23bec4461 Success: WordPress downloaded.
[08-12-2018 13:39:42] ee.DEBUG: RETURN CODE: 129
[08-12-2018 13:39:42] ee.DEBUG: -----------------------
[08-12-2018 13:39:42] ee.ERROR: Unable to download wp core.
[08-12-2018 13:39:42] ee.DEBUG: -----------------------
[08-12-2018 13:39:42] ee.DEBUG: COMMAND: docker-compose exec --user=‘www-data’ php wp config create --dbuser=‘mydev4.local-vwhTRG’ --dbname=‘mydev4_local’ --dbpass=‘ilSg1raAjq69’ --dbhost=‘global-db:3306’ --dbcharset=utf8mb4 --extra-php=‘if ( isset( $_SERVER[“HTTP_X_FORWARDED_PROTO”] ) && $_SERVER[“HTTP_X_FORWARDED_PROTO”] == “https” ) { $_SERVER[“HTTPS”] = “on”; } // Enable WP_DEBUG mode. define( “WP_DEBUG”, false ); // Enable Debug logging to the /wp-content/debug.log file define( “WP_DEBUG_LOG”, false ); // Disable display of errors and warnings. define( “WP_DEBUG_DISPLAY”, false ); @ini_set( “display_errors”, 0 ); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define( “SCRIPT_DEBUG”, false );’
[08-12-2018 13:39:44] ee.DEBUG: STDOUT: Success: Generated ‘wp-config.php’ file.
[08-12-2018 13:39:44] ee.DEBUG: RETURN CODE: 129
[08-12-2018 13:39:44] ee.DEBUG: -----------------------
[08-12-2018 13:39:44] ee.INFO: ======================== site cleanup start ========================
[08-12-2018 13:39:44] ee.WARNING: Couldn’t connect to global-db:3306 or there was issue in wp config create. Please check logs.
[08-12-2018 13:39:44] ee.WARNING: Initiating clean-up.

Any ideas how to fix this?


#2

@emanweb can you send the entire logs located at /opt/easyengine/logs to ee@rtcamp.com so that your issue can be looked into properly. The logs you have sent is just a part. The global-db user creation and connection check are above what you have sent. It would be helpful if those logs are shared to exactly figure out what the issue is. Also, send the output of ee cli info.

That being said,

[08-12-2018 13:39:42] ee.DEBUG: STDOUT: Downloading WordPress 5.0 (en_US)… md5 hash verified: 541befa7a362900f631c34d23bec4461 Success: WordPress downloaded.
[08-12-2018 13:39:42] ee.DEBUG: RETURN CODE: 129

What is weird in the logs that you’ve sent is that on what seems to be a successful download of WordPress, the return code is 129. Something seems off. Also, did you try re-creating this site?


#3

I had the same problem, it was just the command --locale=pt_BR that typed incorrectly, review your site creation command.