Remote Files, Google Drive, Error "The specified device is invalid"

I am unable to connect Google Drive to LibreOffice.

Error Message: “The specified device is invalid”

My Environment:
LibreOffice Version: 6.1.2.1, Build ID: 6.1.2.1-3.fc29, Fedora 29 Workstation 64-bit, Gnome Desktop 3.30.2, Google G Suite, 2-Step Authentication

Actions Taken:
Open LibreOffice Calc. Select “File>Open Remote…”. Choose Google Drive from the “Add service” drop down menu. Enter user and password. Prompted for 6-digit code. Enter 6-digit code from Google Authenticator. Receive error message “The specified device is invalid”.

Additional Information:
I have tried to enter the 6-digit authentication code provided by the Google Authenticator for 2-Step authentication and I have tried to use a Google App-Specific code, but both produce the same error message in LibreOffice.

3 Likes

I have the same problem in LibreOffice Version: 6.2.7.1

1 Like

Still (2022-08) unable to connect Google Drive to LibreOffice.

Error Message: “The specified device is invalid”

My Environment:
LibreOffice Version: 7.3.5.2, Ubuntu 22.04, package version: 1:7.3.5.2-0Ubuntu0.22.04.1, Gnome v 42.2 Google G Suite, login (2-Step Authentication) I am unable to connect Google Drive to LibreOffice.

Actions Taken:
Open LibreOffice Writer. Select “File>Open Remote…”. Choose Google Drive from the “Add service” drop down menu. Enter user and password. (does not prompt any 2-step auth tokens) Receive error message “The specified device is invalid”.

[/quote]

In short: it will not work with Ubuntu-packaged build. While usually I recommend to use distro packages, in this specific case the only way is to use a TDF build, and follow the steps described in the link.

2 Likes

What is TDF build?

TDF = The Document Foundation, the foundation behind LibreOffice that provides packaged generic builds for various platforms you can download from Download LibreOffice | LibreOffice - Free Office Suite - Based on OpenOffice - Compatible with Microsoft .

1 Like

Installed LibreOffice 7.5.3.2 from TDF, GoogleDrive remote service setup kind of works: drive connection setup can be done w/ 2FA, but every time any files from drive are accessed or operated on, the same dialog must be walked thru and while operation (save/get/etc) is in progress, LibreOffice applicarion freezes i.e crashes. Also, files storrd in the drive can not be opened in the drive.

Definitely does not work i.e. can not be used to access files remotely in Google Drive.

Good morning I try what you say …
Windows 7 … Libreoffice 7.5
Thank you

I get this
Access blocked: LibreOffice’s request is invalid

XXXXXXXXXXX@gmail.com
You can’t sign in because LibreOffice sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of LibreOffice, see error details.
Error 400: invalid_request
xxxxxxxxxxxxxxxxxxxxxxxxxxx

Error 400: invalid_request

The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method.

Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oo

1 Like

Goos morning Libre Community,

I face the same problem trying to connect my Google Account with 2FA on Libre Office 24.2.1 on Windows 11. Google replies with Error 400: invalid_request.
— Quoted text from google page—
Access blocked: LibreOffice’s request is invalid for
xxx@gmail.com

You can’t sign in because LibreOffice sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error :slight_smile: support.google.com accounts answer 12379384

If you are a developer of LibreOffice, see error details.

Doing so google search i read the following article saying that google upgraded its infrastructure and does not support legacy 3rd party apps using the oAuth v2.0
support google com accounts answer 12379384

I think that Libre Office developers must update the code using the latest authentication method that Google supports…

John

I don’t know if this extension works because I am not interested in storing files in Google Drive but you can try, OAuth2OOo » Extensions

I am receiving the same error in version 24.8.3.2 (X86_64).
Error saving the document :
The specified device is invalid.
I did double check my login credentials.
The add File Services dialog box does ask for a ‘Share’ and nowhere in any instructions does it mention this field or what to put in it.
The Share field is a freeform field, not a dropdown field.
It asks for Type, Share, User, Password, and Label with a checkbox for Remember password.
I would love to have this feature working.

About LibreOffice

Update: It gives the same error for Google Drive and OneDrive. It seems that this feature is not working for all types of remote storage options. I am not using 2factor authorization. I tried a work-around I found but it did not work either. I am hoping they get this working quickly.

Did anyone ever answer this question? I have the same dialog box that asks for “share” and i have no idea what to put in the field. I tried the link i uses to share the file and it gives me the error The specified device is invalid.

No answer to this ongoing issue. It seems that it has been this way for a few years. I don’t have much hope that it will be fixed any time soon. It does not appear that this particular feature is very high on the priority list.

I don’t know what to put in the share field, so I left it blank. I think the feature is broken and it does not matter what is entered into the form, it will always fail. I think it is saying that Google Drive or OneDrive are invalid devices to connect to. LO may just need to do a total rewrite of the code relating to this feature.

Harley Ficke
† In God We Trust
<*}}}><

Go Green! Print this email only when necessary. Thank you for helping to be environmentally responsible.

Ocam01
April 28

Did anyone ever answer this question? I have the same dialog box that asks for “share” and i have no idea what to put in the field. I tried the link i uses to share the file and it gives me the error The specified device is invalid.

Screen Shot 04-26-25 at 05.35 AM


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

There is a reported bug tdf#101630 - Google Drive two-factor authentication (2FA) not working again

1 Like

Hi, I’ve faced so many times extract problem please try to sing out and login again your gmail account.

hey… I’m from India and I would like to share with you about the WhatsApp Starts Deleting Google Drive so WhatsApp had cautioned that beginning November 12, any reinforcements that hadn’t been refreshed in over a year will be consequently expelled from Google Drive stockpiling. Android clients can refresh their duplicate and arrange its refresh recurrence as long as they have an individual record on Google .

I too need some help! I am unable to configure LibreOffice to get and save to GoogleDrive. It keeps on referring to the “Google Drive asks for authentication 6-digit pin” but no pin is sent/received. I have tried with and without Google’s 2-Step Verification, but no luck. I see a number of online forums highlight this. Is there any possibility this will be able to be configured and work? I rely heavily on saving and editing documents on GoogleDrive locations and using LibreOffice. GoogleDoc has a few limitations for me. Any guidelines will help.

1 Like

I too have the same problem. Mine is LibreOffice 7.0.3.1 x64.
LibreOffice can connect to the internet, there’s no firewall blocking, because it does connect to check for updates.
But it is not able to authenticate.
Initially I too was wondering where that 6 digit pin would come from. And maybe there would be a notification on the phone, or SMS, something. Nothing came.
I checked online, and people said enable 2 step verification, and set up Authenticator, which I did. And I used the 6 digit password from Authenticator too. Tried it more than once after the Authenticator refreshed the PIN. But still it gives the same Error Message. “The Specified Device is Invalid”.
And I am not able to figure out how to go ahead. Any help would be so welcome.

Your’s is not an answer but a me-too posting. Please do not use the Answer field for comments that are not an answer to the original question, use Comment instead. Thanks.

You could had followed the link pointing to the bug in the answer by mariosv. Google keeps changing the API and devs have to keep up with that. In short, upcoming LibreOffice 7.2.0.2 should have support again. See that bug’s comment 82 for restrictions on what will work.