Bug 467428 - Expired or missing access tokens for account
Summary: Expired or missing access tokens for account
Status: RESOLVED DUPLICATE of bug 391186
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 22.12.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-16 01:35 UTC by Jesus Delgadillo
Modified: 2023-08-02 16:54 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Dolphin displaying the mentioned error. (60.95 KB, image/png)
2023-03-16 01:35 UTC, Jesus Delgadillo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesus Delgadillo 2023-03-16 01:35:54 UTC
Created attachment 157323 [details]
Dolphin displaying the mentioned error.

I recently set 2 google accounts in Dolphin and attempted to access both Drives. Sometimes it does work and I'm able to traverse folders and access files, but for a short amount of time, after it I get an "Expired or missing access tokens for account..." error. After some time without  any interaction, the refresh button is able to access the Drive and load available files and folders, but the issue persists and repeats constantly.
***

STEPS TO REPRODUCE
I tried to obtain a little more insight about the problem so I did the following 
1.  ran 
            kioclient5 exec gdrive:/mygoogleaccount@entity.com 
, after it dolphin opened a new instance
2. I traversed the tree.

Terminal throws the following:
kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/gdrive" not found
"Failed to I/O session data to/from the signon daemon."
kf5.kio.gdrive: GetCredentialsJob failed: "Failed to I/O session data to/from the signon daemon."
"Casting SessionData into subclass failed."
kf5.kio.gdrive: GetCredentialsJob failed: "Casting SessionData into subclass failed."
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf.kio.core: "Expired or missing access tokens for account myaccount1@entity.com"
kf.kio.core: UDSEntry for '.' not found, creating a default one. Please fix the "kio_gdrive" KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf.kio.core: "Expired or missing access tokens for account myaccount1@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf.kio.core: "Expired or missing access tokens for account myaccount1@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount1@entity.com"
org.kde.dolphin: The model is in an inconsistent state.
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.dolphin: m_items.count()    == 2
org.kde.dolphin: m_itemData.count() == 3
org.kde.dolphin: Multiple items found with the URL QUrl("gdrive:/myaccount1@entity.com/Shared Drives")
org.kde.dolphin: index 1 : [KFileItem for QUrl("gdrive:/myaccount1@entity.com/Shared Drives")]
org.kde.dolphin: index 0 : [KFileItem for QUrl("gdrive:/myaccount1@entity.com/Shared Drives")]
kf.kio.core: UDSEntry for '.' not found, creating a default one. Please fix the "kio_gdrive" KIO worker.
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
"Failed to I/O session data to/from the signon daemon."
kf5.kio.gdrive: GetCredentialsJob failed: "Failed to I/O session data to/from the signon daemon."
"Casting SessionData into subclass failed."
kf5.kio.gdrive: GetCredentialsJob failed: "Casting SessionData into subclass failed."
"Failed to I/O session data to/from the signon daemon."
kf5.kio.gdrive: GetCredentialsJob failed: "Failed to I/O session data to/from the signon daemon."
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf.kio.core: "Expired or missing access tokens for account myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
org.kde.kgapi: Unauthorized. Access token has expired or is invalid.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf.kio.core: "Expired or missing access tokens for account myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.
kf5.kio.gdrive: Expired or missing access/refresh token for account "myaccount2@entity.com"
kf.kio.core: error() called twice! Please fix the kio_gdrive KIO worker.

SOFTWARE/OS VERSIONS
Linux: OpenSUSE Tumbleweed 20230311
KDE Plasma Version: KDE Plasma 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Ilgaz Öcal 2023-03-26 16:28:46 UTC
I have the same issue and removed/re-added the account to make sure. I see these entries in the journal when I open the google drive folder.

Operating System: openSUSE Tumbleweed 20230324
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Comment 2 D. Debnath 2023-04-22 08:05:19 UTC
I can confirm this bug, I have the exact same problem.
Comment 3 firewalker 2023-06-02 09:18:39 UTC
Issue still present.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.4-arch1-1 (64-bit)
Graphics Platform: X11
Comment 4 Edward 2023-06-12 07:36:08 UTC
having the same problem here

Platform: EndeavourOS
plasma version: 5.27.5
KDE Frameworks version: 5.106.0
Graphics platform: X11
Comment 5 emin turker 2023-06-15 18:31:36 UTC
Issue still present.

Operating System: EndeavourOS
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.8-zen1-1-zen (64 bit)
Graphics Platform: X11
Comment 6 BKMO 2023-07-12 05:49:09 UTC
I have 2 Gdrive accounts and both are displaying this missing access token error.
Operating System: Arch Linux 
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 7 Nate Graham 2023-08-02 16:54:38 UTC

*** This bug has been marked as a duplicate of bug 391186 ***