[current] Error: This does not seem to be a WordPress install


#1

Suddenly I get this error message during deploy:

TASK [deploy : WordPress Installed?]

Error: This does not seem to be a WordPress install.
Pass --path=path/to/wordpress or run wp core download.

Also the site doesn’t load anymore, HTTP 500.
The deploy script just switched the current symlink despite the
newly deployed site is not working anymore.

Edit: I found the logs in ‘/srv/www//logs’ .

PHP message: PHP Fatal error: require(): Failed opening required ‘/srv/www/thedomain.com/releases/20170319033531/web/wp/wp-blog-header.php’

I tried composer install in ‘/srv/www/thedomain.com/current/’ but
files like ‘web/wp/wp-blog-header.php’ are still missing.

I was able to revert to a previous release and make the site function again by overriding the current symlink with a new one that points to a different release folder:

web@localhost: ln -sfs /srv/www/<site>/releases/<release> /srv/www/<site>/current


Johnpbloch/wordpress moved to a new configuration and WP goes missing
#2

Maybe related to this? Johnpbloch/wordpress moved to a new configuration and WP goes missing

Was there any Composer errors? Is the entire wp dir empty?


#3

Also there’s a rollback playbook: https://roots.io/trellis/docs/deploys/#rollbacks