GOA Onedrive Invalid mount spec

Hi,

I’m trying to mount my Onedrive account in Nautilus but get a failure when selecting or right clicking and hiting mount: “Invalid mount spec“. I’ve been looking around however the only issue thread I can find that seems relevant is a Fedora article saying to downgrade goa. Is there a location for log files related to goa or config files / a mount point I can look at to troubleshoot?

Ubuntu 25.04

GOA 3.54.1-1

Online account otherwise working as expected (Thunderbird picks up mail with no additional auth)

Edit:
tldr/steps to fix:

  1. Ensure the online account is labelled the email address on the account, change if not
  2. Toggle files off and then on again to recreate the entry in Nautilus
  3. Restart gvfsd or reboot

Hi,

This was previously reported, and unfortunately, we can not set custom names for Microsoft 365 accounts, since it is used by Gvfs to build the mountspec (see: onedrive: fix mount spec for custom PresentationIdentity values (!268) · Merge requests · GNOME / gvfs · GitLab). For now you’ll have to reset the account name to the default, usually the email address.

This is addressed in gnome-online-accounts 3.54.5, where the account name can not be changed for Microsoft 365 accounts, so you’ll have to ask your distribution to upgrade.

Thanks for the info. I hadn’t renamed the account from the default (it was my name not email address) but if I try my email address the message changes to “cannot open “

Do you know where the mount spec is stored for gvfs or if there is a log I can check?

Ah yes, sorry the workaround also included a change that ensures an email address.

It may be that you have to restart gvfs:

GVFS_DEBUG=1 G_MESSAGES_DEBUG=msgraph MSG_DEBUG=3 $(find /usr/lib* -name gvfsd 2>/dev/null) --replace

This should also output reasonable debug logging in the terminal for you.

You were right the first time, I’m just impatient. After giving up for the night, a fresh boot (or presumably restarting gvfsd) it’s now working.

tldr/steps to fix:

  1. Ensure the online account is labelled the email address on the account, change if not
  2. Toggle files off and then on again to recreate the entry in Nautilus
  3. Restart gvfsd or reboot
1 Like

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.