Page 1 of 1

Ошибка 500 или аномальное поведение

Posted: Wed Mar 06, 2019 4:25 pm
by zeeroks
Был у меня европейский VDS, на котором вот уже 2 года стоит веста. Все стабильно, все на высшем уровне. Стоял там apache+nginx, и куча сайтов на вордпрессе. Позже ресурсы я исчерпал, и вместо расширения сервера я взял еще один VDS у firstvds (т.к. я из россии, то пинг в разы меньше). Накатил туда также весту, но решил отказаться от апача и поставил nginx+php-fpm, стал переносить сайты. Заметил прирост производительности на этой связке, снес все и с нуля поставил эту же связку на первом сервере.
Спустя какое-то время сайты на втором сервере падают с ошибкой 500. В логах пусто. Никаких манипуляций после переноса не производилось. Упало все само по себе. Пробовал что можно, и что нельзя - ничего не помогало. В итоге собирал сайт с нуля (переносил только базу данных), но спустя какое-то время все снова падало с ошибкой 500. Далее уже и базу с нуля наполнял. Толку ноль.
При этом на первом сервере все работает идеально.
Характеристики одинаковые. Везде установки совершенно идентичные, на чистый сервер, Debian 9. Никакой кастомизации, нигде.
Пробовал тупо переносить от аккаунтов весты, до сайтов\баз данных с первого на второй - не работает.

В тех. поддержке firstvds сказали, что не понимают причину и в итоге склонили к тому, что vesta - говно, покупайте у нас ispmanager.
Но почему-то же на первом сервере все работает без сбоев.
Голова уже разрывается. В чем может крыться подвох?

Сейчас все снова снес и на чистый сервер поставил весту и туда только один сайт на вп. Перенес только папку public_html (уж в ней то не может быть конфигов старого сервера..?), и сразу же ошибка 500.
В еррорлогах:
SpoilerShow
2019/03/06 18:03:08 [error] 22540#22540: *152 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:03:08 [error] 22540#22540: *154 open() "/home/zeeroks/web/test.autounicum.com/public_html/favicon.ico" failed (2: No such file or directory), client: 109.60.203.104, server: test.autounicum.com, request: "GET /favicon.ico HTTP/1.1", host: "test.autounicum.com", referrer: "http://test.autounicum.com/"
2019/03/06 18:04:01 [error] 25292#25292: *156 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:04:44 [error] 413#413: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:04:45 [error] 1418#1418: *3 connect() to unix:/dev/null failed (111: Connection refused) while connecting to upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/dev/null:", host: "test.autounicum.com"
2019/03/06 18:04:48 [error] 1418#1418: *3 connect() to unix:/dev/null failed (111: Connection refused) while connecting to upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/dev/null:", host: "test.autounicum.com"
2019/03/06 18:04:48 [error] 1418#1418: *3 connect() to unix:/dev/null failed (111: Connection refused) while connecting to upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/dev/null:", host: "test.autounicum.com"
2019/03/06 18:04:49 [error] 1418#1418: *3 connect() to unix:/dev/null failed (111: Connection refused) while connecting to upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/dev/null:", host: "test.autounicum.com"
2019/03/06 18:05:51 [error] 1685#1685: *8 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/test.autounicum.com.sock:", host: "test.autounicum.com"
2019/03/06 18:05:53 [crit] 2317#2317: *11 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:05:53 [crit] 2317#2317: *11 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:06:07 [crit] 2317#2317: *13 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:06:07 [crit] 2317#2317: *13 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:07:07 [error] 2317#2317: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:09:27 [crit] 2317#2317: *19 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:09:27 [crit] 2317#2317: *19 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:10:27 [error] 2317#2317: *19 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:11:20 [error] 2317#2317: *27 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 66.249.70.10, server: test.autounicum.com, request: "GET /sitemap.xml.gz HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:11:37 [crit] 2317#2317: *29 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:11:37 [crit] 2317#2317: *29 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:11:45 [crit] 2317#2317: *31 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 38.130.183.219, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:11:45 [crit] 2317#2317: *31 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 38.130.183.219, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:12:21 [error] 2317#2317: *29 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:12:38 [crit] 418#418: *1 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:12:38 [crit] 418#418: *1 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:12:41 [crit] 418#418: *1 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:12:41 [crit] 418#418: *1 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:13:42 [error] 418#418: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:14:47 [crit] 418#418: *6 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:14:47 [crit] 418#418: *6 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:15:47 [error] 418#418: *6 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:19:22 [crit] 418#418: *12 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:19:22 [crit] 418#418: *12 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:20:22 [error] 418#418: *12 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:24:04 [crit] 418#418: *17 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:24:04 [crit] 418#418: *17 open() "/home/zeeroks/web/test.autounicum.com/public_html/" failed (13: Permission denied), client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", host: "test.autounicum.com"
2019/03/06 18:25:36 [error] 418#418: *19 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:27:35 [error] 432#432: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:30:58 [error] 432#432: *9 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:40:45 [error] 411#411: *5 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:42:11 [error] 411#411: *5 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:44:27 [error] 411#411: *15 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 66.249.70.12, server: test.autounicum.com, request: "GET /sitemap.xml.gz HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:58:32 [error] 411#411: *21 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 18:59:44 [error] 411#411: *21 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 109.60.203.104, server: test.autounicum.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
2019/03/06 19:16:51 [error] 411#411: *36 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 66.249.70.10, server: test.autounicum.com, request: "GET /sitemap.xml.gz HTTP/1.1", upstream: "fastcgi://127.0.0.1:9003", host: "test.autounicum.com"
Была проблема с правами, вроде решил ее. Но по прежнему ошибка 500.
Повторюсь: конфиги идентичные на серверах, почти все по дефолту. Там работает, а тут нет.

