{"id":743,"date":"2024-05-21T03:24:10","date_gmt":"2024-05-21T03:24:10","guid":{"rendered":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/"},"modified":"2025-03-03T11:41:37","modified_gmt":"2025-03-03T11:41:37","slug":"solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide","status":"publish","type":"post","link":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/","title":{"rendered":"Solving OneDrive File Access Issues in Ubuntu 24.04: A Practical Guide"},"content":{"rendered":"<p><p><strong>Of the many <a href=\"https:\/\/www.omgubuntu.co.uk\/2024\/04\/ubuntu-24-04-lts-20-changes-to-look-out-for\" rel=\"nofollow noopener\" target=\"_blank\">new features in Ubuntu 24.04<\/a> LTS, it&#8217;s the ability to access OneDrive files through the Nautilus file manager as a remote mount that stands out.<\/strong><\/p>\n<\/p>\n<p><p>This becomes a reality thanks to the msgraph package. This is a new gvfs backend that Nautilus can work with. Also in the mix are account integration through GNOME Online Accounts (GOA) and the relevant permissions and approvals from Microsoft.<\/p>\n<\/p>\n<p><p>Setting up the file-access feature might not be obvious at first, but it&#8217;s straightforward <a href=\"https:\/\/www.omgubuntu.co.uk\/2024\/04\/set-up-onedrive-file-access-in-ubuntu\" rel=\"nofollow noopener\" target=\"_blank\">once you get the hang of it<\/a>. The feature is compatible with both standard Microsoft OneDrive accounts as well as OneDrive accounts provided\/managed by an organization, for instance, your workplace.<\/p>\n<\/p>\n<p><p>The solution is &#8216;turnkey&#8217;, which is excellent: it&#8217;s ready to use, straight out of the box. No need for third-party apps, scripts, or add-ons that require you to input your valuable account details.<\/p>\n<\/p>\n<p><p>But there is a really annoying issue with it: it doesn\u2019t stay connected.<\/p>\n<\/p>\n<p><p><a href=\"https:\/\/149366088.v2.pressablecdn.com\/wp-content\/uploads\/2024\/05\/onedrive-gnome-online-accounts-invalid-credentials.jpg\" rel=\"nofollow noopener\" target=\"_blank\">A right royal runaround<\/a><\/p>\n<\/p>\n<p><p>I can successfully add my Microsoft 365 account in Online Accounts without issue and slide the \u2018Files\u2019 toggle to enable the Nautilus OneDrive integration and it all works great.<\/p>\n<\/p>\n<p><p>But it only works until I shutdown or reboot.<\/p>\n<\/p>\n<p><p>Next time I log in and attempt to access OneDrive in <em>Nautilus<\/em>, I encounter an &#8220;invalid credentials&#8221; error. An issue is represented by a warning icon next to my Microsoft 365 account in <em>Settings<\/em>, which leads to an info bar advising me to reconnect.<\/p>\n<\/p>\n<p><p>However, the reconnection process is also unsuccessful. Despite being able to log in on Microsoft&#8217;s authorization page without any problems, the authorization pass back to GOA is prevented by an &#8220;invalid UTF-8&#8221; error.<\/p>\n<\/p>\n<p><p>The only solution I&#8217;ve found to activate the feature again is to completely remove my account from <em>Online Accounts<\/em> and set up everything again &#8211; every time I log in!<\/p>\n<\/p>\n<p><p>While this is not a significant problem, it can be a slight inconvenience when all I want to do is retrieve a file. (A bit of a &#8220;faff&#8221;, as the Brits would say).<\/p>\n<\/p>\n<p><h2>How to Fix the Microsoft 365 Account Issue<\/h2>\n<\/p>\n<p><p>Well, the good news is that the \u2018invalid credentials\u2019 issue that occurs between sessions <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/gnome-online-accounts\/-\/issues\/325\" target=\"_blank\" rel=\"nofollow noopener\">is a bug<\/a> and a fix has been merged upstream which I hope will filter down to Ubuntu 24.04 LTS soon.<\/p>\n<\/p>\n<p><p>In the meantime there\u2019s a manual workaround to \u201csolve\u201d it.<\/p>\n<\/p>\n<p><p>If you are experiencing constant account reset issues and wish to maintain a consistent connection to your cloud account between sessions, follow these steps:<\/p>\n<\/p>\n<ul>\n<li><b>Locate<\/b> and <b>open<\/b> the <code>~\/.config\/goa-1.0\/accounts.conf<\/code> file in a text editor.<\/li>\n<li><b>Navigate<\/b> to the <code>OAuth2RedirectUri<\/code> section.<\/li>\n<li><b>Identify<\/b> and <b>copy<\/b> the number string found after the <code>localhost\/<\/code> (this string is your client ID).<\/li>\n<li><b>Proceed<\/b> to the <code>OAuth2ClientId<\/code> section.<\/li>\n<li><b>Exchange<\/b> the <code>[Invalid UTF-8]<\/code> with the previously copied client ID.<\/li>\n<li><b>Save<\/b> the changes and <b>reboot<\/b> your computer.<\/li>\n<\/ul>\n<p><p>Upon completing these steps, your Microsoft 365 account should remain authenticated and functional between sessions. This solution eliminates the need for constant reauthorization and removes the occurrence of &#8220;invalid credential&#8221; errors when you need to stash or retrieve files from OneDrive.<\/p>\n<\/p>\n<p><p>Hopefully, this solution proves useful for you!<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Of the many new features in Ubuntu 24.04 LTS, it&#8217;s the ability to access OneDrive files through the Nautilus file manager as a remote mount that stands out. This becomes a reality thanks to the msgraph package. This is a new gvfs backend that Nautilus can work with. Also in the mix are account integration [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,143,4,412,131],"tags":[],"class_list":["post-743","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gnome-46","category-how-to","category-news","category-onedrive","category-ubuntu-24-04-lts"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fix OneDrive File Access Issues in Ubuntu 24.04<\/title>\n<meta name=\"description\" content=\"Learn how to solve OneDrive file access issues in Ubuntu 24.04 with this practical guide, including troubleshooting tips and step-by-step solutions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix OneDrive File Access Issues in Ubuntu 24.04\" \/>\n<meta property=\"og:description\" content=\"Learn how to solve OneDrive file access issues in Ubuntu 24.04 with this practical guide, including troubleshooting tips and step-by-step solutions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"ServerHost Hosting Solutions Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-21T03:24:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-03T11:41:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"756\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/\",\"url\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/\",\"name\":\"Fix OneDrive File Access Issues in Ubuntu 24.04\",\"isPartOf\":{\"@id\":\"https:\/\/serverhost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp\",\"datePublished\":\"2024-05-21T03:24:10+00:00\",\"dateModified\":\"2025-03-03T11:41:37+00:00\",\"author\":{\"@id\":\"https:\/\/serverhost.com\/blog\/#\/schema\/person\/535ebc9c42672d8f79ad3ee8ea563d66\"},\"description\":\"Learn how to solve OneDrive file access issues in Ubuntu 24.04 with this practical guide, including troubleshooting tips and step-by-step solutions.\",\"breadcrumb\":{\"@id\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#primaryimage\",\"url\":\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp\",\"contentUrl\":\"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp\",\"width\":1440,\"height\":756},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/serverhost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Solving OneDrive File Access Issues in Ubuntu 24.04: A Practical Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/serverhost.com\/blog\/#website\",\"url\":\"https:\/\/serverhost.com\/blog\/\",\"name\":\"ServerHost Hosting Solutions Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/serverhost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/serverhost.com\/blog\/#\/schema\/person\/535ebc9c42672d8f79ad3ee8ea563d66\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serverhost.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b8e5973018461f98bcdda40e69a0a7ae6548c079e5e7a1a0c8b40c0738e0fb52?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b8e5973018461f98bcdda40e69a0a7ae6548c079e5e7a1a0c8b40c0738e0fb52?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/serverhost.com\/blog\"],\"url\":\"https:\/\/serverhost.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix OneDrive File Access Issues in Ubuntu 24.04","description":"Learn how to solve OneDrive file access issues in Ubuntu 24.04 with this practical guide, including troubleshooting tips and step-by-step solutions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/","og_locale":"en_US","og_type":"article","og_title":"Fix OneDrive File Access Issues in Ubuntu 24.04","og_description":"Learn how to solve OneDrive file access issues in Ubuntu 24.04 with this practical guide, including troubleshooting tips and step-by-step solutions.","og_url":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/","og_site_name":"ServerHost Hosting Solutions Blog","article_published_time":"2024-05-21T03:24:10+00:00","article_modified_time":"2025-03-03T11:41:37+00:00","og_image":[{"width":1440,"height":756,"url":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/","url":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/","name":"Fix OneDrive File Access Issues in Ubuntu 24.04","isPartOf":{"@id":"https:\/\/serverhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#primaryimage"},"image":{"@id":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp","datePublished":"2024-05-21T03:24:10+00:00","dateModified":"2025-03-03T11:41:37+00:00","author":{"@id":"https:\/\/serverhost.com\/blog\/#\/schema\/person\/535ebc9c42672d8f79ad3ee8ea563d66"},"description":"Learn how to solve OneDrive file access issues in Ubuntu 24.04 with this practical guide, including troubleshooting tips and step-by-step solutions.","breadcrumb":{"@id":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#primaryimage","url":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp","contentUrl":"https:\/\/serverhost.com\/blog\/wp-content\/uploads\/2024\/05\/375de8f0125ea33d86049480d71c4e4d.webp","width":1440,"height":756},{"@type":"BreadcrumbList","@id":"https:\/\/serverhost.com\/blog\/solving-onedrive-file-access-issues-in-ubuntu-24-04-a-practical-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serverhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Solving OneDrive File Access Issues in Ubuntu 24.04: A Practical Guide"}]},{"@type":"WebSite","@id":"https:\/\/serverhost.com\/blog\/#website","url":"https:\/\/serverhost.com\/blog\/","name":"ServerHost Hosting Solutions Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serverhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/serverhost.com\/blog\/#\/schema\/person\/535ebc9c42672d8f79ad3ee8ea563d66","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serverhost.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b8e5973018461f98bcdda40e69a0a7ae6548c079e5e7a1a0c8b40c0738e0fb52?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b8e5973018461f98bcdda40e69a0a7ae6548c079e5e7a1a0c8b40c0738e0fb52?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/serverhost.com\/blog"],"url":"https:\/\/serverhost.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts\/743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/comments?post=743"}],"version-history":[{"count":1,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts\/743\/revisions"}],"predecessor-version":[{"id":1999,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/posts\/743\/revisions\/1999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/media\/744"}],"wp:attachment":[{"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/media?parent=743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/categories?post=743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverhost.com\/blog\/wp-json\/wp\/v2\/tags?post=743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}