Rclone not working on steam deck using distrobox

What is the problem you are having with rclone?

Mount function is not working using distrobox on steam deck. Sync and clone functions work. It also looks like rclone is connected to my drive

[deck@Arch ~]$ rclone ls piokug96:
    46581 File1
    45717 File2
       35 File3

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

[deck@Arch ~]$ rclone version
rclone v1.67.0
- os/version: arch 20240818.0.255804 (64 bit)
- os/kernel: 6.1.52-valve16-1-neptune-61 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: none

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

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount piokug96: /home/deck/GDrive-piokug96/ --allow-non-empty --allow-other

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[deck@Arch ~]$ rclone config redacted
[piokug96]
type = drive
scope = drive
token = XXX
team_drive = 
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

[deck@Arch ~]$ rclone mount piokug96: /home/deck/GDrive-piokug96/ --allow-non-empty --allow-other -vv
2024/08/28 14:26:44 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "mount" "piokug96:" "/home/deck/GDrive-piokug96/" "--allow-non-empty" "--allow-other" "-vv"]
2024/08/28 14:26:44 DEBUG : Creating backend with remote "piokug96:"
2024/08/28 14:26:44 DEBUG : Using config file from "/home/deck/.config/rclone/rclone.conf"
2024/08/28 14:26:45 DEBUG : Google drive root '': 'root_folder_id = 0AB1eT_QVeYO0Uk9PVA' - save this in the config to speed up startup
2024/08/28 14:26:45 DEBUG : Google drive root '': Mounting on "/home/deck/GDrive-piokug96/"
2024/08/28 14:26:46 DEBUG : : Root: 
2024/08/28 14:26:46 DEBUG : : >Root: node=/, err=<nil>

welcome to the forum,

based on the debug log snippet, the mount command is working.

Okay, but I don't see files in /home/deck/GDrive-piokug96/
I can see them only after using sunc/copy funcion

ok, but you only posted a very tiny snippet from the debug output.
based on that, the rclone is working as expected.

and why are you using --allow-non-empty ?

So what more shoud I post? I am new linux user

why are you using --allow-non-empty ?

I use --allow-non-empty beacuse the folder has custom icon on my desktop and it created ".directory" file

for testing, i would remove that flag, it allows for over-mounting and possible corruption.

I don't see files

  1. kill the mount, killall instances of rclone that might be running in the background.
  2. start the mount without --allow-non-empty
  3. try to access the files in /home/deck/GDrive-piokug96/
  4. post the full debug output

I did 1-3 before.

fusermount -u /home/deck/GDrive-piokug96/
rclone mount piokug96: /home/deck/GDrive-piokug96/ --allow-other

And then I don't see anything in the /home/deck/GDrive-piokug96.
How to reach point 4?

must run all rclone commands with debug output using -vv or use a rclone debug log.