Re: Ошибка 500 или аномальное поведение

Posted: Wed Mar 06, 2019 6:39 pm
by yariksat
Вы случайно в папку с форумом

Code: Select all

/home/zeeroks/web/test.autounicum.com/public_html/
не под root файлы заливаете.Да и вообще не под root там ходите,меняете что-то и тому подобное?
Владелец папок и файлов в

Code: Select all

/home/zeeroks/web/test.autounicum.com/public_html/
кто?
Перенесли то папку public_html и стопудово её туда под root бахнули.И потом удивляетесь ошибке 500
Движку банально не хватает прав на работу,так как там везде root.О чем прямо в логах и пишет,в доступе отказано.

Re: Ошибка 500 или аномальное поведение

Posted: Wed Mar 06, 2019 7:29 pm
by zeeroks
yariksat wrote: Wed Mar 06, 2019 6:39 pm Вы случайно в папку с форумом

Code: Select all

/home/zeeroks/web/test.autounicum.com/public_html/
не под root файлы заливаете.Да и вообще не под root там ходите,меняете что-то и тому подобное?
Владелец папок и файлов в

Code: Select all

/home/zeeroks/web/test.autounicum.com/public_html/
кто?
Перенесли то папку public_html и стопудово её туда под root бахнули.И потом удивляетесь ошибке 500
Движку банально не хватает прав на работу,так как там везде root.О чем прямо в логах и пишет,в доступе отказано.
Стопудово?
Так уверенно говорите, жаль, что совсем неверно.

Архивирую в tar папку, переношу ее под пользователем, и из консоли разархивирую. 5 лет администратирую сервера, всегда так делал, никаких проблем ни с чем не возникало. С чего бы сейчас вдруг возникла?

Я уже молчу про то, что вы необъективно смотрите на мою проблему.
Говорю же. Сайт может работать, если его собрать с нуля, но при этом все снова рухнет через 1-10 дней.
Ресурсов, кстати, хватает разумеется, т.к. для теста запускаю только один сайт на сервере.
Результат всегда один - ошибка 500.

Re: Ошибка 500 или аномальное поведение

Posted: Thu Mar 07, 2019 12:48 pm
by yariksat
Владельца папок и файлов так и не озвучили.
Может уже тогда что-то с самим?