wyveo / craftcms-docker

Craft3/Craft2 CMS Docker base (Nginx, PHP-FPM 8, PostgreSQL/MariaDB, Redis)
https://hub.docker.com/r/wyveo/craftcms-docker
MIT License
100 stars 31 forks source link

Installing plugins fails #15

Closed artus closed 6 years ago

artus commented 6 years ago

When installing plugins, I get an error from nginx in the CraftCMS CP.

colinwilson commented 6 years ago

Got more info? What's the error? Which plugin(s) were you installing?

artus commented 6 years ago

These are the logs from the docker-compose console:


web_1       | 10.0.2.2 - - [22/May/2018:09:21:40 +0000] "POST /admin/plugin-store HTTP/1.1" 200 4035 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:21:40 +0000] "GET /cpresources/cb9caaa1/update.css?v=1526653124 HTTP/1.1" 200 1262 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:21:40 +0000] "GET /cpresources/cb9caaa1/Updater.min.js?v=1526653124 HTTP/1.1" 200 2399 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:22:40 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 515 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 2018/05/22 09:22:40 [error] 17#17: *46 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.0.2.2, server: _, request: "POST /index.php?p=admin/actions/pluginstore/install/composer-install HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "localhost", referrer: "http://localhost/admin/plugin-store"
web_1       | 2018/05/22 09:22:40 [error] 17#17: *46 open() "/usr/share/nginx/web/50x.html" failed (2: No such file or directory), client: 10.0.2.2, server: _, request: "POST /index.php?p=admin/actions/pluginstore/install/composer-install HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "localhost", referrer: "http://localhost/admin/plugin-store"
web_1       | 10.0.2.2 - - [22/May/2018:09:22:40 +0000] "POST /index.php?p=admin/actions/pluginstore/install/composer-install HTTP/1.1" 404 162 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 0.0.2.2 - - [22/May/2018:09:18:52 +0000] "POST /index.php?p=admin/actions/plugin-store/create-cart HTTP/1.1" 200 690 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:18:53 +0000] "GET /index.php?p=admin/actions/plugin-store/plugin-store-data HTTP/1.1" 200 35523 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:19:02 +0000] "GET /cpresources/f83e9d7d/images/resizehandle.png HTTP/1.1" 200 227 "http://localhost/cpresources/f83e9d7d/css/craft.css?v=1526648458" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:19:03 +0000] "GET /index.php?p=admin/actions/plugin-store/plugin-details&pluginId=269 HTTP/1.1" 200 636 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:19:49 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 516 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:20:49 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 516 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:21:11 +0000] "GET /index.php?p=admin/actions/plugin-store/plugin-details&pluginId=267 HTTP/1.1" 200 692 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:21:38 +0000] "GET /index.php?p=admin/actions/plugin-store/plugin-details&pluginId=31623 HTTP/1.1" 200 728 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:21:40 +0000] "POST /admin/plugin-store HTTP/1.1" 200 4035 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:21:40 +0000] "GET /cpresources/cb9caaa1/update.css?v=1526653124 HTTP/1.1" 200 1262 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:21:40 +0000] "GET /cpresources/cb9caaa1/Updater.min.js?v=1526653124 HTTP/1.1" 200 2399 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 10.0.2.2 - - [22/May/2018:09:22:40 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 515 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | nginx stdout | 2018/05/22 09:22:40 [error] 17#17: *46 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 10.0.2.2, server: _, request: "POST /index.php?p=admin/actions/pluginstore/install/composer-install HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "localhost", referrer: "http://localhost/admin/plugin-store"
web_1       | 2018/05/22 09:22:40 [error] 17#17: *46 open() "/usr/share/nginx/web/50x.html" failed (2: No such file or directory), client: 10.0.2.2, server: _, request: "POST /index.php?p=admin/actions/pluginstore/install/composer-install HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "localhost", referrer: "http://localhost/admin/plugin-store"
web_1       | 10.0.2.2 - - [22/May/2018:09:22:40 +0000] "POST /index.php?p=admin/actions/pluginstore/install/composer-install HTTP/1.1" 404 162 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox10.0.2.2 - - [22/May/2018:09:22:40 +0000] "POST /index.php?p=admin/actions/pluginstore/install/finish HTTP/1.1" 200 251 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:22:42 +0000] "GET /cpresources/cb9caaa1/images/error.png HTTP/1.1" 200 914 "http://localhost/cpresources/cb9caaa1/update.css?v=1526653124" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:23:40 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 513 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:24:41 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 518 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:25:41 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 514 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
web_1       | 10.0.2.2 - - [22/May/2018:09:26:41 +0000] "GET /index.php?p=admin/actions/users/get-remaining-session-time&dontExtendSession=1 HTTP/1.1" 200 514 "http://localhost/admin/plugin-store" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"

This is what is displayed in the browser:

image

And this is the error-message in the textarea from above:


A fatal error has occurred:

Status: Not Found

Response: <html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
artus commented 6 years ago

I've noticed that this error comes up but the plugins still get installed. I have to go to settings -> plugins and there I could instruct the plugins to be installed.