How to connect GDrive

What is the problem you are having with rclone?

Problem when setting up a GDrive connection (GSuite) to server.

Run the command 'rclone version' and share the full output of the command.

rclone v1.58.0

Which cloud storage system are you using? (eg Google Drive)

Google Drive

When I reach it before entering the token, it is written in the console that you need to go to the address

http://127.0.0.1:53682/auth?state=xxxxxxxxxxxxxxxxx
But I can't do it in the console.How to get a token?

Check out:

Remote Setup (rclone.org)

Hmmm
I chose the item "Do not use the auto config", in response, received the team

rclone authorize "drive" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

I entered this command on another server with the same version of Rclone, but in the end the same, you need to go to the address
http://127.0.0.1:53682/auth?state=XXXXXXXXXXXXXXXXXXXXXXX

PS. Desktop version of Linux I do not have.

You run rclone authorize a machine that has a web browser as you need that to do the oAuth required by Google.

Use the computer you are typing this message on.

This part of the docs are key:

That is, if I understand correctly, if I do not have a DESTOP version of the operating system with the RClone installed, then I can not connect GDRIVE. Right?

You can use any machine that the rclone runs on that has a web browser.

It can be Windows, Mac, Linux, etc.

I'm not sure I'm following here as you have no machine that has a web browser?

If you have no machine that has a Web browser, you can use a service account for Google Drive:

Google drive (rclone.org)

Can you show an example json file?
I do not quite understand what to write there.

You have to run through the steps and download it.

It'll look something like:

felix@gemini:/opt/rclone$ cat gd.json
{
  "type": "service_account",
  "project_id": "home-2146",
  "private_key_id": "bunchofnumbersfortheid",
  "private_key": "-----BEGIN PRIVATE KEY-----\verylongprivatekeyxo=\n-----END PRIVATE KEY-----\n",
  "client_email": "testrclone@something.iam.gserviceaccount.com",
  "client_id": "numbers",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/testrclone%40home-12412124.iam.gserviceaccount.com"
}

I apologize, and where to get these data?

In the post I shared the detail, I shared this link:

You have to click that link, read it and follow the steps.

Ok, the result of my actions - I enter into the console of my server
rclone -v --drive-impersonate myserviceaccount@rclone-XXXXXX.iam.gserviceaccount.com lsf test_gdrive_srv:

I get a successful execution, since there were no messages. But when trying to mount
rclone mount test_gdrive_srv: /root/backup_srv/mount/test_gdrive_srv
When entering the catalog /root/backup_srv/mount/test_gdrive_srv
I see emptiness

I can't tell what you did from those two commands.

You did all 4 of these steps?

From the link?

What's your rclone.conf look like?

Yes, I performed four items and how I said the check team is performed without mistakes, plus even the metric began to show graphs


And you did:

?

maybe need to add --allow-other and debug output with -vv

rclone mount test_gdrive_srv: /root/backup_srv/mount/test_gdrive_srv --allow-other -vv

hi,

that debug log looks ok, based on ReadDirAll: item=2

what do you need help with?

When I go to the mount folder, then there is empty.

before trying rclone mount,
make sure rclone ls test: outputs what you want.