Bug 485426 - Google Groupware agent stops syncing after a while
Summary: Google Groupware agent stops syncing after a while
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-12 10:26 UTC by materemias
Modified: 2024-05-21 08:49 UTC (History)
10 users (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 materemias 2024-04-12 10:26:42 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
When I add a Google account to Akonadi it syncs properly, calendar events turn up in KOrganizer and Merkuro calendar as well. Sync can be initiated from Merkuro or from Akonadi Console. After a while if there is a sync it gets stuck at 0% forever. Recreating the agent or reconfiguring it (reauth) solves the issue. My guess is that refreshing the access token is not working. I had the same issue with 6.0.1 as well.

I have tried clearing up akonadi config and starting from scratch, I have tried switching backends, tried stopping and restarting akonadi. I also tried to install latest KDE neon in VirtualBox and set up the same account, it had the same results (6.0.1).

STEPS TO REPRODUCE
1. add a google account 
2. confirm it syncs properly in Akonadi Console, manual resync is also possible with Sync all
3. wait a few hours (6-8) and try to resync, it gets stuck at 0%

OBSERVED RESULT
not Syncing

EXPECTED RESULT
Syncing

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch with Kde 6.0.2
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Kishore Gopalakrishnan 2024-04-15 13:23:34 UTC
I also have this issue, and I get the following output in my system logs (checked using `LANG=C journalctl -b -0 | grep akonadi_google_resource | less`:
```
Apr 15 17:10:21 kishore-thinkpad-e495 akonadi_google_resource[10265]: qt.network.http2: connection error: GOAWAY invalid stream/error code
```
Comment 2 materemias 2024-04-15 16:05:28 UTC
(In reply to Kishore Gopalakrishnan from comment #1)
> I also have this issue, and I get the following output in my system logs
> (checked using `LANG=C journalctl -b -0 | grep akonadi_google_resource |
> less`:
> ```
> Apr 15 17:10:21 kishore-thinkpad-e495 akonadi_google_resource[10265]:
> qt.network.http2: connection error: GOAWAY invalid stream/error code
> ```

I can confirm I got the same errors in log
Comment 3 Torsten Bielen 2024-05-03 11:49:38 UTC
I can confirm it. My log is very similar.

Mai 03 07:19:34 galadriel64 akonadi_google_resource[4097]: org.kde.pim.google: Trying to read password for "user@domain"
Mai 03 07:20:54 galadriel64 akonadi_google_resource[7203]: org.kde.pim.google: Trying to read password for "user@domain"
Mai 03 07:24:54 galadriel64 akonadi_google_resource[7203]: qt.network.http2: connection error: GOAWAY invalid stream/error code
Mai 03 07:24:54 galadriel64 akonadi_google_resource[7203]: qt.network.http2: connection error: GOAWAY invalid stream/error code
Mai 03 07:24:54 galadriel64 akonadi_google_resource[7203]: qt.network.http2: connection error: GOAWAY invalid stream/error code
Mai 03 08:06:22 galadriel64 akonadi_google_resource[7203]: org.kde.pim.google: Trying to read password for "user@domain"
Mai 03 13:43:11 galadriel64 akonadi_google_resource[7203]: qt.network.http2: connection error: GOAWAY invalid stream/error code
Mai 03 13:43:11 galadriel64 akonadi_google_resource[7203]: qt.network.http2: connection error: GOAWAY invalid stream/error code
Mai 03 13:43:11 galadriel64 akonadi_google_resource[7203]: qt.network.http2: connection error: GOAWAY invalid stream/error code
Comment 4 kaeslaek 2024-05-21 08:49:22 UTC
Same error here:
```
May 21 08:59:55 fedora akonadi_google_resource[3625]: org.kde.pim.google: Trying to read password for "user@name.com"
May 21 09:03:55 fedora akonadi_google_resource[3625]: qt.network.http2: connection error: GOAWAY invalid stream/error code
May 21 09:03:55 fedora akonadi_google_resource[3625]: qt.network.http2: connection error: GOAWAY invalid stream/error code
May 21 09:03:55 fedora akonadi_google_resource[3625]: qt.network.http2: connection error: GOAWAY invalid stream/error code
```

I can reconnect it again and it will work for a bit but then stops again.

Linux fedora 6.8.9-300.fc40.x86_64
Qt: 5.15.13
KDE Frameworks: 5.115.0
kf5-config: 1.0
plasmashell 6.0.4