elementor / lokl-cli

Interactive script to launch and manage your Lokl sites
The Unlicense
66 stars 7 forks source link

502 on docker container restart (workaround available) #24

Closed fazalfarhan01 closed 3 years ago

fazalfarhan01 commented 3 years ago

Hi there. First of all. Thankyou for the great loklc-cli. Great piece of software and it took away my hassle of creating a new VM for every isolated instance of wordpress. So creating a WordPress instance using the script works flawlessly. I took it by surprise that i didnt get any error during exporting to static site (I do get a few errors on my site). So everything works until the container is restarted.

Waiting for customercaresolution to be ready at http://localhost:4639 ............Timed out waiting for site to come online...

But creating a new instance works again.
1. I am on windows 10 with latest version of WSL2 kernel installed.
2. Running Ubuntu 20.04 WSL2
3. Latest version of docker with docker-compose.
4. I get a 502 when the container is restarted (Up and running).

## Container Log:

2021-04-22T11:45:49.750260900Z Running provisioning script (second run), 2021-04-22T11:45:49.757379100Z daemon off;, 2021-04-22T11:45:49.757396800Z , 2021-04-22T11:45:49.757400100Z error_log stderr notice;, 2021-04-22T11:45:49.757402600Z pid /var/run/nginx.pid;, 2021-04-22T11:45:49.757405000Z , 2021-04-22T11:45:49.757407300Z user root root;, 2021-04-22T11:45:49.757409700Z , 2021-04-22T11:45:49.757411900Z worker_processes 1;, 2021-04-22T11:45:49.757414200Z events {, 2021-04-22T11:45:49.757416600Z worker_connections 1024;, 2021-04-22T11:45:49.757419100Z }, 2021-04-22T11:45:49.757421500Z , 2021-04-22T11:45:49.757423900Z http {, 2021-04-22T11:45:49.757426200Z , 2021-04-22T11:45:49.757428500Z # connection timeouts, 2021-04-22T11:45:49.757430800Z fastcgi_read_timeout 3000;, 2021-04-22T11:45:49.757433100Z fastcgi_buffers 8 128k;, 2021-04-22T11:45:49.757435400Z fastcgi_buffer_size 128k;, 2021-04-22T11:45:49.757437700Z client_max_body_size 1024M;, 2021-04-22T11:45:49.757439900Z client_header_timeout 3000;, 2021-04-22T11:45:49.757442200Z client_body_timeout 3000;, 2021-04-22T11:45:49.757444500Z send_timeout 3000;, 2021-04-22T11:45:49.757447000Z , 2021-04-22T11:45:49.757449300Z sendfile on;, 2021-04-22T11:45:49.757451600Z , 2021-04-22T11:45:49.757453800Z # content, 2021-04-22T11:45:49.757456300Z include /etc/nginx/mime.types;, 2021-04-22T11:45:49.757458700Z include /etc/nginx/fastcgi.conf;, 2021-04-22T11:45:49.757461100Z default_type application/octet-stream;, 2021-04-22T11:45:49.757463400Z gzip on;, 2021-04-22T11:45:49.757465700Z gzip_vary off;, 2021-04-22T11:45:49.757468100Z gzip_types text/plain text/css text/javascript image/svg+xml image/x-icon application/javascript application/x-javascript;, 2021-04-22T11:45:49.757471900Z , 2021-04-22T11:45:49.757474100Z , 2021-04-22T11:45:49.757476400Z access_log stdout;, 2021-04-22T11:45:49.757478700Z tcp_nopush on;, 2021-04-22T11:45:49.757480900Z client_body_temp_path /tmp/nginx/body 1 2;, 2021-04-22T11:45:49.757483200Z fastcgi_temp_path /tmp/nginx/fastcgi_temp 1 2;, 2021-04-22T11:45:49.757485500Z , 2021-04-22T11:45:49.757487900Z log_format blocked '$time_local: Blocked request from $http_x_real_ip $request';, 2021-04-22T11:45:49.757490300Z , 2021-04-22T11:45:49.757492600Z log_format specialLog '$http_x_real_ip - $remote_user [$time_local] ', 2021-04-22T11:45:49.757495000Z '"$request" $status $body_bytes_sent ', 2021-04-22T11:45:49.757497500Z '"$http_referer" "$http_user_agent"';, 2021-04-22T11:45:49.757508100Z , 2021-04-22T11:45:49.757510700Z server {, 2021-04-22T11:45:49.757513000Z listen 4639; # MAIN_NGINX_LISTEN_LINE, 2021-04-22T11:45:49.757515300Z , 2021-04-22T11:45:49.757517500Z root /usr/html;, 2021-04-22T11:45:49.757519700Z index index.php index.html index.htm;, 2021-04-22T11:45:49.757522100Z access_log stdout;, 2021-04-22T11:45:49.757524300Z error_log stderr notice;, 2021-04-22T11:45:49.757526600Z , 2021-04-22T11:45:49.757528800Z disable_symlinks off;, 2021-04-22T11:45:49.757531000Z , 2021-04-22T11:45:49.757533300Z location / {, 2021-04-22T11:45:49.757535500Z try_files $uri $uri/ /index.php?$args;, 2021-04-22T11:45:49.757537800Z }, 2021-04-22T11:45:49.757540800Z , 2021-04-22T11:45:49.757543100Z location ~ /(?:uploads|files)/..php$ {, 2021-04-22T11:45:49.757545600Z deny all;, 2021-04-22T11:45:49.757547900Z }, 2021-04-22T11:45:49.757550200Z , 2021-04-22T11:45:49.757552500Z location ~ .(jpg|jpeg|gif|png|css|js|ico|xml)$ {, 2021-04-22T11:45:49.757555300Z access_log off;, 2021-04-22T11:45:49.757557500Z log_not_found off;, 2021-04-22T11:45:49.757559700Z expires 360d;, 2021-04-22T11:45:49.757561900Z }, 2021-04-22T11:45:49.757564200Z , 2021-04-22T11:45:49.757566900Z location ~ [^/].php(/|$) {, 2021-04-22T11:45:49.757569200Z fastcgi_split_path_info ^(.+?.php)(/.)$;, 2021-04-22T11:45:49.757571600Z if (!-f $document_root$fastcgi_script_name) {, 2021-04-22T11:45:49.757573800Z return 404;, 2021-04-22T11:45:49.757576100Z }, 2021-04-22T11:45:49.757578300Z fastcgi_pass unix:/var/run/php7-fpm.sock;, 2021-04-22T11:45:49.757580700Z fastcgi_index index.php;, 2021-04-22T11:45:49.757583000Z fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;, 2021-04-22T11:45:49.757585300Z include fastcgi_params;, 2021-04-22T11:45:49.757587600Z }, 2021-04-22T11:45:49.757589800Z }, 2021-04-22T11:45:49.757592000Z }, 2021-04-22T11:45:50.017919600Z waiting for mysql to be available..., 2021-04-22T11:45:50.108969400Z 2021-04-22 11:45:50 0 [Note] /usr/bin/mysqld (mysqld 10.5.8-MariaDB) starting as process 14 ..., 2021-04-22T11:45:50.163672400Z 2021-04-22 11:45:50 0 [Note] mysqld: Aria engine: starting recovery, 2021-04-22T11:45:50.166438300Z recovered pages: 0% 100% (0.0 seconds); tables to flush: 1 0, 2021-04-22T11:45:50.169100000Z (0.0 seconds); , 2021-04-22T11:45:50.169109400Z 2021-04-22 11:45:50 0 [Note] mysqld: Aria engine: recovery done, 2021-04-22T11:45:50.173369100Z 2021-04-22 11:45:50 0 [Note] InnoDB: Using Linux native AIO, 2021-04-22T11:45:50.173387100Z 2021-04-22 11:45:50 0 [Note] InnoDB: Uses event mutexes, 2021-04-22T11:45:50.173391800Z 2021-04-22 11:45:50 0 [Note] InnoDB: Compressed tables use zlib 1.2.11, 2021-04-22T11:45:50.173858100Z 2021-04-22 11:45:50 0 [Note] InnoDB: Number of pools: 1, 2021-04-22T11:45:50.174875500Z 2021-04-22 11:45:50 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions, 2021-04-22T11:45:50.174894100Z 2021-04-22 11:45:50 0 [Note] mysqld: O_TMPFILE is not supported on /var/tmp (disabling future attempts), 2021-04-22T11:45:50.272668200Z 2021-04-22 11:45:50 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728, 2021-04-22T11:45:50.278441000Z 2021-04-22 11:45:50 0 [Note] InnoDB: Completed initialization of buffer pool, 2021-04-22T11:45:50.278869000Z 2021-04-22 11:45:50 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority()., 2021-04-22T11:45:50.571369700Z 2021-04-22 11:45:50 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=45130,45130, 2021-04-22T11:45:50.771086400Z 2021-04-22 11:45:50 0 [Note] InnoDB: Starting final batch to recover 169 pages from redo log., 2021-04-22T11:45:50.992573400Z 2021-04-22 11:45:50 0 [Note] InnoDB: 128 rollback segments are active., 2021-04-22T11:45:50.995100500Z 2021-04-22 11:45:50 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1", 2021-04-22T11:45:50.995116300Z 2021-04-22 11:45:50 0 [Note] InnoDB: Creating shared tablespace for temporary tables, 2021-04-22T11:45:50.995120400Z 2021-04-22 11:45:50 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ..., 2021-04-22T11:45:50.995841500Z 2021-04-22 11:45:50 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB., 2021-04-22T11:45:50.997075300Z 2021-04-22 11:45:50 0 [Note] InnoDB: 10.5.8 started; log sequence number 721800; transaction id 721, 2021-04-22T11:45:50.997162000Z 2021-04-22 11:45:50 0 [Note] Plugin 'FEEDBACK' is disabled., 2021-04-22T11:45:50.997191300Z 2021-04-22 11:45:50 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool, 2021-04-22T11:45:51.011849900Z 2021-04-22 11:45:51 0 [Note] InnoDB: Buffer pool(s) load completed at 210422 11:45:51, 2021-04-22T11:45:51.107856300Z 2021-04-22 11:45:51 0 [Note] Reading of all Master_info entries succeeded, 2021-04-22T11:45:51.107874300Z 2021-04-22 11:45:51 0 [Note] Added new Master_info '' to hash table, 2021-04-22T11:45:51.107878100Z 2021-04-22 11:45:51 0 [Note] /usr/bin/mysqld: ready for connections., 2021-04-22T11:45:51.107880800Z Version: '10.5.8-MariaDB' socket: '/run/mysqld/mysqld.sock' port: 0 MariaDB Server, 2021-04-22T11:45:51.108198500Z 2021-04-22 11:45:51 3 [Warning] Access denied for user 'root'@'localhost' (using password: NO), 2021-04-22T11:45:51.854600200Z Success: Updated 'home' option., 2021-04-22T11:45:52.179425800Z Success: Updated 'siteurl' option., 2021-04-22T11:45:52.499259800Z Success: Updated 'blogname' option., 2021-04-22T11:45:52.509235600Z 2021/04/22 11:45:52 [notice] 49#49: using the "epoll" event method, 2021-04-22T11:45:52.509256700Z 2021/04/22 11:45:52 [notice] 49#49: nginx/1.18.0, 2021-04-22T11:45:52.509260100Z 2021/04/22 11:45:52 [notice] 49#49: OS: Linux 5.4.72-microsoft-standard-WSL2, 2021-04-22T11:45:52.509262800Z 2021/04/22 11:45:52 [notice] 49#49: getrlimit(RLIMIT_NOFILE): 1048576:1048576, 2021-04-22T11:45:52.509265300Z 2021/04/22 11:45:52 [notice] 49#49: start worker processes, 2021-04-22T11:45:52.509502700Z 2021/04/22 11:45:52 [notice] 49#49: start worker process 50, 2021-04-22T11:46:27.237511400Z Running provisioning script (third, n+ run), 2021-04-22T11:46:27.237683200Z 2021/04/22 11:46:27 [notice] 8#8: using the "epoll" event method, 2021-04-22T11:46:27.237700600Z 2021/04/22 11:46:27 [notice] 8#8: nginx/1.18.0, 2021-04-22T11:46:27.237734000Z 2021/04/22 11:46:27 [notice] 8#8: OS: Linux 5.4.72-microsoft-standard-WSL2, 2021-04-22T11:46:27.237745000Z 2021/04/22 11:46:27 [notice] 8#8: getrlimit(RLIMIT_NOFILE): 1048576:1048576, 2021-04-22T11:46:27.237752200Z 2021/04/22 11:46:27 [notice] 8#8: start worker processes, 2021-04-22T11:46:27.237813800Z 2021/04/22 11:46:27 [notice] 8#8: start worker process 9, 2021-04-22T11:46:27.443443600Z 2021/04/22 11:46:27 [error] 9#9: 1 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:46:29.221696300Z 2021/04/22 11:46:29 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:46:32.452659500Z 2021/04/22 11:46:32 [error] 9#9: 6 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:46:37.461556300Z 2021/04/22 11:46:37 [error] 9#9: 8 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:46:42.471198900Z 2021/04/22 11:46:42 [error] 9#9: 10 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:46:47.480342900Z 2021/04/22 11:46:47 [error] 9#9: 12 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:46:52.489783100Z 2021/04/22 11:46:52 [error] 9#9: 14 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:46:57.498813300Z 2021/04/22 11:46:57 [error] 9#9: 16 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:47:01.281836700Z 2021/04/22 11:47:01 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:01.731784700Z 2021/04/22 11:47:01 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:02.115139500Z 2021/04/22 11:47:02 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:02.489982300Z 2021/04/22 11:47:02 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:02.510606000Z 2021/04/22 11:47:02 [error] 9#9: 22 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:47:02.834384300Z 2021/04/22 11:47:02 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:03.121520000Z 2021/04/22 11:47:03 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:03.401517700Z 2021/04/22 11:47:03 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:03.633793700Z 2021/04/22 11:47:03 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:03.875313800Z 2021/04/22 11:47:03 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:04.082330200Z 2021/04/22 11:47:04 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:04.275181600Z 2021/04/22 11:47:04 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:04.506601700Z 2021/04/22 11:47:04 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:05.344456200Z 2021/04/22 11:47:05 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:05.722099000Z 2021/04/22 11:47:05 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:06.098744100Z 2021/04/22 11:47:06 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:06.417858100Z 2021/04/22 11:47:06 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:06.595683000Z 2021/04/22 11:47:06 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:06.779938700Z 2021/04/22 11:47:06 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:06.986030900Z 2021/04/22 11:47:06 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:07.187572700Z 2021/04/22 11:47:07 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:07.513819400Z 2021/04/22 11:47:07 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:07.523423800Z 2021/04/22 11:47:07 [error] 9#9: 41 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:47:07.858902900Z 2021/04/22 11:47:07 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:08.201551100Z 2021/04/22 11:47:08 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:08.514189100Z 2021/04/22 11:47:08 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:08.849769800Z 2021/04/22 11:47:08 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:09.170394800Z 2021/04/22 11:47:09 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:09.329369800Z 2021/04/22 11:47:09 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:09.497604200Z 2021/04/22 11:47:09 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:09.690386900Z 2021/04/22 11:47:09 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:09.859064900Z 2021/04/22 11:47:09 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:10.185784100Z 2021/04/22 11:47:10 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:10.467703400Z 2021/04/22 11:47:10 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:10.793702600Z 2021/04/22 11:47:10 [error] 9#9: 3 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", referrer: "http://localhost:4639/hello-world/", 2021-04-22T11:47:12.533258200Z 2021/04/22 11:47:12 [error] 9#9: 55 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:47:17.542893900Z 2021/04/22 11:47:17 [error] 9#9: 57 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:47:22.551829400Z 2021/04/22 11:47:22 [error] 9#9: 59 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639", 2021-04-22T11:47:27.562051300Z 2021/04/22 11:47:27 [error] 9#9: *61 connect() to unix:/var/run/php7-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "localhost:4639",

leonstafford commented 3 years ago

Hi @fazalfarhan01, thanks for trying it out and glad it worked (mostly!).

Very sorry for the issue, I haven't made an update for a while, but hoping to get to it soon.

There is a report of this issue and a workaround that should keep you going for now here:

https://github.com/leonstafford/lokl/issues/29

Sorry again for the bug, looking forward to having it all smooth in near future, along with some other improvements and updated WP + plugins in the base images.

Cheers,

Leon

fazalfarhan01 commented 3 years ago

Hi @fazalfarhan01, thanks for trying it out and glad it worked (mostly!).

Very sorry for the issue, I haven't made an update for a while, but hoping to get to it soon.

There is a report of this issue and a workaround that should keep you going for now here:

https://github.com/leonstafford/lokl/issues/29

Sorry again for the bug, looking forward to having it all smooth in near future, along with some other improvements and updated WP + plugins in the base images.

Cheers,

Leon

Thanks for the quick reply. Good to know there's workaround available. And I wish you good luck in fixing it.

Once again, thanks for the great software stack.

Any possibility of adding php-imagick to the build?

leonstafford commented 3 years ago

Of course, happy to add ImageMagik and any other common libraries/tools. Please create an issue in that other repo to remind me

fazalfarhan01 commented 3 years ago

I appreciate your efforts. 👍😎

leonstafford commented 3 years ago

The 502 issue is resolved now, since 5.0.0-rc2 release.