OK, this tool is still crashing, and I need help understanding what to debug. Is it the PHP script? I don't know enough PHP to debug this properly, so I'll need help if so. Or can the whole service go down because a Python CGI script crashes?
I've taken a look through the logs, and until late December last year, whenever it went down, it was brought up again immediately.
I've pasted the logs of the most recent crashes at https://wikitech.wikimedia.org/wiki/User:Slashme/logpaste
On Mon, 27 Jan 2020 at 22:57, David Richfield davidrichfield@gmail.com wrote:
This tool is still crashing, and it's not clear why. I think I've fixed the Python issues that were causing the errors in the log that Arturo noticed, but it crashed again today.
tools.parliamentdiagram@tools-sgebastion-07:~$ webservice status Your webservice is not running tools.parliamentdiagram@tools-sgebastion-07:~$ webservice start Starting webservice............. tools.parliamentdiagram@tools-sgebastion-07:~$ tail -f error.log 2020-01-27 21:39:43: (log.c.217) server started
So there was nothing in the error log to suggest why the service stopped: the only line in the file was from when I started it up again.
Any other suggestions about where I should look for the problem?
On 22/01/2020, Arturo Borrero Gonzalez aborrero@wikimedia.org wrote:
On 1/22/20 11:32 AM, David Richfield wrote:
Hi all,
The parliament diagram tool ( https://tools.wmflabs.org/parliamentdiagram/parlitest.php ) is down. Last time it happened was a week ago: I just restarted the webservice like Alex did, but now it's down again and I'm at work, so I can't log in for the next six hours or so. Can someone restart it for me?
here you go!
tools.parliamentdiagram@tools-sgebastion-07:~$ webservice status Your webservice is not running
tools.parliamentdiagram@tools-sgebastion-07:~$ webservice start Starting webservice.......
tools.parliamentdiagram@tools-sgebastion-07:~$ webservice status Your webservice of type lighttpd is running
Also, how can I find out why it keeps going down?
Try inspecting log files. For example:
tools.parliamentdiagram@tools-sgebastion-07:~$ wc -l error.log 283822 error.log
You have plenty of information there, including some "funny" things like:
Traceback (most recent call last): File "/data/project/parliamentdiagram/public_html//westminster.py", line 81, in <module> sumdelegates['left'], sumdelegates['right'])/float(optionlist['wingrows']['left']))) ZeroDivisionError: float division by zero
-- David Richfield +49 170 570 4998