10up / wp-local-docker

****** WP Local Docker V2 is now available - https://github.com/10up/wp-local-docker-v2
MIT License
748 stars 152 forks source link

Startup fails claiming missing files #143

Closed ScottJWalter closed 5 years ago

ScottJWalter commented 5 years ago

Describe the bug The docker container spins up, but the message display shows that both the nginx server and the mysql server have shut down and there is no active http server into the container. Both programs appear to be aborting due to a missing file (not the same file).

Steps to Reproduce

  1. git clone https://github.com/10up/wp-local-docker.git docker
  2. cd docker
  3. docker-compose up
  4. observe error in log stream

Expected behavior Container should spin up and permit access.

Screenshots Here's the output of the 'docker-compose up' command:

C:\...\docker>docker-compose up
Starting docker_mailcatcher_1   ... done                                        
Starting docker_memcached_1     ... done                                        
Starting docker_elasticsearch_1 ... done                                        
Starting docker_mysql_1         ... done                                        
Starting docker_phpfpm_1        ... done                                        
Starting docker_nginx_1         ... done                                        
Starting docker_wpsnapshots_1   ... done                                        
Attaching to docker_elasticsearch_1, docker_mysql_1, docker_memcached_1, docker_mailcatcher_1, docker_phpfpm_1, docker_wpsnapshots_1, docker_nginx_1
elasticsearch_1  | [2019-07-19T07:17:57,643][INFO ][o.e.n.Node               ] [] initializing ...
mysql_1          | Initializing database
mysql_1          | 2019-07-19T07:17:55.136807Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
mailcatcher_1    | Starting MailCatcher
mailcatcher_1    | ==> smtp://0.0.0.0:1025
mailcatcher_1    | /usr/local/bundle/gems/thin-1.5.1/lib/thin/server.rb:104: warning: constant ::Fixnum is deprecated
mailcatcher_1    | ==> http://0.0.0.0:1080
phpfpm_1         | Checking USER ID
phpfpm_1         | Host user is 0:0
phpfpm_1         | [19-Jul-2019 07:17:55] NOTICE: fpm is running, pid 1
phpfpm_1         | [19-Jul-2019 07:17:55] NOTICE: ready to handle connections
wpsnapshots_1    | Checking USER ID
wpsnapshots_1    | Host user is 0:0
wpsnapshots_1    | trap: SIGINT: bad trap
nginx_1          | nginx: [emerg] open() "/var/log/nginx/error.log" failed (2: No such file or directory)
elasticsearch_1  | [2019-07-19T07:17:59,015][INFO ][o.e.e.NodeEnvironment    ] [WVn3oiV] using [1] data paths, mounts [[/usr/share/elasticsearch/data (//10.0.75.1/E)]], net usable_space [699.6gb], net total_space [1.8tb], spins? [possibly], types [cifs]
elasticsearch_1  | [2019-07-19T07:17:59,015][INFO ][o.e.e.NodeEnvironment    ] [WVn3oiV] heap size [733.3mb], compressed ordinary object pointers [true]
mysql_1          | 2019-07-19T07:17:59.012746Z 0 [Warning] InnoDB: New log files created, LSN=45790
elasticsearch_1  | [2019-07-19T07:17:59,205][INFO ][o.e.n.Node               ] node name [WVn3oiV] derived from node ID [WVn3oiVPSwGPY27KemEIUg]; set [node.name] to override
elasticsearch_1  | [2019-07-19T07:17:59,205][INFO ][o.e.n.Node               ] version[5.6.5], pid[1], build[6a37571/2017-12-04T07:50:10.466Z], OS[Linux/4.9.125-linuxkit/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_151/25.151-b12]
elasticsearch_1  | [2019-07-19T07:17:59,205][INFO ][o.e.n.Node               ] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.cgroups.hierarchy.override=/, -Xms750m, -Xmx750m, -Des.path.home=/usr/share/elasticsearch]
mysql_1          | 2019-07-19T07:17:59.489212Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
mysql_1          | 2019-07-19T07:17:59.727284Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 56a5613b-a9f5-11e9-a522-0242ac120003.
docker_nginx_1 exited with code 1
mysql_1          | 2019-07-19T07:17:59.788050Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
mysql_1          | 2019-07-19T07:17:59.801435Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
elasticsearch_1  | [2019-07-19T07:18:01,126][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [aggs-matrix-stats]
elasticsearch_1  | [2019-07-19T07:18:01,126][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [ingest-common]
elasticsearch_1  | [2019-07-19T07:18:01,126][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [lang-expression]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [lang-groovy]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [lang-mustache]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [lang-painless]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [parent-join]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [percolator]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [reindex]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [transport-netty3]
elasticsearch_1  | [2019-07-19T07:18:01,127][INFO ][o.e.p.PluginsService     ] [WVn3oiV] loaded module [transport-netty4]
elasticsearch_1  | [2019-07-19T07:18:01,128][INFO ][o.e.p.PluginsService     ] [WVn3oiV] no plugins loaded
elasticsearch_1  | [2019-07-19T07:18:04,970][INFO ][o.e.d.DiscoveryModule    ] [WVn3oiV] using discovery type [zen]
elasticsearch_1  | [2019-07-19T07:18:06,756][INFO ][o.e.n.Node               ] initialized
elasticsearch_1  | [2019-07-19T07:18:06,756][INFO ][o.e.n.Node               ] [WVn3oiV] starting ...
elasticsearch_1  | [2019-07-19T07:18:06,967][INFO ][o.e.t.TransportService   ] [WVn3oiV] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
mysql_1          | 2019-07-19T07:18:08.534328Z 1 [ERROR] 29  File './sys/x@0024schema_flattened_keys.frm' not found (Errcode: 2 - No such file or directory)
mysql_1          | 2019-07-19T07:18:08.534472Z 0 [ERROR] Aborting
mysql_1          |
elasticsearch_1  | [2019-07-19T07:18:10,101][INFO ][o.e.c.s.ClusterService   ] [WVn3oiV] new_master {WVn3oiV}{WVn3oiVPSwGPY27KemEIUg}{NQTrC3XbRnSeh7Zk6wqKOA}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
elasticsearch_1  | [2019-07-19T07:18:10,205][INFO ][o.e.h.n.Netty4HttpServerTransport] [WVn3oiV] publish_address {172.18.0.2:9200}, bound_addresses {0.0.0.0:9200}
elasticsearch_1  | [2019-07-19T07:18:10,205][INFO ][o.e.n.Node               ] [WVn3oiV] started
elasticsearch_1  | [2019-07-19T07:18:10,207][INFO ][o.e.g.GatewayService     ] [WVn3oiV] recovered [0] indices into cluster_state
docker_mysql_1 exited with code 1

Environment information

cmmarslender commented 5 years ago

Wasn't able to reproduce this on windows, unfortunately. I'd recommend trying with WP Local Docker v2 which has replaced this version. In general, it has been support for windows and can also support multiple environments running at the same time.

https://10up.github.io/wp-local-docker-docs/