我已经offlineimap
运行了一个 cron 作业*/10 * * * * offlineimap -q -u quiet
。每隔一段时间它似乎就会被中断,当这种情况发生时我无法重新启动它。如果我尝试从终端运行它,我会收到一条错误消息,表明它已被锁定:
OfflineIMAP 6.5.5
Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync Example:
*** Processing account Example
ERROR: Could not lock account Example. Is another instance using this account?
*** Finished account 'Example' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: Could not lock account Example. Is another instance using this account?
Traceback:
File "/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 240, in syncrunner
self.lock()
File "/usr/lib/python2.7/dist-packages/offlineimap/accounts.py", line 207, in lock
OfflineImapError.ERROR.REPO)
有什么办法可以打破锁定或者强制offlineimap
退出吗?
答案1
这似乎在 OfflineIMAP 6.6.1 中得到了解决。