Page MenuHomePhabricator

Tell user who currently has the lock file
Closed, ResolvedPublic

Description

16:09:03 Unhandled error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/scap/cli.py", line 242, in run
    exit_status = app.main(app.extra_arguments)
  File "/usr/lib/python2.7/dist-packages/scap/main.py", line 487, in main
    return super(SyncFile, self).main(*extra_args)
  File "/usr/lib/python2.7/dist-packages/scap/main.py", line 43, in main
    with utils.lock(self.config['lock_file']):
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/usr/lib/python2.7/dist-packages/scap/utils.py", line 335, in lock
    os.unlink(filename)
OSError: [Errno 1] Operation not permitted: '/var/lock/scap'
16:09:03 sync-file failed: <OSError> [Errno 1] Operation not permitted: '/var/lock/scap'

looks a bit nasty, though it's obvious to work out what's going on. Can we tell the user who currently has the lock?

Event Timeline

02:26 < ostriches> da heck?
02:26 < ostriches> 02:26:31 sync-file failed: <LockFailedError> Failed to lock /var/lock/scap: [Errno 13] Permission denied: '/var/lock/scap'
02:26 < ostriches> mwdeploy owns it, and I was the one to do it....
02:28 < ostriches> thur we go
02:28 < logmsgbot> !log demon@tin Synchronized wmf-config/CommonSettings.php: delist codereview (duration: 00m 27s)  
02:28 <  morebots> Logged the message at https://wikitech.wikimedia.org/wiki/Server_Admin_Log, Master
02:29 < logmsgbot> !log mwdeploy@tin scap sync-l10n completed (1.28.0-wmf.10) (duration: 08m 41s)
02:29 <  morebots> Logged the message at https://wikitech.wikimedia.org/wiki/Server_Admin_Log, Master
02:41 < ostriches> Oh, i18n. That was it
greg triaged this task as Low priority.Jul 20 2016, 4:32 PM
greg added a project: Scap.

Setting as low as this doesn't happen too often (right?).

demon claimed this task.