Error: Encountered error while processing update-cache-host

Tried updating my install from 4.0.6 to 4.0.8 and received the following error:

Error: Encountered error while processing update-cache-host-example.com in EE\Migration\ChangeGlobalServiceContainerNames::update_cache_host. Exception: Unable to update cache host of example.com

Looking at ee.log it appears that the update process is trying to update the wp-config.php file of a site that’s not WP - it’s a PHP site:

[29-12-2018 13:44:15] ee.DEBUG: Found site: example.com of type: php

...

[29-12-2018 13:44:18] ee.DEBUG: Executing update-cache-host-example.com...   
[29-12-2018 13:44:18] ee.DEBUG: -----------------------  
[29-12-2018 13:44:18] ee.DEBUG: COMMAND: docker-compose exec --user='www-data' php wp config set RT_WP_NGINX_HELPER_REDIS_HOSTNAME global-redis --add=true --type=constant  
[29-12-2018 13:44:19] ee.DEBUG: STDOUT: e[31;1mError:e[0m 'wp-config.php' not found. Either create one manually or use `wp config create`.   
[29-12-2018 13:44:19] ee.DEBUG: RETURN CODE: 1

Anything I can do? Or is it better to wait for a fix, assuming it’s a bug?

I got the same error but it was because of a wordpress site that I had disabled.
I re-enabled it, updated, and disabled it again. Definitely a bug in the script.

[29-12-2018 20:19:28] ee.DEBUG: Executing update-cache-host-example.com...
[29-12-2018 20:19:28] ee.DEBUG: -----------------------
[29-12-2018 20:19:28] ee.DEBUG: COMMAND: docker-compose exec --user='www-data' php wp config set RT_WP_NGINX_HELPER_REDIS_HOSTNAME global-redis --add=true --type=constant
[29-12-2018 20:19:29] ee.DEBUG: STDERR: No container found for php_1
[29-12-2018 20:19:29] ee.DEBUG: RETURN CODE: 1

Fixed in the latest release. https://github.com/EasyEngine/easyengine/releases/tag/v4.0.9

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.