Alex
2018-Oct-24 07:56 UTC
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
Nothing, the same error Oct 24 10:11:16 server dovecot: imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: kevent(-1) for notify remove failed: Bad file descriptor Oct 24 10:11:16 server dovecot: imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: close(-1) for notify remove failed: Bad file descriptor Oct 24 10:11:16 server dovecot: imap-hibernate: Error: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 Oct 24 10:11:16 server dovecot: imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: /var/run/dovecot/imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 Oct 24 10:11:16 server dovecot: imap: Error: mail_debug = yes verbose_proctitle=yes How I can view more debug information for imap-hibernate ? Alex ????? 2018-10-23 11:01:> Yes, but my configuration is FreeBSD 10.4 and ZFS > I\\\'ll try to reconfigure. > > > Thanks > > > Aki Tuomi ????? 2018-10-23 10:48: >> I tested with FreeBSD 11 and it worked just fine... did you follow >> https://wiki.dovecot.org/IMAPServer/Hibernation this to set it up? >> >> Aki >> >>> On 23 October 2018 at 10:15 Alex <alex at jili.ga> wrote: >>> >>> >>> Aki, is it configuration error or dovecot bug ? >>> Can I use imap-hibernate on FreeBSD ? >>> >>> >>> >>> Alex ????? 2018-10-19 10:31: >>> > Yes, >>> > >>> > After I changed mode and user/group >>> > >>> > Oct 18 19:17:50 server dovecot: >>> > imap(email at example.com)<57613><VVXuZ4N4avOASO/q>: Error: kevent(-1) >>> > for notify remove fail >>> > ed: Bad file descriptor >>> > Oct 18 19:17:50 server dovecot: >>> > imap(email at example.com)<57613><VVXuZ4N4avOASO/q>: Error: close(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 18 19:17:50 server dovecot: >>> > imap(email at example.com)<57613><VVXuZ4N4avOASO/q>: Error: >>> > net_connect_unix(/var/run/dovecot/imap-hibernate) failed: Permission >>> > denied >>> > >>> > >>> > >>> > All time this error: >>> > >>> > Oct 18 19:28:48 server dovecot: >>> > imap(email at example.com)<53735><ZbKQR4N4DvOASO/q>: Error: kevent(-1) >>> > for notify remove failed: Bad file descriptor >>> > Oct 18 19:28:48 server dovecot: >>> > imap(email at example.com)<53735><ZbKQR4N4DvOASO/q>: Error: close(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 18 19:28:48 server dovecot: >>> > imap(email at example.com)<53735><ZbKQR4N4DvOASO/q>: Error: >>> > /var/run/dovecot/imap-hibernate returned failure: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > Oct 18 19:28:48 server dovecot: imap: Error: >>> > Oct 18 19:28:48 server dovecot: imap-hibernate: Error: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > -- >>> > Oct 18 20:37:11 server dovecot: >>> > imap(email at example.com)<80384><Af9CPIR4Vi0iwVKY>: Error: kevent(-1) >>> > for notify remove failed: Bad file descriptor >>> > Oct 18 20:37:11 server dovecot: >>> > imap(email at example.com)<80384><Af9CPIR4Vi0iwVKY>: Error: close(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 18 20:37:11 server dovecot: imap-hibernate: Error: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > Oct 18 20:37:11 server dovecot: >>> > imap(email at example.com)<80384><Af9CPIR4Vi0iwVKY>: Error: >>> > /var/run/dovecot/imap-hibernate returned failure: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > -- >>> > Oct 18 21:42:19 server dovecot: >>> > imap(email at example.com)<4731><xGsiJYV4XOaASO/q>: Error: kevent(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 18 21:42:19 server dovecot: >>> > imap(email at example.com)<4731><xGsiJYV4XOaASO/q>: Error: close(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 18 21:42:19 server dovecot: imap-hibernate: Error: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > Oct 18 21:42:19 server dovecot: >>> > imap(email at example.com)<4731><xGsiJYV4XOaASO/q>: Error: >>> > /var/run/dovecot/imap-hibernate returned failure: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > -- >>> > Oct 19 10:21:47 server dovecot: >>> > imap(email at example.com)<78094><gLQuwY94b9KASO/q>: Error: kevent(-1) >>> > for notify remove failed: Bad file descriptor >>> > Oct 19 10:21:47 server dovecot: >>> > imap(email at example.com)<78094><gLQuwY94b9KASO/q>: Error: close(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 19 10:21:47 server dovecot: imap-hibernate: Error: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > Oct 19 10:21:47 server dovecot: >>> > imap(email at example.com)<78094><gLQuwY94b9KASO/q>: Error: >>> > /var/run/dovecot/imap-hibernate returned failure: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > -- >>> > Oct 19 10:22:47 server dovecot: >>> > imap(email at example.com)<78208><bsnCxI94ddKASO/q>: Error: kevent(-1) >>> > for notify remove failed: Bad file descriptor >>> > Oct 19 10:22:47 server dovecot: >>> > imap(email at example.com)<78208><bsnCxI94ddKASO/q>: Error: close(-1) for >>> > notify remove failed: Bad file descriptor >>> > Oct 19 10:22:47 server dovecot: imap-hibernate: Error: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > Oct 19 10:22:47 server dovecot: >>> > imap(email at example.com)<78208><bsnCxI94ddKASO/q>: Error: >>> > /var/run/dovecot/imap-hibernate returned failure: Failed to parse >>> > client input: Invalid peer_dev_minor value: 18446744073709486335 >>> > >>> > >>> > >>> > >>> > >>> > Aki Tuomi ????? 2018-10-19 09:50: >>> >> Does this happen every time? -1 is really not a valid file descriptor, >>> >> which is why these errors occur. >>> >> >>> >> Aki >>> >> >>> >> On 19.10.2018 5.23, Alex wrote: >>> >>> Hello! >>> >>> >>> >>> I tried to use imap-hibernate. >>> >>> >>> >>> But errors in maillog: >>> >>> >>> >>> Oct 19 05:14:24 server dovecot: >>> >>> imap(email at example.com)<67125><Lu7ndYt4n8aASO/q>: Error: kevent(-1) >>> >>> for notify remove failed: Bad file descriptor >>> >>> Oct 19 05:14:24 server dovecot: >>> >>> imap(email at example.com)<67125><Lu7ndYt4n8aASO/q>: Error: close(-1) >>> >>> for >>> >>> notify remove failed: Bad file descriptor >>> >>> Oct 19 05:14:24 server dovecot: imap-hibernate: Error: Failed to >>> >>> parse >>> >>> client input: Invalid peer_dev_minor value: 18446744073709486335 >>> >>> Oct 19 05:14:24 server dovecot: >>> >>> imap(email at example.com)<67125><Lu7ndYt4n8aASO/q>: Error: >>> >>> /var/run/dovecot/imap-hibernate returned failure: Failed to parse >>> >>> client input: Invalid peer_dev_minor value: 18446744073709486335 >>> >>> Oct 19 05:14:24 server dovecot: imap: Error: >>> >>> >>> >>> >>> >>> dovecot-2.3.3, FreeBSD 10.4 >>> >>> >>> >>> dovenull 38990?? 0,0? 0,0?? 43748? 16308? -? S???? 3:54?????????? >>> >>> 0:00,08 imap-login:? (imap-login) >>> >>> dovenull 38998?? 0,0? 0,1?? 47844? 19536? -? S???? 3:54?????????? >>> >>> 0:00,18 imap-login: [34.193.82.152 TLS proxy] (imap-login) >>> >>> dovenull 38999?? 0,0? 0,1?? 47844? 17180? -? S???? 3:54?????????? >>> >>> 0:00,19 imap-login:? (imap-login) >>> >>> dovenull 39000?? 0,0? 0,0?? 35556?? 9584? -? S???? 3:54?????????? >>> >>> 0:00,03 dovecot/imap-login >>> >>> dovenull 39001?? 0,0? 0,0?? 43748? 16320? -? S???? 3:54?????????? >>> >>> 0:00,12 imap-login:? (imap-login) >>> >>> dovenull 39002?? 0,0? 0,0?? 43748? 16320? -? S???? 3:54?????????? >>> >>> 0:00,13 imap-login:? (imap-login) >>> >>> dovenull 39003?? 0,0? 0,0?? 43748? 16328? -? S???? 3:54?????????? >>> >>> 0:00,16 imap-login:? (imap-login) >>> >>> dovenull 39004?? 0,0? 0,1?? 47844? 17948? -? S???? 3:54?????????? >>> >>> 0:00,17 imap-login: [12.34.56.78 TLS proxy] (imap-login) >>> >>> vmail??? 39042?? 0,0? 0,0?? 15936?? 3040? -? I???? 3:54?????????? >>> >>> 0:00,01 imap-hibernate: [0 connections] (imap-hibernate) >>> >>> vmail??? 39076?? 0,0? 0,0?? 78900?? 8984? -? S???? 3:54?????????? >>> >>> 0:00,05 imap: [email at example.com 12.34.56.78 IDLE] (imap) >>> >>> vmail??? 44114?? 0,0? 0,0?? 78900?? 8936? -? I???? 4:06?????????? >>> >>> 0:00,05 imap: [email at example.com 34.193.82.152 IDLE] (imap) >>> >>> >>> >>> srw-rw----?? 1 root???? dovecot??? 0 19 ??? 03:54 imap-hibernate >>> >>> srw-------?? 1 root???? dovecot??? 0 19 ??? 03:54 imap-master >>> >>> srw-------?? 1 root???? wheel????? 0 19 ??? 03:54 imap-postlogin >>> >>> srw-rw-rw-?? 1 root???? wheel????? 0 19 ??? 03:54 imap-urlauth >>> >>> srw-------?? 1 dovecot? wheel????? 0 19 ??? 03:54 imap-urlauth-worker >>> >>> >>> >>> imap_hibernate_timeout = 5 secs >>> >>> >>> >>> service imap-hibernate { >>> >>> ? extra_groups = $default_internal_group >>> >>> ? unix_listener imap-hibernate { >>> >>> ??? group = dovecot >>> >>> ? } >>> >>> ? user = vmail >>> >>> } >>> >>> >>> >>> service imap { >>> >>> ? extra_groups = $default_internal_group >>> >>> ? unix_listener imap-master { >>> >>> ??? group = $default_internal_group >>> >>> ? } >>> >>> } >>> >>> >>> >>> I tried to set user/group vmail, set mode = 0666, but the same >>> >>> errors. >>> >>> >>> >>> >>> >>> Can you help me with hibernate confiration ? >>> >>> >>> >>> >>> >>> >>> >>> Best regards, >>> >>> Alex >>> >>> >>> >>> >>> >>> >>> >>>
Alex
2018-Oct-24 08:18 UTC
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{
2147483.000000000 }) = 1 (0x1)
accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb)
getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\"
},0x7fffffffe7fc) = 0 (0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe7b0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-g\\^C\\0\\0\",12) = 12
(0xc)
fstat(11,{ mode=srw-rw-rw- ,inode=13188,size=27,blksize=8192 }) = 0
(0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
kevent(10,{ 11,EVFILT_READ,EV_ADD,0x0,0x0,0x4207a1a0 },1,0x0,0,0x0) = 0
(0x0)
write(11,\"VERSION\\timap-hibernate\\t1\\t0\\n\",27) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x2ab,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x290,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 656 (0x290)
write(2,\"\\^A\\^D3446 Failed to parse clien\"...,88) = 88 (0x58)
close(12) = 0 (0x0)
write(11,\"-Failed to parse client input: I\"...,82) = 82 (0x52)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe8d0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
kevent(10,{ 11,EVFILT_READ,EV_DELETE,0x0,0x0,0x0 },1,0x0,0,0x0) = 0
(0x0)
close(11) = 0 (0x0)
madvise(0x4207e000,0x2000,0x5) = 0 (0x0)
madvise(0x42094000,0x3000,0x5) = 0 (0x0)
madvise(0x42098000,0x3000,0x5) = 0 (0x0)
madvise(0x420a0000,0x3000,0x5) = 0 (0x0)
madvise(0x420a6000,0x5000,0x5) = 0 (0x0)
madvise(0x420b2000,0x1000,0x5) = 0 (0x0)
madvise(0x42079000,0x1000,0x5) = 0 (0x0)
madvise(0x42083000,0x1000,0x5) = 0 (0x0)
kevent(10,0x0,0,{ },4,{ 0.999948000 }) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe900,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-h\\^C\\0\\0\",12) = 12
(0xc)
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{
2147483.000000000 }) = 1 (0x1)
accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb)
getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\"
},0x7fffffffe7fc) = 0 (0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe7b0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-g\\^C\\0\\0\",12) = 12
(0xc)
fstat(11,{ mode=srw-rw-rw- ,inode=13207,size=27,blksize=8192 }) = 0
(0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
kevent(10,{ 11,EVFILT_READ,EV_ADD,0x0,0x0,0x4207a1a0 },1,0x0,0,0x0) = 0
(0x0)
write(11,\"VERSION\\timap-hibernate\\t1\\t0\\n\",27) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x2ab,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x290,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 656 (0x290)
write(2,\"\\^A\\^D3446 Failed to parse clien\"...,88) = 88 (0x58)
close(12) = 0 (0x0)
write(11,\"-Failed to parse client input: I\"...,82) = 82 (0x52)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe8d0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
kevent(10,{ 11,EVFILT_READ,EV_DELETE,0x0,0x0,0x0 },1,0x0,0,0x0) = 0
(0x0)
close(11) = 0 (0x0)
kevent(10,0x0,0,{ },4,{ 0.999813000 }) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe900,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-h\\^C\\0\\0\",12) = 12
(0xc)
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{
2147483.000000000 }) = 1 (0x1)
accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb)
getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\"
},0x7fffffffe7fc) = 0 (0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe7b0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-g\\^C\\0\\0\",12) = 12
(0xc)
fstat(11,{ mode=srw-rw-rw- ,inode=13223,size=27,blksize=8192 }) = 0
(0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
kevent(10,{ 11,EVFILT_READ,EV_ADD,0x0,0x0,0x4207a1a0 },1,0x0,0,0x0) = 0
(0x0)
write(11,\"VERSION\\timap-hibernate\\t1\\t0\\n\",27) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x29e,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x283,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 643 (0x283)
write(2,\"\\^A\\^D3446 Failed to parse clien\"...,88) = 88 (0x58)
close(12) = 0 (0x0)
write(11,\"-Failed to parse client input: I\"...,82) = 82 (0x52)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe8d0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
kevent(10,{ 11,EVFILT_READ,EV_DELETE,0x0,0x0,0x0 },1,0x0,0,0x0) = 0
(0x0)
close(11) = 0 (0x0)
kevent(10,0x0,0,{ },4,{ 0.999458000 }) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe900,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-h\\^C\\0\\0\",12) = 12
(0xc)
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{
2147483.000000000 }) = 1 (0x1)
accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb)
getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\"
},0x7fffffffe7fc) = 0 (0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe7b0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-g\\^C\\0\\0\",12) = 12
(0xc)
fstat(11,{ mode=srw-rw-rw- ,inode=13226,size=27,blksize=8192 }) = 0
(0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
kevent(10,{ 11,EVFILT_READ,EV_ADD,0x0,0x0,0x4207a1a0 },1,0x0,0,0x0) = 0
(0x0)
write(11,\"VERSION\\timap-hibernate\\t1\\t0\\n\",27) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x2b0,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x295,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 661 (0x295)
write(2,\"\\^A\\^D3446 Failed to parse clien\"...,88) = 88 (0x58)
close(12) = 0 (0x0)
write(11,\"-Failed to parse client input: I\"...,82) = 82 (0x52)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe8d0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
kevent(10,{ 11,EVFILT_READ,EV_DELETE,0x0,0x0,0x0 },1,0x0,0,0x0) = 0
(0x0)
close(11) = 0 (0x0)
kevent(10,0x0,0,{ },4,{ 0.999726000 }) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe900,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-h\\^C\\0\\0\",12) = 12
(0xc)
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{
2147483.000000000 }) = 1 (0x1)
accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb)
getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\"
},0x7fffffffe7fc) = 0 (0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
fcntl(11,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe7b0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-g\\^C\\0\\0\",12) = 12
(0xc)
fstat(11,{ mode=srw-rw-rw- ,inode=13247,size=27,blksize=8192 }) = 0
(0x0)
fcntl(11,F_GETFL,) = 6 (0x6)
kevent(10,{ 11,EVFILT_READ,EV_ADD,0x0,0x0,0x4207a1a0 },1,0x0,0,0x0) = 0
(0x0)
write(11,\"VERSION\\timap-hibernate\\t1\\t0\\n\",27) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x2ab,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 27 (0x1b)
kevent(10,0x0,0,{ 11,EVFILT_READ,0x0,0x0,0x290,0x4207a1a0 },4,{
2147483.000000000 }) = 1 (0x1)
recvmsg(0xb,0x7fffffffe880,0x0) = 656 (0x290)
write(2,\"\\^A\\^D3446 Failed to parse clien\"...,88) = 88 (0x58)
close(12) = 0 (0x0)
write(11,\"-Failed to parse client input: I\"...,82) = 82 (0x52)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe8d0,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
kevent(10,{ 11,EVFILT_READ,EV_DELETE,0x0,0x0,0x0 },1,0x0,0,0x0) = 0
(0x0)
close(11) = 0 (0x0)
madvise(0x4207e000,0x2000,0x5) = 0 (0x0)
madvise(0x42094000,0x3000,0x5) = 0 (0x0)
madvise(0x42098000,0x3000,0x5) = 0 (0x0)
madvise(0x420a0000,0x3000,0x5) = 0 (0x0)
madvise(0x420a6000,0x5000,0x5) = 0 (0x0)
madvise(0x420b2000,0x1000,0x5) = 0 (0x0)
madvise(0x42079000,0x1000,0x5) = 0 (0x0)
kevent(10,0x0,0,{ },4,{ 0.999169000 }) = 0 (0x0)
getpid() = 3446 (0xd76)
__sysctl(0x7fffffffe900,0x4,0x0,0x0,0x42034000,0x20) = 0 (0x0)
write(5,\"v\\r\\0\\0004\\0\\0\\0\\M-h\\^C\\0\\0\",12) = 12
(0xc)
Alex ????? 2018-10-24 10:56:> Nothing, the same error
>
> Oct 24 10:11:16 server dovecot:
> imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error:
kevent(-1)
> for notify remove failed: Bad file descriptor
> Oct 24 10:11:16 server dovecot:
> imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error:
close(-1) for
> notify remove failed: Bad file descriptor
> Oct 24 10:11:16 server dovecot: imap-hibernate: Error: Failed to parse
> client input: Invalid peer_dev_minor value: 18446744073709486335
> Oct 24 10:11:16 server dovecot:
> imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error:
> /var/run/dovecot/imap-hibernate returned failure: Failed to parse
> client input: Invalid peer_dev_minor value: 18446744073709486335
> Oct 24 10:11:16 server dovecot: imap: Error:
>
>
> mail_debug = yes
> verbose_proctitle=yes
>
>
> How I can view more debug information for imap-hibernate ?
>
>
>
> Alex ????? 2018-10-23 11:01:
>> Yes, but my configuration is FreeBSD 10.4 and ZFS
>> I\\\\\\\'ll try to reconfigure.
>>
>>
>> Thanks
>>
>>
>> Aki Tuomi ????? 2018-10-23 10:48:
>>> I tested with FreeBSD 11 and it worked just fine... did you follow
>>> https://wiki.dovecot.org/IMAPServer/Hibernation this to set it up?
>>>
>>> Aki
>>>
>>>> On 23 October 2018 at 10:15 Alex <alex at jili.ga> wrote:
>>>>
>>>>
>>>> Aki, is it configuration error or dovecot bug ?
>>>> Can I use imap-hibernate on FreeBSD ?
>>>>
>>>>
>>>>
>>>> Alex ????? 2018-10-19 10:31:
>>>> > Yes,
>>>> >
>>>> > After I changed mode and user/group
>>>> >
>>>> > Oct 18 19:17:50 server dovecot:
>>>> > imap(email at
example.com)<57613><VVXuZ4N4avOASO/q>: Error: kevent(-1)
>>>> > for notify remove fail
>>>> > ed: Bad file descriptor
>>>> > Oct 18 19:17:50 server dovecot:
>>>> > imap(email at
example.com)<57613><VVXuZ4N4avOASO/q>: Error: close(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 18 19:17:50 server dovecot:
>>>> > imap(email at
example.com)<57613><VVXuZ4N4avOASO/q>: Error:
>>>> > net_connect_unix(/var/run/dovecot/imap-hibernate) failed:
Permission
>>>> > denied
>>>> >
>>>> >
>>>> >
>>>> > All time this error:
>>>> >
>>>> > Oct 18 19:28:48 server dovecot:
>>>> > imap(email at
example.com)<53735><ZbKQR4N4DvOASO/q>: Error: kevent(-1)
>>>> > for notify remove failed: Bad file descriptor
>>>> > Oct 18 19:28:48 server dovecot:
>>>> > imap(email at
example.com)<53735><ZbKQR4N4DvOASO/q>: Error: close(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 18 19:28:48 server dovecot:
>>>> > imap(email at
example.com)<53735><ZbKQR4N4DvOASO/q>: Error:
>>>> > /var/run/dovecot/imap-hibernate returned failure: Failed
to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > Oct 18 19:28:48 server dovecot: imap: Error:
>>>> > Oct 18 19:28:48 server dovecot: imap-hibernate: Error:
Failed to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > --
>>>> > Oct 18 20:37:11 server dovecot:
>>>> > imap(email at
example.com)<80384><Af9CPIR4Vi0iwVKY>: Error: kevent(-1)
>>>> > for notify remove failed: Bad file descriptor
>>>> > Oct 18 20:37:11 server dovecot:
>>>> > imap(email at
example.com)<80384><Af9CPIR4Vi0iwVKY>: Error: close(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 18 20:37:11 server dovecot: imap-hibernate: Error:
Failed to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > Oct 18 20:37:11 server dovecot:
>>>> > imap(email at
example.com)<80384><Af9CPIR4Vi0iwVKY>: Error:
>>>> > /var/run/dovecot/imap-hibernate returned failure: Failed
to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > --
>>>> > Oct 18 21:42:19 server dovecot:
>>>> > imap(email at
example.com)<4731><xGsiJYV4XOaASO/q>: Error: kevent(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 18 21:42:19 server dovecot:
>>>> > imap(email at
example.com)<4731><xGsiJYV4XOaASO/q>: Error: close(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 18 21:42:19 server dovecot: imap-hibernate: Error:
Failed to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > Oct 18 21:42:19 server dovecot:
>>>> > imap(email at
example.com)<4731><xGsiJYV4XOaASO/q>: Error:
>>>> > /var/run/dovecot/imap-hibernate returned failure: Failed
to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > --
>>>> > Oct 19 10:21:47 server dovecot:
>>>> > imap(email at
example.com)<78094><gLQuwY94b9KASO/q>: Error: kevent(-1)
>>>> > for notify remove failed: Bad file descriptor
>>>> > Oct 19 10:21:47 server dovecot:
>>>> > imap(email at
example.com)<78094><gLQuwY94b9KASO/q>: Error: close(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 19 10:21:47 server dovecot: imap-hibernate: Error:
Failed to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > Oct 19 10:21:47 server dovecot:
>>>> > imap(email at
example.com)<78094><gLQuwY94b9KASO/q>: Error:
>>>> > /var/run/dovecot/imap-hibernate returned failure: Failed
to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > --
>>>> > Oct 19 10:22:47 server dovecot:
>>>> > imap(email at
example.com)<78208><bsnCxI94ddKASO/q>: Error: kevent(-1)
>>>> > for notify remove failed: Bad file descriptor
>>>> > Oct 19 10:22:47 server dovecot:
>>>> > imap(email at
example.com)<78208><bsnCxI94ddKASO/q>: Error: close(-1) for
>>>> > notify remove failed: Bad file descriptor
>>>> > Oct 19 10:22:47 server dovecot: imap-hibernate: Error:
Failed to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> > Oct 19 10:22:47 server dovecot:
>>>> > imap(email at
example.com)<78208><bsnCxI94ddKASO/q>: Error:
>>>> > /var/run/dovecot/imap-hibernate returned failure: Failed
to parse
>>>> > client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > Aki Tuomi ????? 2018-10-19 09:50:
>>>> >> Does this happen every time? -1 is really not a valid
file descriptor,
>>>> >> which is why these errors occur.
>>>> >>
>>>> >> Aki
>>>> >>
>>>> >> On 19.10.2018 5.23, Alex wrote:
>>>> >>> Hello!
>>>> >>>
>>>> >>> I tried to use imap-hibernate.
>>>> >>>
>>>> >>> But errors in maillog:
>>>> >>>
>>>> >>> Oct 19 05:14:24 server dovecot:
>>>> >>> imap(email at
example.com)<67125><Lu7ndYt4n8aASO/q>: Error: kevent(-1)
>>>> >>> for notify remove failed: Bad file descriptor
>>>> >>> Oct 19 05:14:24 server dovecot:
>>>> >>> imap(email at
example.com)<67125><Lu7ndYt4n8aASO/q>: Error: close(-1)
>>>> >>> for
>>>> >>> notify remove failed: Bad file descriptor
>>>> >>> Oct 19 05:14:24 server dovecot: imap-hibernate:
Error: Failed to
>>>> >>> parse
>>>> >>> client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> >>> Oct 19 05:14:24 server dovecot:
>>>> >>> imap(email at
example.com)<67125><Lu7ndYt4n8aASO/q>: Error:
>>>> >>> /var/run/dovecot/imap-hibernate returned failure:
Failed to parse
>>>> >>> client input: Invalid peer_dev_minor value:
18446744073709486335
>>>> >>> Oct 19 05:14:24 server dovecot: imap: Error:
>>>> >>>
>>>> >>>
>>>> >>> dovecot-2.3.3, FreeBSD 10.4
>>>> >>>
>>>> >>> dovenull 38990?? 0,0? 0,0?? 43748? 16308? -? S????
3:54??????????
>>>> >>> 0:00,08 imap-login:? (imap-login)
>>>> >>> dovenull 38998?? 0,0? 0,1?? 47844? 19536? -? S????
3:54??????????
>>>> >>> 0:00,18 imap-login: [34.193.82.152 TLS proxy]
(imap-login)
>>>> >>> dovenull 38999?? 0,0? 0,1?? 47844? 17180? -? S????
3:54??????????
>>>> >>> 0:00,19 imap-login:? (imap-login)
>>>> >>> dovenull 39000?? 0,0? 0,0?? 35556?? 9584? -? S????
3:54??????????
>>>> >>> 0:00,03 dovecot/imap-login
>>>> >>> dovenull 39001?? 0,0? 0,0?? 43748? 16320? -? S????
3:54??????????
>>>> >>> 0:00,12 imap-login:? (imap-login)
>>>> >>> dovenull 39002?? 0,0? 0,0?? 43748? 16320? -? S????
3:54??????????
>>>> >>> 0:00,13 imap-login:? (imap-login)
>>>> >>> dovenull 39003?? 0,0? 0,0?? 43748? 16328? -? S????
3:54??????????
>>>> >>> 0:00,16 imap-login:? (imap-login)
>>>> >>> dovenull 39004?? 0,0? 0,1?? 47844? 17948? -? S????
3:54??????????
>>>> >>> 0:00,17 imap-login: [12.34.56.78 TLS proxy]
(imap-login)
>>>> >>> vmail??? 39042?? 0,0? 0,0?? 15936?? 3040? -? I????
3:54??????????
>>>> >>> 0:00,01 imap-hibernate: [0 connections]
(imap-hibernate)
>>>> >>> vmail??? 39076?? 0,0? 0,0?? 78900?? 8984? -? S????
3:54??????????
>>>> >>> 0:00,05 imap: [email at example.com 12.34.56.78
IDLE] (imap)
>>>> >>> vmail??? 44114?? 0,0? 0,0?? 78900?? 8936? -? I????
4:06??????????
>>>> >>> 0:00,05 imap: [email at example.com 34.193.82.152
IDLE] (imap)
>>>> >>>
>>>> >>> srw-rw----?? 1 root???? dovecot??? 0 19 ??? 03:54
imap-hibernate
>>>> >>> srw-------?? 1 root???? dovecot??? 0 19 ??? 03:54
imap-master
>>>> >>> srw-------?? 1 root???? wheel????? 0 19 ??? 03:54
imap-postlogin
>>>> >>> srw-rw-rw-?? 1 root???? wheel????? 0 19 ??? 03:54
imap-urlauth
>>>> >>> srw-------?? 1 dovecot? wheel????? 0 19 ??? 03:54
imap-urlauth-worker
>>>> >>>
>>>> >>> imap_hibernate_timeout = 5 secs
>>>> >>>
>>>> >>> service imap-hibernate {
>>>> >>> ? extra_groups = $default_internal_group
>>>> >>> ? unix_listener imap-hibernate {
>>>> >>> ??? group = dovecot
>>>> >>> ? }
>>>> >>> ? user = vmail
>>>> >>> }
>>>> >>>
>>>> >>> service imap {
>>>> >>> ? extra_groups = $default_internal_group
>>>> >>> ? unix_listener imap-master {
>>>> >>> ??? group = $default_internal_group
>>>> >>> ? }
>>>> >>> }
>>>> >>>
>>>> >>> I tried to set user/group vmail, set mode = 0666,
but the same
>>>> >>> errors.
>>>> >>>
>>>> >>>
>>>> >>> Can you help me with hibernate confiration ?
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> Best regards,
>>>> >>> Alex
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>>
Maybe Matching 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 returned failure: Failed to parse client input: Invalid peer_dev_minor value