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 <[email protected]> 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 _______________________________________________ Wikimedia Cloud Services mailing list [email protected] (formerly [email protected]) https://lists.wikimedia.org/mailman/listinfo/cloud
