So I spent most of my Sunday trying to get EEv4 to work. EEv3 has been very straight forward and easy, EEv4 has not been so far I’ve tried installing EEv4 multiple times and not once has the install worked without errors.
System
Clean install of Ubuntu Server 18.04.1 (clean as in updated, no other configs)
Open ports:
22
80
443
8080
11371
22222
Errors
Error: Errors were encountered while processing: 20181016052850_easyengine_insert_docker_images_version.php
Unable to pull easyengine/mariadb:v4.0.0. Please check logs for more details.
ee.log
[25-11-2018 14:52:14] ee.DEBUG: -----------------------
[25-11-2018 14:52:14] ee.INFO: Checking and Pulling docker image easyengine/php:v4.0.0
[25-11-2018 14:52:14] ee.DEBUG: -----------------------
[25-11-2018 14:52:14] ee.DEBUG: COMMAND: docker pull easyengine/php:v4.0.0
[25-11-2018 14:52:16] ee.DEBUG: STDOUT: v4.0.0: Pulling from easyengine/php a5a6f2f73cd8: Pulling fs layer 633e0d1cd2a3: Pulling$
[25-11-2018 14:52:16] ee.DEBUG: STDERR: error pulling image configuration: unknown blob
[25-11-2018 14:52:16] ee.DEBUG: RETURN CODE: 1
[25-11-2018 14:52:16] ee.DEBUG: -----------------------
[25-11-2018 14:52:16] ee.ERROR: Errors were encountered while processing: 20181016052850_easyengine_insert_docker_images_version$
[25-11-2018 14:52:16] ee.DEBUG: Reverting: 20181016052850_easyengine_insert_docker_images_version.php
[25-11-2018 14:52:16] ee.DEBUG: Reverted: 20181016052850_easyengine_insert_docker_images_version.php
[25-11-2018 14:52:16] ee.DEBUG: Reverting: 20180910125250_auth-command_create_table_auth_ips_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverted: 20180910125250_auth-command_create_table_auth_ips_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverting: 20180910125150_auth-command_create_table_auth_users_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverted: 20180910125150_auth-command_create_table_auth_users_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverting: 20180910125050_cron-command_create_table_cron_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverted: 20180910125050_cron-command_create_table_cron_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverting: 20180910124750_site-command_create_table_sitemeta_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverted: 20180910124750_site-command_create_table_sitemeta_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverting: 20180910124650_site-command_create_table_site_migration.php
[25-11-2018 14:52:17] ee.DEBUG: Reverted: 20180910124650_site-command_create_table_site_migration.php
[25-11-2018 14:52:17] ee.INFO: ======================== ee migration ended abruptly ========================
First error encountered when running the EEv4 install. The ee.log doesn’t give you anything to go on. Running the install again can throw the same error again or it will actually work without errors (seems very random). You also get different results depending on if you run the install as a sudo user or as root. The first run as a sudo user did not even get docker installed. Which user does EE prefer?
When I finally got the stack all set up and trying to create a site I encounter multiple errors.
[25-11-2018 14:56:06] ee.DEBUG: Executed ee-custom-container-migrations.
[25-11-2018 14:56:06] ee.DEBUG: Executing ee-docker-image-migrations...
[25-11-2018 14:56:06] ee.INFO: ======================== Starting container migration ========================
[25-11-2018 14:56:06] ee.DEBUG: Executed ee-docker-image-migrations.
[25-11-2018 14:56:07] ee.DEBUG: COMMAND: which docker
[25-11-2018 14:56:07] ee.DEBUG: RETURN CODE: 0
[25-11-2018 14:56:07] ee.DEBUG: -----------------------
[25-11-2018 14:56:07] ee.DEBUG: COMMAND: docker inspect -f '{{.State.Running}}' ee-global-nginx-proxy
[25-11-2018 14:56:07] ee.DEBUG: STDOUT:
[25-11-2018 14:56:07] ee.DEBUG: STDERR: Error: No such object: ee-global-nginx-proxy
[25-11-2018 14:56:07] ee.DEBUG: RETURN CODE: 1
[25-11-2018 14:56:07] ee.DEBUG: -----------------------
[25-11-2018 14:56:07] ee.DEBUG: Using default global config: /opt/easyengine/config/config.yml
[25-11-2018 14:56:07] ee.DEBUG: No project config found
[25-11-2018 14:56:07] ee.DEBUG: argv: /usr/local/bin/ee cli info
[25-11-2018 14:56:07] ee.DEBUG: Running command: cli info
[25-11-2018 15:00:08] ee.DEBUG: COMMAND: docker network inspect ee-global-frontend-network
[25-11-2018 15:00:09] ee.DEBUG: STDOUT: []
[25-11-2018 15:00:09] ee.DEBUG: STDERR: Error: No such network: ee-global-frontend-network
[25-11-2018 15:00:09] ee.DEBUG: RETURN CODE: 1
[25-11-2018 15:00:32] ee.DEBUG: COMMAND: docker inspect -f '{{.State.Running}}' ee-global-db
[25-11-2018 15:00:32] ee.DEBUG: STDOUT:
[25-11-2018 15:00:32] ee.DEBUG: STDERR: Error: No such object: ee-global-db
[25-11-2018 15:00:32] ee.DEBUG: RETURN CODE: 1
[25-11-2018 15:00:40] ee.DEBUG: COMMAND: docker exec ee-global-db sh db_exec
[25-11-2018 15:00:41] ee.DEBUG: STDERR: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/$
[25-11-2018 15:00:41] ee.DEBUG: RETURN CODE: 1
[25-11-2018 15:00:48] ee.DEBUG: COMMAND: docker exec ee-global-db sh db_exec
[25-11-2018 15:00:49] ee.DEBUG: STDERR: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[25-11-2018 15:00:49] ee.DEBUG: RETURN CODE: 1
[25-11-2018 15:02:26] ee.INFO: Checking and verifying site-up status. This may take some time.
[25-11-2018 15:02:26] ee.DEBUG: eyesx.<tld> status httpcode: 502
At the farthest, the config seems to get set up but throwing 502 and is unable to connect to the db, hence the config is removed.
For the 502, some ports maybe needs to be opened? The access denied for the db I don’t get. Why is this happening?
The main questions here is, which ports needs to be opened and which is the preferred user to use when installing EE and creating sites?
/EDIT
So I’ve gotten so far as to get rid of the db errors. Those errors are very random, the installer is not stable imo.
Still got the (only persisting) error of “502 Bad gateway”. Since the site-up status fails and everything is removed, how do I get the logs for the 502?