Bug 492489

Summary: Akonadi EWS agent cannot sync in background
Product: [Frameworks and Libraries] Akonadi Reporter: Consus <consus>
Component: EWS ResourceAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: carl, krissn, mullein
Priority: NOR    
Version First Reported In: 6.2.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Consus 2024-09-01 11:41:50 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

I have Arch Linux with plasma-meta, merkuro and kmail packages installed. Akonadi is set up to poll calendar/mail from my work's Exchange 2019 server every minute. For some reason it does not sync in background. Manual sync (merkuro/kmail) works.

STEPS TO REPRODUCE

1. Create EWS account in kmail (authentication username/password, default subscriptions)
2. Set up polling every minute
3. Send yourself a mail

OBSERVED RESULT

Mail will be synced in a minute.

EXPECTED RESULT

It's not.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 12th Gen Intel® Core™ i7-1260P
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics

ADDITIONAL INFORMATION

akonadi-console show this warning every minute:

> Streaming request timeout - restarting
Comment 1 Aaron 2024-09-30 13:51:31 UTC
I think your "Observed" and "Expected" results may be backwards. 

However, I'm seeing the same behavior with version 6.1.2 on Gentoo. Also, I also can see the "org.kde.pim.ews: Streaming request timeout - restarting" messages recurring in the log at the set polling interval. Manual mail checks work however. For what it's worth, I also have an IMAP account configured that seems to poll without issue. Only automatic polling EWS is broken.