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?
Also, how can I find out why it keeps going down?
Thanks a million!
David
On Sat, 28 Dec 2019 at 13:16, Alex Monk krenair@gmail.com wrote:
I doubt it's that as the tools project didn't loose any exec instances in
this issue that I'm aware of.
Anyway I started that tool up
krenair@tools-sgebastion-07:~$ sudo become parliamentdiagram 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
On Sat, 28 Dec 2019 at 11:59, David Richfield davidrichfield@gmail.com
wrote:
Hi!
The parliament diagram tool (
https://tools.wmflabs.org/parliamentdiagram/parlitest.php) is down, and I'm on holiday away from my computers. Is this due to this issue, and what should I be doing about it?
David Richfield davidrichfield@gmail.com schrieb am Sa., 28. Dez. 2019, 12:59:
Hi!
The parliament diagram tool ( https://tools.wmflabs.org/parliamentdiagram/parlitest.php) is down, and I'm on holiday away from my computers. Is this due to this issue, and what should I be doing about it?
Thanks
David
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
Arturo Borrero Gonzalez SRE / Wikimedia Cloud Services Wikimedia Foundation
Thanks a million! I'll take a look this evening.
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
Arturo Borrero Gonzalez SRE / Wikimedia Cloud Services Wikimedia Foundation
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
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
Please create a ticket on Phabricator and assign it to me. I will log all my findings there.
YiFei Zhu
On Fri, Jan 31, 2020 at 3:23 PM David Richfield davidrichfield@gmail.com wrote:
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
-- David Richfield +49 170 570 4998
Wikimedia Cloud Services mailing list Cloud@lists.wikimedia.org (formerly labs-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/cloud
You might want to use `is_object` rather then `isset` in `response.php`.
You should probablu do similar checks in `doUpload`.
And probably check what you get from `curl_exec` because the API call probably fails.
Not sure why that would kill the webservice though.
Good luck ;-), Nux.
David Richfield (2020-01-31 22:22):
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