Re: Why I get a error each time cron starts
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
The error you are getting indicates that OfflineIMAP is already running.
The problem, I think, is that you are using both cron and the autorefresh in
the config file. You have to pick only one method.
If you do both, the first time cron invokes OfflineIMAP, it will never
terminate because it just keeps on syncing your mail. The next time cron
invokes it, it will detect that the first copy is still rnuning and refuse
to start the second one.
-- John
On Tue, Sep 02, 2003 at 04:58:05PM +0000, Rolf Eric Anithason wrote:
> I have added OfflineIMAP in my crontab and in my offlineimap config file
> I've set it to restart it sync every 3 minute or so. But sometimes
> OfflineIMAP crashes, due to big emails because the IMAP server it syncs
> with gives you easily time out, or some problem with UID... so then it
> is important for me to have something that can activate it again so you
> don't miss something important coming in.
>
> I have seen that the 4.0.0 I have has a "grafic" appearance when it
> starts.. this appearance seams to fail to start, because it is already
> started, and ends up with that crontab sends me a mail about it.
>
> Is it a way of coming around it, other then say to crontab to throw away
> email's like that?
>
> With regards,
>
> Rolf
>
> here is an exampel:
>
> >Traceback (most recent call last):
> > File "/usr/bin/offlineimap", line 21, in ?
> > init.startup('4.0.0')
> > File "/usr/lib/python2.2/site-packages/offlineimap/init.py", line 73, in
> > startup
> > ui = offlineimap.ui.detector.findUI(config, options.get('-u'))
> > File "/usr/lib/python2.2/site-packages/offlineimap/ui/detector.py", line
> > 41, in findUI
> > if uiinstance.isusable():
> > File "/usr/lib/python2.2/site-packages/offlineimap/ui/Curses.py", line
> > 371, in isusable
> > curses.endwin()
> >_curses.error: endwin() returned ERR
> >Traceback (most recent call last):
> > File "/usr/bin/offlineimap", line 21, in ?
> > init.startup('4.0.0')
> > File "/usr/lib/python2.2/site-packages/offlineimap/init.py", line 94, in
> > startup
> > lock(config, ui)
> > File "/usr/lib/python2.2/site-packages/offlineimap/init.py", line 37, in
> > lock
> > ui.locked()
> > File "/usr/lib/python2.2/site-packages/offlineimap/ui/UIBase.py", line
> > 132, in locked
> > raise Exception, "Another OfflineIMAP is running with the same
> > metadatadir; exiting."
> >Exception: Another OfflineIMAP is running with the same metadatadir; exiting.
> >
> >
>
>
>
|
|