Discussion:
cyrus failed to mmap annotations.db.NEW file: Cannot allocate memory
Jan Kowalsky
2016-12-16 16:49:02 UTC
Permalink
Hi all,

I have a very urgent problem with a kolab cyrus setup:

While trying to create a new mailfolder (or calendar) we reproducable
get the following errors in log.

Dec 16 16:36:24 mail imap[2503]: IOERROR: mapping
/srv/imap/config/annotations.db.NEW file: Cannot allocate memory
Dec 16 16:36:24 mail imap[2503]: Fatal error: failed to mmap
/srv/imap/config/annotations.db.NEW file
Dec 16 16:36:24 mail imap[2503]: twoskip:
/srv/imap/config/annotations.db closed while still locked


If I create e.g. the calendar via roundcube, the created folder seems to
get correct metadata:

/shared/vendor/cmu/cyrus-imapd/partition default
/shared/vendor/cmu/cyrus-imapd/lastupdate 16-Dec-2016 17:44:07
+0100
/shared/vendor/cmu/cyrus-imapd/duplicatedeliver false
/shared/vendor/cmu/cyrus-imapd/pop3newuidl true
/shared/vendor/cmu/cyrus-imapd/size 0
/shared/vendor/cmu/cyrus-imapd/sharedseen false
/shared/vendor/kolab/folder-type event
/shared/vendor/cmu/cyrus-imapd/uniqueid 2b4d862e585419d7


If I create the calendar entry from inside the calendar view I get an
error displayed: Fehler beim Speichern.: [SETMETADATA: Fatal error:
failed to mmap /srv/imap/config/annotations.db.NEW file]

While creating it from the -> settings -> folder interface there is no
error but the same in logfile.

We're running
2.5~dev2015021301-0~kolab1
in kolab 3.4 on debian.

The annotations.db is twoscip. All I've found about similar problems
like https://forge.univention.org/bugzilla/show_bug.cgi?id=28464 are
related to berkeley db - not to twoskip.

Any Idea?
Thanks
Jankow
Andy Kopciuch
2016-12-16 19:41:56 UTC
Permalink
Post by Jan Kowalsky
Hi all,
While trying to create a new mailfolder (or calendar) we reproducable
get the following errors in log.
Dec 16 16:36:24 mail imap[2503]: IOERROR: mapping
/srv/imap/config/annotations.db.NEW file: Cannot allocate memory
Dec 16 16:36:24 mail imap[2503]: Fatal error: failed to mmap
/srv/imap/config/annotations.db.NEW file
/srv/imap/config/annotations.db closed while still locked
I had a similar problem detailed in this thread :

https://lists.kolab.org/pipermail/users/2016-September/020924.html

I mentioned the solution to the issues in this message :

https://lists.kolab.org/pipermail/users/2016-September/020931.html



Andy
Jan Kowalsky
2016-12-17 00:00:40 UTC
Permalink
Hi Andy,
Post by Andy Kopciuch
Post by Jan Kowalsky
Hi all,
While trying to create a new mailfolder (or calendar) we reproducable
get the following errors in log.
Dec 16 16:36:24 mail imap[2503]: IOERROR: mapping
/srv/imap/config/annotations.db.NEW file: Cannot allocate memory
Dec 16 16:36:24 mail imap[2503]: Fatal error: failed to mmap
/srv/imap/config/annotations.db.NEW file
/srv/imap/config/annotations.db closed while still locked
https://lists.kolab.org/pipermail/users/2016-September/020924.html
https://lists.kolab.org/pipermail/users/2016-September/020931.html
thanks a lot !!!
this saved my evening.

I converted annotations.db mailboxes.db and ptscache.db to skiplist. For
the first look everything works.

Did you just convert the databases the errors occured for or all of your
cyrus dbs?

Kind regards
Jan
Andy Kopciuch
2016-12-17 00:33:54 UTC
Permalink
Post by Jan Kowalsky
thanks a lot !!!
this saved my evening.
I converted annotations.db mailboxes.db and ptscache.db to skiplist. For
the first look everything works.
Did you just convert the databases the errors occured for or all of your
cyrus dbs?
I only converted the files I needed to.

Once you've figured out how converting / config of the databases works ... if
it's required again somewhere else then it's not really a problem to deal with
it.


Andy

Loading...