10up / wp-local-docker-v2

ARCHIVED: A simple Docker based development environment for WordPress.
MIT License
484 stars 81 forks source link

Nginx image doesn't start - host not found in upstream "memcacheadmin" #162

Closed ricardobrg closed 4 years ago

ricardobrg commented 4 years ago

Describe the bug nginx:latest image doesn't run due to an error in with memcachedadmin in Windows 10 Home with WSL2.

/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: error: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2020/10/19 21:44:52 [emerg] 1#1: host not found in upstream "memcacheadmin" in /etc/nginx/conf.d/default.conf:29
nginx: [emerg] host not found in upstream "memcacheadmin" in /etc/nginx/conf.d/default.conf:29
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: error: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2020/10/19 22:27:03 [emerg] 1#1: host not found in upstream "memcacheadmin" in /etc/nginx/conf.d/default.conf:29
nginx: [emerg] host not found in upstream "memcacheadmin" in /etc/nginx/conf.d/default.conf:29

Steps to Reproduce On Windows

  1. Open cmd and run npm install -g wp-local-docker
  2. Run 10updocker create
    • Set a .test domain
    • no aditional domains
    • enable https
    • no proxy for media assets
    • PHP 7.4
    • no elasticsearch support
    • Install WordPress Core Development Version
    • remove default content
  3. Run 10updocker start and select environment
  4. Try to access .test domain and get 503 error

Environment Windows 10 Home 18362.1139 with WSL2 enabled Docker Desktop Community 2.4.2.0 (48975) Docker engine: 20.10.0-beta1 Compose: 1.27.4 npm 6.14.6

10updocker start log

WARNING: No blkio weight support
WARNING: No blkio weight_device support
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Locating project files for brgdev-test
Ensuring global network exists
 - Network exists
Ensuring global cache volume exists
 - Creating Volume
Ensuring global services are running
global_gateway_1 is up-to-date
global_mailcatcher_1 is up-to-date
global_dns_1 is up-to-date
global_mysql_1 is up-to-date
global_phpmyadmin_1 is up-to-date
Waiting for mysql...

Starting docker containers for brgdev-test
brgdev-test_memcached_1 is up-to-date
brgdev-test_phpfpm_1 is up-to-date
Starting brgdev-test_nginx_1 ... done                                                                                   
Environment configured for the following domains:
brgdev.test
eugene-manuilov commented 4 years ago

Hi @ricardobrg! Thanks for reporting this, but it is a known bug and has been already fixed. Please, use our @next version for now and upgrade to 2.8.0 when it's released. Run the following to install 2.8.0-rc.15:

npm i -g wp-local-docker@next
ricardobrg commented 4 years ago

It worked with latest... thanks @eugene-manuilov !