Page MenuHomePhabricator

IOError when trying to get suggestions for a specific title
Closed, ResolvedPublic

Description

Once I logged in, I search 'River Thames' and this error came up:

Error:
[Errno 0] Error 
Traceback (most recent call last):
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/data/project/oabot/www/python/src/app.py", line 140, in process
context = get_proposed_edits(page_name, force)
File "/data/project/oabot/www/python/src/app.py", line 229, in get_proposed_edits
filtered = list(filter(lambda e: e.proposed_change, all_templates))
File "./oabot/main.py", line 286, in add_oa_links_in_references
edit.propose_change()
File "./oabot/main.py", line 81, in propose_change
sys.stdout.write('.')
IOError: [Errno 0] Error

Event Timeline

I changed the search to 'Patient' and this error came up:

Error:
[Errno 116] Stale file handle 
Traceback (most recent call last):
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/data/project/oabot/www/python/src/app.py", line 140, in process
context = get_proposed_edits(page_name, force)
File "/data/project/oabot/www/python/src/app.py", line 229, in get_proposed_edits
filtered = list(filter(lambda e: e.proposed_change, all_templates))
File "./oabot/main.py", line 286, in add_oa_links_in_references
edit.propose_change()
File "./oabot/main.py", line 82, in propose_change
sys.stdout.flush()
IOError: [Errno 116] Stale file handle

I tried going to the main page, https://tools.wmflabs.org/oabot/. I clicked the Random button and after that tried to search 'River Thames' again, error once again:

Error:
[Errno 116] Stale file handle 
Traceback (most recent call last):
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/data/project/oabot/www/python/venv/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/data/project/oabot/www/python/src/app.py", line 140, in process
context = get_proposed_edits(page_name, force)
File "/data/project/oabot/www/python/src/app.py", line 229, in get_proposed_edits
filtered = list(filter(lambda e: e.proposed_change, all_templates))
File "./oabot/main.py", line 286, in add_oa_links_in_references
edit.propose_change()
File "./oabot/main.py", line 82, in propose_change
sys.stdout.flush()
IOError: [Errno 116] Stale file handle
Nemo_bis renamed this task from Searching after logging in to IOError when trying to get suggestions for a specific title.Jul 22 2019, 12:53 PM
Nemo_bis triaged this task as Medium priority.
Nemo_bis claimed this task.
Nemo_bis subscribed.

Thank you for trying OAbot.

The IOError should not happen (for "Stale file handle" we had T224643, while for the other I temporarily commented out that line a few weeks ago).

I cannot reproduce the issue now, I think it was caused by Toolforge I/O limitations. In such cases you can try and work on random suggestions, which are more efficient coming from the queu.