Cannot create new site on 4.0.3
Hi, having the same issue as here: https://github.com/EasyEngine/easyengine/issues/1318
I was on RC1. I uninstalled RC1, installed the latest version. The installation went fine:
+-------------------+----------------------------------------------------------------------------+
| OS | Linux 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 |
| Shell | /bin/bash |
| PHP binary | /usr/bin/php7.2 |
| PHP version | 7.2.12-1+ubuntu16.04.1+deb.sury.org+1 |
| php.ini used | /etc/php/7.2/cli/php.ini |
| EE root dir | phar://ee.phar |
| EE vendor dir | phar://ee.phar/vendor |
| EE phar path | /home/ecommerce |
| EE packages dir | |
| EE global config | |
| EE project config | |
| EE version | 4.0.3 |
+-------------------+----------------------------------------------------------------------------+
But when I am attempting to create my sites again, I am now getting this error
PHP Notice: Undefined index: site_fs_path in phar:///usr/local/bin/ee/vendor/easyengine/site-type-wp/src/WordPress.php on line 1318
Checking the logs for more detailed error info:
[02-12-2018 19:41:05] ee.DEBUG: COMMAND: docker exec ee-global-db sh db_exec
[02-12-2018 19:41:05] ee.DEBUG: STDERR: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[02-12-2018 19:41:05] ee.DEBUG: RETURN CODE: 1
[02-12-2018 19:41:05] ee.DEBUG: -----------------------
[02-12-2018 19:41:05] ee.INFO: ======================== site cleanup start ========================
[02-12-2018 19:41:05] ee.WARNING: Could not create user domainname-CueKIA. Please check logs.
[02-12-2018 19:41:05] ee.WARNING: Initiating clean-up.
[02-12-2018 19:41:05] ee.DEBUG: -----------------------
[02-12-2018 19:41:05] ee.DEBUG: COMMAND: docker volume ls --filter="label=org.label-schema.vendor=EasyEngine" --filter="label=io.easy$
[02-12-2018 19:41:05] ee.DEBUG: STDOUT: domainname_data_postfix
[02-12-2018 19:41:05] ee.DEBUG: RETURN CODE: 0
[02-12-2018 19:41:05] ee.DEBUG: -----------------------
[02-12-2018 19:41:05] ee.DEBUG: -----------------------
[02-12-2018 19:41:05] ee.DEBUG: COMMAND: docker volume rm domainname_data_postfix
[02-12-2018 19:41:05] ee.DEBUG: STDERR: Error response from daemon: remove domainname_data_postfix: volume is in use - [4d671a1e032$
[02-12-2018 19:41:05] ee.DEBUG: RETURN CODE: 1
Ok,
After freshly installing EE4 as above, I had to stop all of the docker containers then remove them from my server manually. I remembered @kirtangajjar mentioned that the self-uninstall was broken in RC1 and I had to use docker volume rm -f $(docker volume ls -q) to remove all my docker containers. This wouldn't work because all the volumes were still in use even after uninstalling EE.
I uninstalled EE again. Then I ran docker volume rm -f $(docker volume ls -q) and noted all of the containers it said were still in use then stopped and removed them. For example (this was 1 of 20):
docker stop a71281da5a1b702e9625880fd2f09794092776bc911d5e16c950c9a60552eb49
docker rm a71281da5a1b702e9625880fd2f09794092776bc911d5e16c950c9a60552eb49
Once I did this to all containers, I ran docker volume rm -f $(docker volume ls -q) again which finally removed all volumes. Then I re-installed EE4, and created my sites fine.
Ugh. Creating my first two domains worked. On all the rest I'm getting an error saying error connecting to site, just like https://github.com/EasyEngine/easyengine/issues/1270 except I am getting a 503 not 502.
The A records on my domains were still pointing at this server, since I was just uninstalling and re-installing EE. Perhaps I should have removed these records before attempting to re-create the sites?
I say this because the two sites that I have recreated successfully, the A records are not actually pointed to the server in the domain's DNS records. Just in my local hosts file I am redirecting my own computer to this server for these two domains, and I had no trouble creating them again once I re-installed EE. It's just all the domains that already had the A records set up are the ones giving an error about not connecting.
Ok we're back up and running now. It turns out on the second domain I had created, I had not yet downloaded the SSL certificates for the domain. Maybe this is why I was getting a 503 in the logs. Once I downloaded the certificates, I was able to create every other site after that.