- location ~ .py$ {
include uwsgi_params;
uwsgi_pass unix:/home/pi/sockets/camcon.sock;
#uwsgi_modifier1 9;
}
- # Socket
socket = unix:/home/pi/sockets/camcon.sock
chown-socket = www-data:www-data
chmod-socket = 777
uid = www-data
gid = www-data
- uwsgi_config.log
uwsgi socket 0 bound to TCP address unix:/home/pi/sockets/camcon.sock fd 3
setgid() to 33
set additional group 44 (video)
set additional group 998 (i2c)
setuid() to 33
- 2018/02/06 10:52:00 [debug] 507#507: *1 stream socket 15
2018/02/06 10:52:00 [debug] 507#507: *1 epoll add connection: fd:15 ev:80002005
2018/02/06 10:52:00 [debug] 507#507: *1 connect to unix:/home/pi/sockets/camcon.sock, fd:15 #3
2018/02/06 10:52:00 [error] 507#507: *1 connect() to unix:/home/pi/sockets/camcon.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.1.6, server: localhost, request: "GET /cambot/cgi-bin/index.py HTTP/1.1", upstream: "uwsgi://unix:/home/pi/sockets/camcon.sock:", host: "192.168.1.17"
I am a novice and would be grateful for any help with this frustrating problem.