You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've been having issues setting up the fcgi script, I'm using the same setup that I'm using for smokeping itself, but I'm not able to get past this error. NGINX ends up reporting a 502 Bad Gateway whenever I try to call /smokeping/smokeping_th_helper.fcgi
I have followed the steps in the readme which includes:
Initialized the database (successful)
Ran a couple of updates using the traceroute_history_runner.py --update-now command (successful after forcing tzlocal<3.0)
Tried running and opening the Web GUI (works fine after changing the install_dir path)
Created the symbolic link for smokeping_th_helper.fcgi
Copied the nginx config and restarted nginx service
Tested both smokeping (working as usual) and the smokeping_th_helper.fcgi (502 Bad Gateway)
alex@dicypi:/opt/traceroute_history $ sudo ./smokeping_th_helper.fcgi
Traceback (most recent call last):
File "/opt/traceroute_history/./smokeping_th_helper.fcgi", line 76, in <module>
WSGIServer(app).run()
File "/home/alex/.local/lib/python3.9/site-packages/flup/server/fcgi.py", line 111, in run
sock = self._setupSocket()
File "/home/alex/.local/lib/python3.9/site-packages/flup/server/fcgi_base.py", line 1025, in _setupSocket
sock = socket.fromfd(FCGI_LISTENSOCK_FILENO, socket.AF_INET,
File "/usr/lib/python3.9/socket.py", line 545, in fromfd
return socket(family, type, proto, nfd)
File "/usr/lib/python3.9/socket.py", line 232, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 88] Socket operation on non-socket
Running it through nginx (opening http://dicypi/smokeping/smokeping_th_helper.fcgi):
2023/06/06 21:08:01 [error] 646357#646357: *82 FastCGI sent in stderr: "Traceback (most recent call last):
File "/usr/lib/cgi-bin/smokeping_th_helper.fcgi", line 76, in <module>
WSGIServer(app).run()
File "/usr/local/lib/python3.9/dist-packages/flup/server/fcgi.py", line 111, in run
sock = self._setupSocket()
File "/usr/local/lib/python3.9/dist-packages/flup/server/fcgi_base.py", line 1025, in _setupSocket
sock = socket.fromfd(FCGI_LISTENSOCK_FILENO, socket.AF_INET,
File "/usr/lib/python3.9/socket.py", line 545, in fromfd
return socket(family, type, proto, nfd)
File "/usr/lib/python3.9/socket.py", line 232, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 88] Socket operation on non-socket" while reading response header from upstream, client: 192.168.1.77, server: _, request: "GET /smokeping/smokeping_th_helper.fcgi HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "192.168.1.22"
2023/06/06 21:08:01 [error] 646357#646357: *82 upstream prematurely closed FastCGI stdout while reading response header from upstream, client: 192.168.1.77, server: _, request: "GET /smokeping/smokeping_th_helper.fcgi HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "192.168.1.22"
The text was updated successfully, but these errors were encountered:
Hello! I've been having issues setting up the fcgi script, I'm using the same setup that I'm using for smokeping itself, but I'm not able to get past this error. NGINX ends up reporting a 502 Bad Gateway whenever I try to call
/smokeping/smokeping_th_helper.fcgi
I have followed the steps in the readme which includes:
traceroute_history_runner.py --update-now
command (successful after forcingtzlocal<3.0
)smokeping_th_helper.fcgi
smokeping_th_helper.fcgi
(502 Bad Gateway)NGINX config:
Running the script manually:
Running it through nginx (opening
http://dicypi/smokeping/smokeping_th_helper.fcgi
):The text was updated successfully, but these errors were encountered: