EasyEngine / easyengine

Command-line control panel for Nginx Server to manage WordPress sites running on Nginx, PHP, MySQL, and Let's Encrypt
https://easyengine.io
MIT License
2.12k stars 431 forks source link

Unable to create site with fresh setup on Ubuntu #1356

Open abhijitrakas opened 5 years ago

abhijitrakas commented 5 years ago

I have installed EE on fresh Ubuntu installation using given steps.

When I create ee site create demo.html it gives me following output.

Configuring project.
Creating site demo.html.
Copying configuration files.
Starting site's services.
Success: Configuration files copied.
Host entry already exists.
Checking and verifying site-up status. This may take some time.
..............................................................
Warning: Problem connecting to site!
Warning: Initiating clean-up.
[demo.html] Docker Containers removed.
[demo.html] site root removed.
Site demo.html deleted.

And in log I found following output

[26-12-2018 01:37:32] ee.DEBUG: argv: /usr/local/bin/ee site create demo.html
[26-12-2018 01:37:32] ee.DEBUG: Running command: site
[26-12-2018 01:37:32] ee.DEBUG: Running command: site create
[26-12-2018 01:37:32] ee.INFO: ======================== site create start ========================
[26-12-2018 01:37:32] html_type.DEBUG: args: ["demo.html"]
[26-12-2018 01:37:32] html_type.DEBUG: assoc_args: ["NULL"]
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: which docker
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker inspect -f '{{.State.Running}}' ee-global-nginx-proxy
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: true
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker inspect --format '{{ (index (index .NetworkSettings.Ports "80/tcp") 0).HostPort }}' ee-global-nginx-proxy
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: 80
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker inspect --format '{{ (index (index .NetworkSettings.Ports "443/tcp") 0).HostPort }}' ee-global-nginx-proxy
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: 443
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.INFO: Configuring project.
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: whoami
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: root
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.INFO: Creating site demo.html.
[26-12-2018 01:37:32] ee.INFO: Copying configuration files.
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker volume ls --filter="label=org.label-schema.vendor=EasyEngine" --filter="label=io.easyengine.site=demo.html" -q
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker info 2> /dev/null | awk '/Docker Root Dir/ {print $4}'
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: /var/lib/docker
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker volume create \     --label "org.label-schema.vendor=EasyEngine" \              --label "io.easyengine.site=demo.html" \                demohtml_htdocs
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: demohtml_htdocs
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker volume create \     --label "org.label-schema.vendor=EasyEngine" \              --label "io.easyengine.site=demo.html" \                demohtml_config_nginx
[26-12-2018 01:37:32] ee.DEBUG: STDOUT: demohtml_config_nginx
[26-12-2018 01:37:32] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: -----------------------
[26-12-2018 01:37:32] ee.DEBUG: COMMAND: docker volume create \     --label "org.label-schema.vendor=EasyEngine" \              --label "io.easyengine.site=demo.html" \                demohtml_log_nginx
[26-12-2018 01:37:33] ee.DEBUG: STDOUT: demohtml_log_nginx
[26-12-2018 01:37:33] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:33] ee.DEBUG: -----------------------
[26-12-2018 01:37:33] ee.INFO: Starting site's services.
[26-12-2018 01:37:33] ee.DEBUG: -----------------------
[26-12-2018 01:37:33] ee.DEBUG: COMMAND: docker-compose up -d
                                                       Creating demohtml_nginx_1 ... done    Creating demohtml_nginx_1 ...
[26-12-2018 01:37:37] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:37] ee.DEBUG: -----------------------
[26-12-2018 01:37:37] ee.DEBUG: -----------------------
[26-12-2018 01:37:37] ee.DEBUG: COMMAND: docker-compose restart nginx
    Restarting demohtml_nginx_1 ... done
