﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
855	Invalid detection of unix sockets in configuration files	bartosz.wojcik.pl@…		"
I don't want to be an asshole, but I've just upgraded my server with
this latest Debian package

nginx -v
nginx version: nginx/1.9.8

and all of my websites are down.

I've just upgraded nginx (everything else is latest for Debian Jessie)

My logs are filled with:

2015/12/08 23:53:25 [error] 5582#5582: *559 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xx.220.5.234, server: devstart.pl, request: ""GET /profile/624-hubot/?do=content&type=calendar_event&sortby=calendar_events.e$
2015/12/08 23:53:26 [error] 5582#5582: *561 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.113.153.218, server: devstart.pl, request: ""GET /feed/ HTTP/1.1"", host: ""www.devstart.pl""
2015/12/08 23:53:27 [error] 5582#5582: *563 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.113.153.218, server: devstart.pl, request: ""GET /pytania/feed/ HTTP/1.1"", host: ""www.devstart.pl""
2015/12/08 23:53:27 [error] 5582#5582: *564 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.220.5.234, server: devstart.pl, request: ""GET /profile/624-hubot/?do=content&type=calendar_event&sortby=calendar_events.e$
2015/12/08 23:53:29 [error] 5582#5582: *565 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.220.5.234, server: devstart.pl, request: ""GET /profile/624-hubot/?do=content&type=calendar_event&sortby=calendar_events.e$
2015/12/08 23:53:31 [error] 5582#5582: *566 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.220.5.234, server: devstart.pl, request: ""GET /profile/624-hubot/?do=content&type=calendar_event&sortby=calendar_events.e$
2015/12/08 23:53:32 [error] 5582#5582: *568 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.249.78.31, server: devstart.pl, request: ""GET /temat/174-instalacja-libgdx/ HTTP/1.1"", host: ""devstart.pl""
2015/12/08 23:53:33 [error] 5582#5582: *569 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.220.5.234, server: devstart.pl, request: ""GET /profile/624-hubot/?do=content&type=calendar_event&sortby=calendar_events.e$
2015/12/08 23:53:35 [error] 5582#5582: *570 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xxx.220.5.234, server: devstart.pl, request: ""GET /profile/624-hubot/?do=content&type=cms_records1&sortby=cms_custom_database$
2015/12/08 23:53:36 [error] 5582#5582: *571 no port in upstream ""unix:/var/run/php5-fpm.devstart.sock"", client: xx.220.5.234, server: devstart.

Unix sockets are available at the exact locations, no configuration
files were modified.

It seems like latest nginx cannot properly handle unix socket
configuration entry and looks for the the port number even if the
listening entry is unix socket.

My php configs were the same all the time

location ~ \.php$ {

    include fastcgi_params;

    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    # NOTE: You should have ""cgi.fix_pathinfo = 0;"" in php.ini

    # With php5-fpm:
    fastcgi_pass unix:/var/run/php5-fpm.$user.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

(I specify $user to handle different users)

I dunno if that helps you, but I cannot downgrade to anything above 1.8 (and it cannot handle http2). I'm stuck here..."	defect	closed	blocker		nginx-core	1.9.x	fixed	configuration,unix,sockets,parser	mdounin@…	"Linux bartoszwojcik.com 4.1.5-x86_64-linode61 #7 SMP Mon Aug 24 13:46:31 EDT 2015 x86_64 GNU/Linux
"	nginx version: nginx/1.9.8
