gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

Unable to upload or list files from shared drives

Open 41alderson opened this issue 4 years ago • 14 comments

Hii,

i tried to upload files into my shared drive, but received Failed to get file: googleapi: Error 404: File not found: 0AMYYbxxxxxxxxx., notFound Error.

any way to fix that?

command i used: gdrive upload --parent 0AMYYbxxxxxxxx file.zip

41alderson avatar Jul 31 '20 06:07 41alderson

Trying right now, getting the same :(

Anon-Exploiter avatar Aug 07 '20 16:08 Anon-Exploiter

same here

EricDavidWells avatar Jun 23 '21 20:06 EricDavidWells

Still seeing this with new 2.1.1 release as well.

hyphaltip avatar Jun 27 '21 20:06 hyphaltip

Same here...

KrisJanssen avatar Jul 28 '21 19:07 KrisJanssen

Folks use https://github.com/labbots/google-drive-upload -- updated and works easily with shared drives.

Anon-Exploiter avatar Jul 28 '21 19:07 Anon-Exploiter

same here

penolove avatar Nov 02 '21 18:11 penolove

@Anon-Exploiter thanks for sharing https://github.com/labbots/google-drive-upload, it looks cool but the initial setup is a bit too complicated to be used at an organization level

ethanjyx avatar Dec 23 '21 18:12 ethanjyx

@ethanjyx that's the thing, you only have to do it once. Create the API keys of google drive using google console. Store those JSON credentials somewhere.

Now in the future, on whatever machine, or whatever cloud instance, just run the curl command to download and set up the uploader, pass those stored credentials, allow the token read permissions, run the script.

--

The same guy wrote a google drive downloader too, so, all I do is run it's .sh file, pass the same credentials, give write permissions, and, easily download files from my google account.

--

Apart from that, I've tried many, many tools, none were useful on SSH in an EC2 Instance.

Anon-Exploiter avatar Dec 23 '21 18:12 Anon-Exploiter

@Anon-Exploiter that's good to know - I don't mind doing it once for myself, but I need to pick a tool that can scale within the company, I can imagine this set up will be too much to board every employee.

Why cannot that tool be made to have as simple login as this one?

ethanjyx avatar Dec 23 '21 21:12 ethanjyx

I have created a fork that supports all drives here https://github.com/trinvh/gdrive You can find the latest binary in the release page.

trinvh avatar Jan 25 '22 22:01 trinvh

awesome @trinvh , what about merging directly into this repo?

ethanjyx avatar Jan 25 '22 22:01 ethanjyx

@ethanjyx not sure if this repo is maintained actively. There are a lot of pending PRs and the last update is about 8 months ago

trinvh avatar Jan 28 '22 08:01 trinvh

@trinvh I've tried, but your release doesn't work with shared drives

vittoriopippi avatar Apr 04 '22 13:04 vittoriopippi

I tried to manually enter the file ID which I can view and is shared with me, but get the following error:

Failed to download file: googleapi: got HTTP response code 403 with body: {
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "cannotDownloadFile",
    "message": "This file cannot be downloaded by the user."
   }
  ],
  "code": 403,
  "message": "This file cannot be downloaded by the user."
 }
}

dodancs avatar Jun 09 '22 11:06 dodancs