[Dovecot] Upgrade Problem from 2.0.18 to 2.1.7
hi there,
i'm running a debian wheezy in a chroot at a fritzbox 7230, running with freetz. Running well until the upgrade of version 2.1.7 from debian repros comming up.
after upgrade, the server comes up, but login is not possible.
Jul 20 20:13:46 master: Warning: Killed with signal 15 (by pid=15309
uid=0 code=kill)
Jul 20 20:13:46 master: Info: Dovecot v2.1.7 starting up (core dumps
disabled)
Jul 20 20:14:15 lda: Debug: Loading modules from directory:
/usr/lib/dovecot/modules
Jul 20 20:14:15 lda: Debug: Loading modules from directory:
/usr/lib/dovecot/modules
Jul 20 20:14:15 lda: Debug: Module loaded:
/usr/lib/dovecot/modules/lib90_sieve_plugin.so
Jul 20 20:14:15 lda(mdomann): Debug: Effective uid=1000, gid=1000,
home=/home/mdomann
Jul 20 20:14:15 lda: Debug: Module loaded:
/usr/lib/dovecot/modules/lib90_sieve_plugin.so
Jul 20 20:14:15 lda(mdomann): Debug: Namespace : type=private, prefix=,
sep=, inbox=yes, hidden=no,
list=yes, subscriptions=yes location=maildir:/home/mdomann/Mail:LAYOUT=fs
Jul 20 20:14:15 lda(mdomann): Debug: fs: root=/home/mdomann/Mail,
index=, control=, inbox=/home/mdom
ann/Mail, alt=
Jul 20 20:14:15 lda(mdomann): Debug: Effective uid=1000, gid=1000,
home=/home/mdomann
Jul 20 20:14:15 lda(mdomann): Debug: Namespace : type=private, prefix=,
sep=, inbox=yes, hidden=no,
list=yes, subscriptions=yes location=maildir:/home/mdomann/Mail:LAYOUT=fs
Jul 20 20:14:15 lda(mdomann): Debug: fs: root=/home/mdomann/Mail,
index=, control=, inbox=/home/mdom
ann/Mail, alt=
Jul 20 20:14:15 lda(mdomann): Debug: userdb lookup skipped, username
taken from USER environment
Jul 20 20:14:15 lda(mdomann): Debug: none: root=, index=, control=,
inbox=, alt=
Jul 20 20:14:15 lda(mdomann): Debug: userdb lookup skipped, username
taken from USER environment
Jul 20 20:14:15 lda(mdomann): Debug: none: root=, index=, control=,
inbox=, alt=
Jul 20 20:14:16 lda(mdomann): Debug: Destination address:
mdomann@fritz.fonwlan.box (source: user@ho
stname)
Jul 20 20:14:16 lda(mdomann): Debug: Destination address:
mdomann@fritz.fonwlan.box (source: user@ho
stname)
Jul 20 20:14:16 lda(mdomann): Debug: sieve: include: sieve_global_dir is
not set; it is currently no
t possible to include :global' scripts. Jul 20 20:14:16 lda(mdomann): Debug: sieve: include: sieve_global_dir is not set; it is currently no t possible to include
:global' scripts.
Jul 20 20:14:16 lda(mdomann): Debug: sieve: using sieve path for user's
script: /home/mdomann/.dovec
ot.sieve
Jul 20 20:14:16 lda(mdomann): Debug: sieve: using sieve path for user's
script: /home/mdomann/.dovec
ot.sieve
Jul 20 20:14:16 lda(mdomann): Debug: sieve: opening script
/home/mdomann/.dovecot.sieve
Jul 20 20:14:16 lda(mdomann): Debug: sieve: opening script
/home/mdomann/.dovecot.sieve
Jul 20 20:14:16 lda(mdomann): Debug: sieve: script binary
/home/mdomann/.dovecot.svbin successfully
loaded
Jul 20 20:17:15 imap: Error: dovecot/imap: error while loading shared
libraries: libpthread.so.0: failed to map segment from shared object:
Cannot allocate memory
Jul 20 20:17:15 imap: Fatal: master: service(imap): child 22594 returned
error 127
Jul 20 20:17:15 master: Error: service(imap): command startup failed,
throttling for 2 secs
Jul 20 20:17:15 imap-login: Error: read(imap) failed: Connection reset
by peer
Jul 20 20:17:15 imap-login: Info: Internal login failure (pid=22586
id=1) (internal failure, 1 succesful auths): user=<mdomann>,
method=PLAIN, rip=192.168.2.105, lip=192.168.2.1, TLS,
session=<gHEKlUjFNQDAqAJp>
the libary is still there fritz:~# ldd /usr/sbin/dovecot
libdovecot.so.0 => /usr/lib/dovecot/libdovecot.so.0 (0x2aaaa000)
libc.so.6 => /lib/mips-linux-gnu/libc.so.6 (0x2ab48000)
libdl.so.2 => /lib/mips-linux-gnu/libdl.so.2 (0x2accc000)
librt.so.1 => /lib/mips-linux-gnu/librt.so.1 (0x2ace0000)
/lib/ld.so.1 (0x55550000)
libpthread.so.0 => /lib/mips-linux-gnu/libpthread.so.0 (0x2acfa000)
the ulimit i have tried, but without success.
root@fritz:/var/mod/root# ulimit -a -f: file size (blocks) unlimited -t: cpu time (seconds) unlimited -d: data seg size (kb) unlimited -s: stack size (kb) unlimited -c: core file size (blocks) unlimited -m: resident set size (kb) unlimited -l: locked memory (kb) unlimited -p: processes unlimited -n: file descriptors 16384 -v: address space (kb) unlimited -w: locks unlimited
fritz:~# dovecot -n # 2.0.18: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28.10 mips Debian wheezy/sid squashfs base_dir = /var/run/dovecot/ default_client_limit = 100 default_process_limit = 50 default_vsz_limit = 6 M disable_plaintext_auth = no lda_mailbox_autocreate = yes listen = * log_path = /var/log/dovecot login_greeting = Dovecot on sysiphus ready. mail_debug = yes mail_gid = 1000 mail_location = maildir:/home/mdomann/Mail:LAYOUT=fs mail_uid = 1000 namespace { hidden = no inbox = yes list = yes location = prefix = subscriptions = yes type = private } passdb { args = scheme=CRYPT username_format=%u /etc/dovecot/users driver = passwd-file } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_global_path = /etc/dovecot/dovecot.sieve } postmaster_address = mdomann@localhost protocols = " imap" service anvil { client_limit = 210 } service auth-worker { user = $default_internal_user } service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } unix_listener auth-userdb { group = mdomann mode = 0777 user = mdomann } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } service_count = 1 } service lmtp { unix_listener lmtp { mode = 0666 } } ssl_cert =
root@fritz:/var/mod/root# free -m total used free shared buffers Mem: 59512 52260 7252 0 2452 -/+ buffers: 49808 9704 Swap: 538608 8116 530492
I have no idea to solve this. The question is, is it possible a bug in debian wheezy mips or in dovecot. Hopefully someone can point me in the right direction.
thanks and regards micha
Michael Domann wrote:
Jul 20 20:17:15 imap: Error: dovecot/imap: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Jul 20 20:17:15 imap: Fatal: master: service(imap): child 22594 returned error 127
Looks like a "out of memory" problem.
default_vsz_limit = 6 M
Maybe increase this value. On my Linux box it is set to 256M. Possibly 6M is not enough?
root@fritz:/var/mod/root# free -m total used free shared buffers Mem: 59512 52260 7252 0 2452 -/+ buffers: 49808 9704 Swap: 538608 8116 530492
You're almost running out of memory, used 50MB out of 60MB.
Try to temporarily disable other services on the box and see the IMAP service runs smoothly?
Regards, Daniel
Am 21.07.2012 23:04, schrieb Daniel Parthey:
Michael Domann wrote:
Jul 20 20:17:15 imap: Error: dovecot/imap: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Jul 20 20:17:15 imap: Fatal: master: service(imap): child 22594 returned error 127
Looks like a "out of memory" problem.
default_vsz_limit = 6 M Maybe increase this value. On my Linux box it is set to 256M. Possibly 6M is not enough?
yes, this is way too few
root@fritz:/var/mod/root# free -m total used free shared buffers Mem: 59512 52260 7252 0 2452 -/+ buffers: 49808 9704 Swap: 538608 8116 530492
You're almost running out of memory, used 50MB out of 60MB
you missed the param "-m"
Thanks for pointing the right direction.
I have set default_vsz_limit = 16M and it works.
And a short question, possible i should make a new thread, but i think it's a little config issue from me.
Can i prevent dovecot from making new dirs? Because i have one draft and one entwürfe dir, also one trash and one papierkorb. one german, one english. the dirs are always created new, after i delete them.
thanks and regards Michael
Am 21.07.2012 23:04, schrieb Daniel Parthey:
Michael Domann wrote:
Jul 20 20:17:15 imap: Error: dovecot/imap: error while loading shared libraries: libpthread.so.0: failed to map segment from shared object: Cannot allocate memory Jul 20 20:17:15 imap: Fatal: master: service(imap): child 22594 returned error 127
Looks like a "out of memory" problem.
default_vsz_limit = 6 M
Maybe increase this value. On my Linux box it is set to 256M. Possibly 6M is not enough?
root@fritz:/var/mod/root# free -m total used free shared buffers Mem: 59512 52260 7252 0 2452 -/+ buffers: 49808 9704 Swap: 538608 8116 530492
You're almost running out of memory, used 50MB out of 60MB.
Try to temporarily disable other services on the box and see the IMAP service runs smoothly?
Regards, Daniel
Michael Domann wrote:
Can i prevent dovecot from making new dirs? Because i have one draft and one entwürfe dir, also one trash and one papierkorb. one german, one english. the dirs are always created new, after i delete them.
Most probably, your mail clients are responsible for creating the folders via IMAP. Dovecot only performs the commands from your IMAP client, so this is rather a client issue.
You will need to tell *all* your mail user agents and your mobile phone to use the same folders for the same purpose.
Regards Daniel
Am 22.07.2012 17:23, schrieb Daniel Parthey:
Michael Domann wrote:
Can i prevent dovecot from making new dirs? Because i have one draft and one entwürfe dir, also one trash and one papierkorb. one german, one english. the dirs are always created new, after i delete them.
Most probably, your mail clients are responsible for creating the folders via IMAP. Dovecot only performs the commands from your IMAP client, so this is rather a client issue.
You will need to tell *all* your mail user agents and your mobile phone to use the same folders for the same purpose.
Regards Daniel
you may "advice" mailclients if they support it
i.e
http://dovecot.org/list/dovecot/2011-December/062327.html
feature called IMAP SPECIAL-USE
-- Best Regards MfG Robert Schetterer
participants (4)
-
Daniel Parthey
-
Michael Domann
-
Reindl Harald
-
Robert Schetterer