Bug 424245 - Agent says "Connection established" without having any connection
Summary: Agent says "Connection established" without having any connection
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 5.14.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-15 17:35 UTC by Thiago Macieira
Modified: 2020-11-29 19:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago Macieira 2020-07-15 17:35:20 UTC
SUMMARY
In Akonadiconsole, the IMAP agent may display "Connection Established" but have no active IP socket open.

STEPS TO REPRODUCE
1. Disable Qt bearer plugins: chmod 0 /usr/lib64/qt5/plugins/bearer
2. Restart IMAP agent

OBSERVED RESULT
"Connection Established" is shown, never changes, but there's no outgoing socket open.

EXPECTED RESULT
Either there's an active socket connection or the state is something different.

SOFTWARE/OS VERSIONS
openSUSE Tumbleweed 20200701
Qt: 5.15.0
KDE Frameworks: 5.71.0
kf5-config: 1.0

ADDITIONAL INFORMATION

$ lsof -n -p `pgrep -f akonadi_imap_resource_5` | grep -v 'mem'
COMMAND      PID     USER   FD      TYPE             DEVICE  SIZE/OFF     NODE NAME
akonadi_i 924121 tjmaciei  cwd       DIR              254,8      4096  1441793 /home/tjmaciei
akonadi_i 924121 tjmaciei  rtd       DIR               0,46       174      256 /
akonadi_i 924121 tjmaciei  txt       REG               0,46    725896 14384221 /usr/bin/akonadi_imap_resource
akonadi_i 924121 tjmaciei  DEL       REG               0,24              30475 /run/nscd/dbs0pP3p
akonadi_i 924121 tjmaciei    0r     FIFO               0,12       0t0 11057102 pipe
akonadi_i 924121 tjmaciei    1w      CHR                1,3       0t0     1028 /dev/null
akonadi_i 924121 tjmaciei    2w      REG              254,8   3956351  2398618 /home/tjmaciei/.local/share/sddm/xorg-session.log
akonadi_i 924121 tjmaciei    3u     unix 0x0000000000000000       0t0 11057519 type=STREAM
akonadi_i 924121 tjmaciei    4u  a_inode               0,13         0    13421 [eventfd]
akonadi_i 924121 tjmaciei    5u  a_inode               0,13         0    13421 [eventfd]
akonadi_i 924121 tjmaciei    6u      CHR              226,0       0t0    14125 /dev/dri/card0
akonadi_i 924121 tjmaciei    7u      CHR              226,0       0t0    14125 /dev/dri/card0
akonadi_i 924121 tjmaciei    8u  a_inode               0,13         0    13421 [eventfd]
akonadi_i 924121 tjmaciei    9u     unix 0x0000000000000000       0t0 11052964 type=STREAM
akonadi_i 924121 tjmaciei   10u  a_inode               0,13         0    13421 [eventfd]
akonadi_i 924121 tjmaciei   11u     unix 0x0000000000000000       0t0 11057108 type=STREAM
akonadi_i 924121 tjmaciei   12u     unix 0x0000000000000000       0t0 11054925 type=STREAM
akonadi_i 924121 tjmaciei   13u     unix 0x0000000000000000       0t0 11052967 type=STREAM
akonadi_i 924121 tjmaciei   14u  a_inode               0,13         0    13421 [eventfd]

As you can see, there's no "inet" file descriptor.
Comment 1 Arek Guzinski 2020-11-29 19:58:17 UTC
Same problem here with 5.15.3 on KDE neon (20.04 based)

in akonadiconsole:
Akonadi Server Self-Test shows no errors.
IMAP agent:
Status: Offline, Idle
Status Message: Connection established

lsof -n -p `pgrep -f akonadi_imap_resource_1` | grep -v 'mem'
shows no IP file descriptors (this is on my main computer - it does show them on my laptop, where akonadi is working fine)

But: bearer plugins are enabled (or am i missing one?)
# ls -la /usr/lib/x86_64-linux-gnu/qt5/plugins/bearer
total 612
drwxr-xr-x  2 root root   4096 Nov 20 10:29 .
drwxr-xr-x 73 root root  53248 Nov 28 23:14 ..
-rw-r--r--  1 root root 233536 Nov 10 18:12 libqconnmanbearer.so
-rw-r--r--  1 root root  81224 Nov 10 18:12 libqgenericbearer.so
-rw-r--r--  1 root root 254096 Nov 10 18:12 libqnmbearer.so

There are no helpful messeges of any kind - clicking on "Check Mail" in kmail does absolutely nothing.

I also tried resetting akonadi by following the steps at https://wiki.ubuntuusers.de/Akonadi/#Akonadi-zuruecksetzen (in german) and reconfiguring the IMAP agent. This did *not* fix the problem...

So currently I can't check my mails on my main computer. Help!