Page MenuHomePhabricator

[Errno 116] Stale file handle for OAbot on Ear mite page
Closed, ResolvedPublic

Description

I tried to use OAbot on [[Ear mite]] and got this:

OAbot
Oops! Something went wrong.
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

If you don't think you should be seeing this error please report it on Phabricator.

Event Timeline

Izno renamed this task from Ear mite on OAbot to [Errno 116] Stale file handle for OAbot on Ear mite page.May 30 2019, 11:50 AM

Same error with [[Kauri dieback]]

OAbot
Oops! Something went wrong.
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

If you don't think you should be seeing this error please report it on Phabricator.

I also saw these, but they seemed transient errors, probably related to NFS on Tools: I cannot reproduce any more. The actual solution is to stop using a file-based cache and use a database, as Pintoch recommended.