.
[26-12-2018 01:37:43] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:37:43] ee.DEBUG: -----------------------
[26-12-2018 01:37:43] ee.INFO: Host entry already exists.
[26-12-2018 01:37:43] ee.INFO: Checking and verifying site-up status. This may take some time.
[26-12-2018 01:37:43] ee.DEBUG: demo.html status httpcode: 503
[26-12-2018 01:37:45] ee.DEBUG: demo.html status httpcode: 503
[26-12-2018 01:37:57] ee.DEBUG: demo.html status httpcode: 0
[26-12-2018 01:38:02] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:07] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:09] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:11] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:13] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:15] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:17] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:19] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:21] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:23] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:25] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:27] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:29] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:31] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:33] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:35] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:37] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:39] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:41] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:43] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:45] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:47] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:49] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:51] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:53] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:38:55] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:07] ee.DEBUG: demo.html status httpcode: 0
[26-12-2018 01:39:09] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:11] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:13] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:15] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:17] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:19] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:21] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:23] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:25] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:27] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:29] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:31] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:33] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:35] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:37] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:39] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:41] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:43] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:45] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:47] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:49] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:51] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:53] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:55] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:57] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:39:59] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:01] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:03] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:05] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:07] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:09] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:11] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:13] ee.DEBUG: demo.html status httpcode: 502
[26-12-2018 01:40:13] ee.INFO: ======================== site cleanup start ========================
[26-12-2018 01:40:13] ee.WARNING: Problem connecting to site!
[26-12-2018 01:40:13] ee.WARNING: Initiating clean-up.
[26-12-2018 01:40:13] ee.DEBUG: -----------------------
[26-12-2018 01:40:13] ee.DEBUG: COMMAND: docker-compose down
                                                                     Removing demohtml_nginx_1 ... done Network ee-global-frontend-network is external, skipping Removing network demo.html
[26-12-2018 01:40:15] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.INFO: [demo.html] Docker Containers removed.
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: COMMAND: docker volume ls --filter="label=org.label-schema.vendor=EasyEngine" --filter="label=io.easyengine.site=demo.html" -q
[26-12-2018 01:40:15] ee.DEBUG: STDOUT: demohtml_config_nginx demohtml_htdocs demohtml_log_nginx
[26-12-2018 01:40:15] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: COMMAND: docker volume rm demohtml_config_nginx
[26-12-2018 01:40:15] ee.DEBUG: STDOUT: demohtml_config_nginx
[26-12-2018 01:40:15] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: COMMAND: docker volume rm demohtml_htdocs
[26-12-2018 01:40:15] ee.DEBUG: STDOUT: demohtml_htdocs
[26-12-2018 01:40:15] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.DEBUG: COMMAND: docker volume rm demohtml_log_nginx
[26-12-2018 01:40:15] ee.DEBUG: STDOUT: demohtml_log_nginx
[26-12-2018 01:40:15] ee.DEBUG: RETURN CODE: 0
[26-12-2018 01:40:15] ee.DEBUG: -----------------------
[26-12-2018 01:40:15] ee.INFO: [demo.html] site root removed.
[26-12-2018 01:40:15] ee.INFO: Site demo.html deleted.
[26-12-2018 01:40:15] ee.INFO: ======================== site cleanup end ========================
bravenguyendotcom commented 5 years ago

I have the same problem with the similar log when creating a wordpress site and getting httpcode 502/503. I can create other sites successfully but only the one with the specific domain. My system: EEv4, Ubuntu 18, Google Cloud.

bravenguyendotcom commented 5 years ago

I have the same problem with the similar log when creating a wordpress site and getting httpcode 502/503. I can create other sites successfully but only the one with the specific domain. My system: EEv4, Ubuntu 18, Google Cloud.

Everything has been fixed with EEv4.0.8 My old EE version was 4.0.6

mbtamuli commented 5 years ago

@abhijitrakas Can you check with v4.0.8?

risturiz commented 5 years ago

Hi, im getting the same error "status httpcode: 502" with fresh Ubuntu 18.04 install ( ee.WARNING: Problem connecting to site! )