Hi, I follow different setup instructions and I can't make imap-hibernate work. I've tried vmail and dovecot as users, tried to set mode to 0666, without success. I'm using FreeBSD 11.2. Is imap-hibernate compatible with FreeBSD 11.2? My operational system: # uname -v FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 15:30:36 UTC 2019 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC Here are my logs: Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: kevent(-1) for notify remove failed: Bad file descriptor Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: close(-1) for notify remove failed: Bad file descriptor Mar 8 15:30:57 servername dovecot: imap-hibernate: Error: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: /opt/dovecot/2.3.5/var/run/dovecot/imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 Mar 8 15:30:57 servername dovecot: imap: Error: Here are my processes: # ps aux | grep imap dovenull 68264 0.0 0.0 12012 8292 - S 10:15 0:00.06 imap-login: (imap-login) dovenull 68274 0.0 0.0 12012 8272 - S 10:15 0:00.06 imap-login: (imap-login) dovenull 68275 0.0 0.0 12012 8356 - S 10:15 0:00.11 imap-login: (imap-login) dovenull 68276 0.0 0.0 12012 8468 - S 10:15 0:00.16 imap-login: (imap-login) dovenull 68277 0.0 0.0 12012 8328 - S 10:15 0:00.09 imap-login: (imap-login) dovenull 68278 0.0 0.0 12012 8368 - S 10:15 0:00.11 imap-login: (imap-login) dovenull 68279 0.0 0.0 12012 8272 - S 10:15 0:00.05 imap-login: (imap-login) dovenull 68280 0.0 0.0 12012 8288 - S 10:15 0:00.06 imap-login: (imap-login) dovenull 68281 0.0 0.0 12012 8316 - S 10:15 0:00.08 imap-login: (imap-login) dovenull 68282 0.0 0.0 12012 8312 - S 10:15 0:00.10 imap-login: (imap-login) dovenull 68283 0.0 0.0 12012 8356 - S 10:15 0:00.14 imap-login: (imap-login) dovenull 68286 0.0 0.0 12012 8312 - S 10:15 0:00.08 imap-login: (imap-login) dovenull 68287 0.0 0.0 14060 9024 - S 10:15 0:01.31 imap-login: [0 pre-login + 2 TLS proxies] (imap-login) dovenull 68288 0.0 0.0 12012 8392 - S 10:15 0:00.24 imap-login: [11.11.11.11 TLS proxy] (imap-login) dovenull 68289 0.0 0.0 14060 9116 - S 10:15 0:01.75 imap-login: [11.11.11.11 TLS proxy] (imap-login) dovenull 68290 0.0 0.0 14060 9208 - S 10:15 0:01.84 imap-login: [0 pre-login + 4 TLS proxies] (imap-login) nobody 68475 0.0 0.0 14404 6020 - I 10:19 0:00.08 /usr/local/sbin/in.imapproxyd -f /usr/local/etc/imapproxyd.conf vmail 76108 0.0 0.0 21612 17700 - S 14:30 0:00.12 imap: [user at domain.com 11.11.11.11 IDLE] (imap) vmail 76332 0.0 0.0 21536 17612 - I 14:41 0:00.16 imap: [user at domain.com 11.11.11.11 IDLE] (imap) vmail 77127 0.0 0.0 21516 17396 - S 15:17 0:00.07 imap: [user at domain.com 11.11.11.11] (imap) vmail 77170 0.0 0.0 21516 17380 - I 15:19 0:00.06 imap: [user at domain.com 11.11.11.11] (imap) vmail 77438 0.0 0.0 21516 17396 - S 15:31 0:00.05 imap: [user at domain.com 11.11.11.11] (imap) vmail 77536 0.0 0.0 21548 17400 - S 15:35 0:00.05 imap: [user at domain.com 11.11.11.11 IDLE] (imap) vmail 77539 0.0 0.0 21516 17256 - I 15:35 0:00.03 imap: [user at domain.com 11.11.11.11] (imap) vmail 77594 0.0 0.0 8892 4760 - S 15:38 0:00.01 imap-hibernate: [0 connections] (imap-hibernate) vmail 77620 0.0 0.0 21516 17256 - I 15:39 0:00.03 imap: [user at domain.com 11.11.11.11] (imap) My build options: Install prefix . : /opt/dovecot/2.3.5 File offsets ... : 64bit I/O polling .... : kqueue I/O notifys .... : kqueue SSL ............ : yes (OpenSSL) GSSAPI ......... : no passdbs ........ : static passwd passwd-file pam checkpassword sql CFLAGS ......... : -std=gnu99 -O2 -pipe -fno-strict-aliasing -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 : -shadow -bsdauth -sia -ldap -vpopmail userdbs ........ : static prefetch passwd passwd-file checkpassword sql : -ldap -vpopmail SQL drivers .... : mysql : -pgsql -sqlite -cassandra Full text search : squat lucene : -solr Configure command: ./configure '--prefix=/opt/dovecot/2.3.5' --without-docs '--without-shadow' '--without-docs' '--without-gssapi' '--without-vpopmail' '--without-ldap' --without-shadow --with-ssl=openssl --with-mysql --with-zlib --with-libwrap --with-lucene --with-stemmer --with-textcat --with-icu --without-cdb --without-lua --disable-silent-rules --build=amd64-portbld-freebsd11.2 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fno-strict-aliasing' My dovecot version: # dovecot --version 2.3.5 (513208660) My config: service imap-hibernate { chroot = client_limit = 0 drop_priv_before_exec = no executable = imap-hibernate extra_groups = $default_internal_group group = idle_kill = 0 privileged_group = process_limit = 0 process_min_avail = 0 protocol = imap service_count = 0 type = unix_listener imap-hibernate { group = $default_internal_group mode = 0660 user = vmail } user = vmail vsz_limit = 18446744073709551615 B }
On 8 Mar 2019, at 20.44, Marcelo Coelho via dovecot <dovecot at dovecot.org> wrote:> > Hi, > > I follow different setup instructions and I can't make imap-hibernate work. I've tried vmail and dovecot as users, tried to set mode to 0666, without success. I'm using FreeBSD 11.2. > > Is imap-hibernate compatible with FreeBSD 11.2? > > > > My operational system: > > # uname -v > FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 15:30:36 UTC 2019 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > > Here are my logs: > > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: kevent(-1) for notify remove failed: Bad file descriptor > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: close(-1) for notify remove failed: Bad file descriptor > Mar 8 15:30:57 servername dovecot: imap-hibernate: Error: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: /opt/dovecot/2.3.5/var/run/dovecot/imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335Looks bad. I suppose it's broken with FreeBSD.
If I can help (I'm the FreeBSD port maintainer for dovecot), I'm willing. I can also provide access to a server to help debug.... On Mon, Mar 11, 2019 at 7:54 PM Timo Sirainen via dovecot < dovecot at dovecot.org> wrote:> On 8 Mar 2019, at 20.44, Marcelo Coelho via dovecot <dovecot at dovecot.org> > wrote: > > > > Hi, > > > > I follow different setup instructions and I can't make imap-hibernate > work. I've tried vmail and dovecot as users, tried to set mode to 0666, > without success. I'm using FreeBSD 11.2. > > > > Is imap-hibernate compatible with FreeBSD 11.2? > > > > > > > > My operational system: > > > > # uname -v > > FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 15:30:36 UTC 2019 > root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > > > > Here are my logs: > > > > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): > Error: kevent(-1) for notify remove failed: Bad file descriptor > > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): > Error: close(-1) for notify remove failed: Bad file descriptor > > Mar 8 15:30:57 servername dovecot: imap-hibernate: Error: Failed to > parse client input: Invalid peer_dev_minor value: 18446744073709486335 > > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): > Error: /opt/dovecot/2.3.5/var/run/dovecot/imap-hibernate returned failure: > Failed to parse client input: Invalid peer_dev_minor value: > 18446744073709486335 > > Looks bad. I suppose it's broken with FreeBSD. > >-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 (c) E-Mail: larryrtx at gmail.com US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190311/da0fda90/attachment.html>
Turns out imap-hibernation only works if you never select any folder, which is the reason it seemed to work when I last tested it. But this is not very practical use of imap hibernation, so in practice it does not currently work with FreeBSD. Aki> On 8 March 2019 20:44 Marcelo Coelho via dovecot <dovecot at dovecot.org> wrote: > > > Hi, > > I follow different setup instructions and I can't make imap-hibernate work. I've tried vmail and dovecot as users, tried to set mode to 0666, without success. I'm using FreeBSD 11.2. > > Is imap-hibernate compatible with FreeBSD 11.2? > > > > My operational system: > > # uname -v > FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 15:30:36 UTC 2019 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > > Here are my logs: > > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: kevent(-1) for notify remove failed: Bad file descriptor > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: close(-1) for notify remove failed: Bad file descriptor > Mar 8 15:30:57 servername dovecot: imap-hibernate: Error: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 > Mar 8 15:30:57 servername dovecot: imap(user at domain.com:52.125.128.90): Error: /opt/dovecot/2.3.5/var/run/dovecot/imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 > Mar 8 15:30:57 servername dovecot: imap: Error: > > Here are my processes: > > # ps aux | grep imap > dovenull 68264 0.0 0.0 12012 8292 - S 10:15 0:00.06 imap-login: (imap-login) > dovenull 68274 0.0 0.0 12012 8272 - S 10:15 0:00.06 imap-login: (imap-login) > dovenull 68275 0.0 0.0 12012 8356 - S 10:15 0:00.11 imap-login: (imap-login) > dovenull 68276 0.0 0.0 12012 8468 - S 10:15 0:00.16 imap-login: (imap-login) > dovenull 68277 0.0 0.0 12012 8328 - S 10:15 0:00.09 imap-login: (imap-login) > dovenull 68278 0.0 0.0 12012 8368 - S 10:15 0:00.11 imap-login: (imap-login) > dovenull 68279 0.0 0.0 12012 8272 - S 10:15 0:00.05 imap-login: (imap-login) > dovenull 68280 0.0 0.0 12012 8288 - S 10:15 0:00.06 imap-login: (imap-login) > dovenull 68281 0.0 0.0 12012 8316 - S 10:15 0:00.08 imap-login: (imap-login) > dovenull 68282 0.0 0.0 12012 8312 - S 10:15 0:00.10 imap-login: (imap-login) > dovenull 68283 0.0 0.0 12012 8356 - S 10:15 0:00.14 imap-login: (imap-login) > dovenull 68286 0.0 0.0 12012 8312 - S 10:15 0:00.08 imap-login: (imap-login) > dovenull 68287 0.0 0.0 14060 9024 - S 10:15 0:01.31 imap-login: [0 pre-login + 2 TLS proxies] (imap-login) > dovenull 68288 0.0 0.0 12012 8392 - S 10:15 0:00.24 imap-login: [11.11.11.11 TLS proxy] (imap-login) > dovenull 68289 0.0 0.0 14060 9116 - S 10:15 0:01.75 imap-login: [11.11.11.11 TLS proxy] (imap-login) > dovenull 68290 0.0 0.0 14060 9208 - S 10:15 0:01.84 imap-login: [0 pre-login + 4 TLS proxies] (imap-login) > nobody 68475 0.0 0.0 14404 6020 - I 10:19 0:00.08 /usr/local/sbin/in.imapproxyd -f /usr/local/etc/imapproxyd.conf > vmail 76108 0.0 0.0 21612 17700 - S 14:30 0:00.12 imap: [user at domain.com 11.11.11.11 IDLE] (imap) > vmail 76332 0.0 0.0 21536 17612 - I 14:41 0:00.16 imap: [user at domain.com 11.11.11.11 IDLE] (imap) > vmail 77127 0.0 0.0 21516 17396 - S 15:17 0:00.07 imap: [user at domain.com 11.11.11.11] (imap) > vmail 77170 0.0 0.0 21516 17380 - I 15:19 0:00.06 imap: [user at domain.com 11.11.11.11] (imap) > vmail 77438 0.0 0.0 21516 17396 - S 15:31 0:00.05 imap: [user at domain.com 11.11.11.11] (imap) > vmail 77536 0.0 0.0 21548 17400 - S 15:35 0:00.05 imap: [user at domain.com 11.11.11.11 IDLE] (imap) > vmail 77539 0.0 0.0 21516 17256 - I 15:35 0:00.03 imap: [user at domain.com 11.11.11.11] (imap) > vmail 77594 0.0 0.0 8892 4760 - S 15:38 0:00.01 imap-hibernate: [0 connections] (imap-hibernate) > vmail 77620 0.0 0.0 21516 17256 - I 15:39 0:00.03 imap: [user at domain.com 11.11.11.11] (imap) > > > My build options: > > Install prefix . : /opt/dovecot/2.3.5 > File offsets ... : 64bit > I/O polling .... : kqueue > I/O notifys .... : kqueue > SSL ............ : yes (OpenSSL) > GSSAPI ......... : no > passdbs ........ : static passwd passwd-file pam checkpassword sql > CFLAGS ......... : -std=gnu99 -O2 -pipe -fno-strict-aliasing -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 > : -shadow -bsdauth -sia -ldap -vpopmail > userdbs ........ : static prefetch passwd passwd-file checkpassword sql > : -ldap -vpopmail > SQL drivers .... : mysql > : -pgsql -sqlite -cassandra > Full text search : squat lucene > : -solr > > > Configure command: > > ./configure '--prefix=/opt/dovecot/2.3.5' --without-docs '--without-shadow' '--without-docs' '--without-gssapi' '--without-vpopmail' '--without-ldap' --without-shadow --with-ssl=openssl --with-mysql --with-zlib --with-libwrap --with-lucene --with-stemmer --with-textcat --with-icu --without-cdb --without-lua --disable-silent-rules --build=amd64-portbld-freebsd11.2 'CC=cc' 'CFLAGS=-O2 -pipe -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fno-strict-aliasing' > > My dovecot version: > > # dovecot --version > 2.3.5 (513208660) > > My config: > > service imap-hibernate { > chroot = > client_limit = 0 > drop_priv_before_exec = no > executable = imap-hibernate > extra_groups = $default_internal_group > group = > idle_kill = 0 > privileged_group = > process_limit = 0 > process_min_avail = 0 > protocol = imap > service_count = 0 > type = > unix_listener imap-hibernate { > group = $default_internal_group > mode = 0660 > user = vmail > } > user = vmail > vsz_limit = 18446744073709551615 B > }
Reasonably Related Threads
- imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
- imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
- imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
- imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
- imap-hibernate not working