Здравствуйте! Возникла проблема: после загрузки файла на сервер - удаленный - возникла ошибка 504, и не уходит. Файл, к слову, так и не загрузился, но ошибка при этом осталась. Причем показывает на всех страницах. Перепробовал все: от перезагрузки сервера до изменений настроек в конфигурационных файлах. Ничего не помогает. Сервер nginx в связке либо с апаче, либо с php-fpm (и то и другое присутствует на сервере). К слову, я не админ. К админу невозможно обратиться в виду его недоступности.
Логи error.log
2017/11/16 10:04:32 [error] 2743#0: *767 client intended to send too large body: 8498507 bytes, client: 192.168.0.202, server: tiptar.com, request: "POST /frontend_dev.php/material/create HTTP/1.1", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/material/new"
2017/11/16 12:18:25 [error] 6932#0: *27 FastCGI sent in stderr: "PHP message: PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/devel/uploads/almaz/mektep24/apps/frontend/modules/material/actions/actions.class.php:573) in /usr/share/php/symfony/response/sfWebResponse.class.php on line 336
PHP message: PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/devel/uploads/almaz/mektep24/apps/frontend/modules/material/actions/actions.class.php:573) in /usr/share/php/symfony/response/sfWebResponse.class.php on line 357" while reading upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/material/files/download/475.html?file=93811dc1a9ccb7315efd205a18ff98dd96604e3a.djvu HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/ru/material/240/show.html"
2017/11/16 12:21:46 [error] 6932#0: *41 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "POST /frontend_dev.php/material/create HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/material/new"
2017/11/16 13:03:17 [error] 6932#0: *43 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/material/new HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/ru/material/list.html"
2017/11/16 13:22:33 [error] 6932#0: *45 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/material/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/ru/material/240/show.html"
2017/11/16 13:23:06 [error] 6932#0: *47 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/school/teachers/meeting/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
2017/11/16 13:29:02 [error] 6932#0: *49 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru_RU/material/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/material/edit/id/240"
2017/11/16 13:56:59 [error] 8259#0: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/material/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/ru/material/240/show.html"
2017/11/16 13:57:03 [error] 8259#0: *3 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru_RU/material/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/material/edit/id/240"
2017/11/16 13:57:07 [error] 8259#0: *5 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/school/teachers/meeting/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
2017/11/16 15:24:47 [error] 8259#0: *7 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/school/teachers/meeting/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
2017/11/16 15:35:32 [error] 8259#0: *9 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/school/teachers/meeting/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
2017/11/16 15:35:48 [error] 8259#0: *11 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru_RU/material/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/material/edit/id/240"
2017/11/16 15:35:50 [error] 8259#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/material/list.html HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090", referrer: "http://192.168.0.100:8090/frontend_dev.php/ru/material/240/show.html"
2017/11/17 09:51:11 [error] 8259#0: *16 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
2017/11/17 10:05:31 [error] 8259#0: *29 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
2017/11/17 13:03:35 [error] 8259#0: *50 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.0.202, server: tiptar.com, request: "GET /frontend_dev.php/ru/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.0.100:8090"
Логи php5-fpm
[16-Nov-2017 12:16:18] NOTICE: exiting, bye-bye!
[16-Nov-2017 12:16:18] NOTICE: fpm is running, pid 6885
[16-Nov-2017 12:16:18] NOTICE: ready to handle connections
[16-Nov-2017 12:16:18] NOTICE: systemd monitor interval set to 10000ms
[16-Nov-2017 13:28:02] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
[17-Nov-2017 06:51:40] NOTICE: error log file re-opened
Команда рестарт /etc/init.d/php5-fpm restart
вызвала ошибку:
stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.74" (uid=1002 pid=29023 comm="stop php5-fpm ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.75" (uid=1002 pid=29016 comm="start php5-fpm ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
almaz@devel:/etc/init.d$ /etc/init.d/php5-fpm status
htop
смотрели?htop
, но то что там вижу ни о чем мне не говорит. i.imgur.com/5u4L7Ri.jpgnginx'a
(правьте свой вопрос). Логи находятся обычно по пути/var/log/nginx/log_file
.