Mepata
(Miguel)
October 26, 2016, 10:15pm
1
NethServer 7rc:
Hi, I cant not migrate inbox mail but the rest is sync. (200gB)
Oct 26 22:44:09 svc dovecot: imap(xxxxxxx@xxxxxx.net ): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0x6a06e) [0x7f5bc6f4006e] -> /usr/lib64/dovecot/libdovecot.so.0(+0x6a14e) [0x7f5bc6f4014e] -> /usr/lib64/dovecot/libdovecot.so.0(i_error+0) [0x7f5bc6ef86a2] -> /usr/lib64/dovecot/libdovecot.so.0(+0x7f1a8) [0x7f5bc6f551a8] -> /usr/lib64/dovecot/libdovecot.so.0(+0x7f1df) [0x7f5bc6f551df] -> /usr/lib64/dovecot/libdovecot.so.0(p_strdup+0x28) [0x7f5bc6f62378] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_uidlist_refresh+0x93c) [0x7f5bc72003bc] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x54b8e) [0x7f5bc7200b8e] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_uidlist_lookup+0x24) [0x7f5bc7200c04] -> /usr/lib64/dovecot/libdovecot-storage.so.0(maildir_sync_lookup+0x20) [0x7f5bc71fbb30] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x4a081) [0x7f5bc71f6081] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x4a500) [0x7f5bc71f6500] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x4abdc) [0x7f5bc71f6bdc] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0x9c699) [0x7f5bc7248699] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_mail_set_seq+0x63) [0x7f5bc724ab13] -> /usr/lib64/dovecot/libdovecot-storage.so.0(+0xa578b) [0x7f5bc725178b] -> /usr/lib64/dovecot/libdovecot-storage.so.0(index_storage_search_next_nonblock+0x104) [0x7f5bc7251eb4] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next_nonblock+0x1f) [0x7f5bc722b46f] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_search_next+0x3d) [0x7f5bc722b4dd] -> dovecot/imap(+0x1a874) [0x7f5bc7708874] -> dovecot/imap(imap_fetch_more+0x32) [0x7f5bc7709852] -> dovecot/imap(cmd_fetch+0x33d) [0x7f5bc76fd17d] -> dovecot/imap(command_exec+0x3c) [0x7f5bc770701c] -> dovecot/imap(+0x17f1f) [0x7f5bc7705f1f] -> dovecot/imap(+0x18005) [0x7f5bc7706005] -> dovecot/imap(client_handle_input+0x14d) [0x7f5bc77062fd] -> dovecot/imap(client_input+0x85) [0x7f5bc77066c5] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0x27) [0x7f5bc6f50a87] Oct 26 22:44:09 svc dovecot: imap(xxxxxx@xxxxxxxx.net ): Fatal: master: service(imap): child 11803 returned error 83 (Out of memory (service imap { vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1 environment to get core dump)
davidep
(Davide Principi)
October 27, 2016, 8:57am
2
The log message is clear!
How much physical RAM does your system have? Are you running mail-filter services, too?
Maybe you can try to increase vsz_limit in dovecot configuration.
Mepata
(Miguel)
October 27, 2016, 6:22pm
4
Hi I have on my server 8gb ram but i don’t see in /etc/dovecot/dovecot.conf the line vsz_limit or i need add.
Thanks
davidep
(Davide Principi)
October 27, 2016, 7:13pm
5
Try to add the line by hand. If it fixes the problem, we see how to make the change persistent!
Please have a look at “doveconf” command and its man page!
Mepata
(Miguel)
October 27, 2016, 10:55pm
6
For now i just add 1024MB and its working fine.
service imap {
executable = imap imap-postlogin
vsz_limit = 1024MB
}
4 Likes
davidep
(Davide Principi)
October 28, 2016, 7:04am
7
To make it persistent you need a custom template , a file containing the lines above in the right place.
In your case create that file like
/etc/e-smith/templates-custom/etc/dovecot/dovecot.conf/90myvszlimit
Then run
expand-template /etc/dovecot/dovecot.conf
You should see your vsz_limit directive at the end of /etc/dovecot/dovecot.conf
. Verify it is parsed correctly by runnint doveconf -n
.
2 Likes
pagaille
(Matthieu Gaillet)
September 17, 2018, 8:54am
8
I encountered the same problem. @davidep , when I add the configuration lines in the custom template,
The system answers with this :
expand-template /etc/dovecot/dovecot.conf
WARNING in /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit: Unquoted string "executable" may clash with future reserved word at /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit line 2.
WARNING in /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit: Bareword found where operator expected at /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit line 3, near "1024MB"
WARNING in /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit: (Missing operator before MB?)
ERROR in /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit: Program fragment delivered error <<Can't modify negation (-) in scalar assignment at /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit line 4, near "1024MB
"
syntax error at /etc/e-smith/templates-custom//etc/dovecot/dovecot.conf/90myvszlimit line 4, near "1024MB
">> at template line 1
ERROR: Template processing failed for //etc/dovecot/dovecot.conf: 3 fragments generated warnings, 1 fragment generated errors
at /sbin/e-smith/expand-template line 45.
What should I do ?
davidep
(Davide Principi)
September 17, 2018, 9:06am
9
The template processor requires that curly braces are properly escaped: {
becomes \{
and }
becomes \}
.
See for instance this custom template for dovecot:
https://github.com/NethServer/nethserver-mail/blob/master/README.rst#enable-dovecot-imap-rawlog
2 Likes
davidep
(Davide Principi)
Split this topic
January 29, 2020, 8:32am
11
2 posts were split to a new topic: Set Dovecot vsz_limit with a prop