我让offlineimap运行在*/10 * * * * offlineimap -q -u quiet的cron任务上。每隔一段时间,它似乎就会被打断,当这种情况发生时,我无法重新启动它。如果我试图从终端运行它,就会得到一个错误,指示它已被锁定:
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退出所有的方式?
发布于 2017-03-23 22:30:38
这似乎在OfflineIMAP 6.6.1中得到了解决。
https://unix.stackexchange.com/questions/277437
复制相似问题