[deck@Arch ~]$ fusermount -u /home/deck/GDrive-piokug96/ -vv
fusermount: invalid option -- 'v'
[deck@Arch ~]$ rclone mount piokug96: /home/deck/GDrive-piokug96/ --allow-other -vv
2024/08/28 14:57:25 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "mount" "piokug96:" "/home/deck/GDrive-piokug96/" "--allow-other" "-vv"]
2024/08/28 14:57:25 DEBUG : Creating backend with remote "piokug96:"
2024/08/28 14:57:25 DEBUG : Using config file from "/home/deck/.config/rclone/rclone.conf"
2024/08/28 14:57:25 DEBUG : pacer: low level retry 1/10 (error googleapi: Error 403: Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'drive.googleapis.com' for consumer 'project_number:202264815644'.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadata": {
      "consumer": "projects/202264815644",
      "quota_limit": "defaultPerMinutePerProject",
      "quota_limit_value": "420000",
      "quota_location": "global",
      "quota_metric": "drive.googleapis.com/default",
      "service": "drive.googleapis.com"
    },
    "reason": "RATE_LIMIT_EXCEEDED"
  },
  {
    "@type": "type.googleapis.com/google.rpc.Help",
    "links": [
      {
        "description": "Request a higher quota limit.",
        "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
      }
    ]
  }
]
, rateLimitExceeded)
2024/08/28 14:57:25 DEBUG : pacer: Rate limited, increasing sleep to 1.686961305s
2024/08/28 14:57:26 DEBUG : pacer: low level retry 2/10 (error googleapi: Error 403: Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'drive.googleapis.com' for consumer 'project_number:202264815644'.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadata": {
      "consumer": "projects/202264815644",
      "quota_limit": "defaultPerMinutePerProject",
      "quota_limit_value": "420000",
      "quota_location": "global",
      "quota_metric": "drive.googleapis.com/default",
      "service": "drive.googleapis.com"
    },
    "reason": "RATE_LIMIT_EXCEEDED"
  },
  {
    "@type": "type.googleapis.com/google.rpc.Help",
    "links": [
      {
        "description": "Request a higher quota limit.",
        "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
      }
    ]
  }
]
, rateLimitExceeded)
2024/08/28 14:57:26 DEBUG : pacer: Rate limited, increasing sleep to 2.980216073s
2024/08/28 14:57:27 DEBUG : pacer: low level retry 3/10 (error googleapi: Error 403: Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'drive.googleapis.com' for consumer 'project_number:202264815644'.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadata": {
      "consumer": "projects/202264815644",
      "quota_limit": "defaultPerMinutePerProject",
      "quota_limit_value": "420000",
      "quota_location": "global",
      "quota_metric": "drive.googleapis.com/default",
      "service": "drive.googleapis.com"
    },
    "reason": "RATE_LIMIT_EXCEEDED"
  },
  {
    "@type": "type.googleapis.com/google.rpc.Help",
    "links": [
      {
        "description": "Request a higher quota limit.",
        "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
      }
    ]
  }
]
, rateLimitExceeded)
2024/08/28 14:57:27 DEBUG : pacer: Rate limited, increasing sleep to 4.780086952s
2024/08/28 14:57:30 DEBUG : pacer: low level retry 4/10 (error googleapi: Error 403: Quota exceeded for quota metric 'Queries' and limit 'Queries per minute' of service 'drive.googleapis.com' for consumer 'project_number:202264815644'.
Details:
[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "domain": "googleapis.com",
    "metadata": {
      "consumer": "projects/202264815644",
      "quota_limit": "defaultPerMinutePerProject",
      "quota_limit_value": "420000",
      "quota_location": "global",
      "quota_metric": "drive.googleapis.com/default",
      "service": "drive.googleapis.com"
    },
    "reason": "RATE_LIMIT_EXCEEDED"
  },
  {
    "@type": "type.googleapis.com/google.rpc.Help",
    "links": [
      {
        "description": "Request a higher quota limit.",
        "url": "https://cloud.google.com/docs/quota#requesting_higher_quota"
      }
    ]
  }
]
, rateLimitExceeded)
2024/08/28 14:57:30 DEBUG : pacer: Rate limited, increasing sleep to 8.318817826s
2024/08/28 14:57:35 DEBUG : pacer: Reducing sleep to 0s
2024/08/28 14:57:35 DEBUG : Google drive root '': 'root_folder_id = 0AB1eT_QVeYO0Uk9PVA' - save this in the config to speed up startup
2024/08/28 14:57:43 Fatal error: failed to mount FUSE fs: directory already mounted, use --allow-non-empty to mount anyway: /home/deck/GDrive-piokug96
  1. create a google drive client id+secret
  2. create a new remote, this time using the client id+secret

What is clident id+secret and how to find it?

check the rclone docs for gdrive.

Okay, I found it and followed the instruction from site Google drive

But it's still not working. Debug output:

[deck@Arch ~]$ rclone mount piokug96: /home/deck/GDrive-piokug96/ --allow-other -vv
2024/08/28 20:24:16 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "mount" "piokug96:" "/home/deck/GDrive-piokug96/" "--allow-other" "-vv"]
2024/08/28 20:24:16 DEBUG : Creating backend with remote "piokug96:"
2024/08/28 20:24:16 DEBUG : Using config file from "/home/deck/.config/rclone/rclone.conf"
2024/08/28 20:24:16 DEBUG : Google drive root '': 'root_folder_id = 0AB1eT_QVeYO0Uk9PVA' - save this in the config to speed up startup
2024/08/28 20:24:16 DEBUG : Google drive root '': Mounting on "/home/deck/GDrive-piokug96/"
2024/08/28 20:24:16 DEBUG : : Root: 
2024/08/28 20:24:16 DEBUG : : >Root: node=/, err=<nil>
2024/08/28 20:25:16 DEBUG : Google drive root '': Checking for changes on remote
2024/08/28 20:26:16 DEBUG : Google drive root '': Checking for changes on remote

That's full output. I don't know why it's different than last one.

do not see any attempt to list the files inside the mountpoint??

It's checking for changes after every minute

2024/08/28 20:27:16 DEBUG : Google drive root '': Checking for changes on remote
2024/08/28 20:28:16 DEBUG : Google drive root '': Checking for changes on remote
2024/08/28 20:29:16 DEBUG : Google drive root '': Checking for changes on remote
2024/08/28 20:30:16 DEBUG : Google drive root '': Checking for changes on remote
2024/08/28 20:31:16 DEBUG : Google drive root '': Checking for changes on remote
2024/08/28 20:32:16 DEBUG : Google drive root '': Checking for changes on remote

In the new terminal I runned:

[deck@Arch ~]$ rclone ls piokug96: -vv
2024/08/28 20:33:52 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "ls" "piokug96:" "-vv"]
2024/08/28 20:33:52 DEBUG : Creating backend with remote "piokug96:"
2024/08/28 20:33:52 DEBUG : Using config file from "/home/deck/.config/rclone/rclone.conf"
2024/08/28 20:33:53 DEBUG : Google drive root '': 'root_folder_id = 0AB1eT_QVeYO0Uk9PVA' - save this in the config to speed up startup
    46581 File1
    45717 File2
       35 .directory
2024/08/28 20:33:55 DEBUG : 14 go routines active

correct, expected behavior.

post the output of:

  • rclone config redacted piokug96:
  • ls /home/deck/GDrive-piokug96