No access to mounted directory

What is the problem you are having with rclone?

I would like to mount an Google Drive on CentOS. Unfortunally it seems that I don't have access to the mounted folder.

image

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

rclone v1.63.0-beta.6929.bd46f01eb
- os/version: centos 8 (64 bit)
- os/kernel: 4.18.0-408.el8.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.2
- 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 GoogleDrive: /usr/share/audiobookshelf/gdrive -vv --dump headers

The rclone config contents with secrets removed.

[GoogleDrive]

type = drive

client_id = 705808218904-qakdp2mref9i6g7sp0rda6qctf76c439.apps.googleusercontent.com

client_secret = SECRET

scope = drive.readonly

token = {"access_token":"ya29.a0Ael9sCOmYQdudIWJWaq_4NgkH-9Vbn_FL7HGJJFxkPuGcVcWjtys22kvYOITHgMBsCrdsNu4JRPmN0wohf05ERLmXDp4hffsmb34ZD0ynzKePqcq8Do_KegEZHwpRBta3OqY2KWXsyLOPW2Mma5OmWU1zi4gd71waCgYKAS8SARASFQF4udJhdhpV-VDBkStNrxK_yV4pyw0167","token_type":"Bearer","refresh_token":"1//09akYAC-p_N7PCgYIARAAGAkSNwF-L9IrYV6oWsSi1j7VVge3w70v9BIN09OetYEL8A4CfbkQUYSnoFYGUh1FhiGOZMWmti0owtk","expiry":"2023-03-28T22:25:02.980899656Z"}

team_drive =

A log from the command with the -vv flag


2023/03/28 21:28:55 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<                                                                                                             <<<<<<<<
2023/03/28 21:28:55 DEBUG : Google drive root '': 'root_folder_id = 0AH7gFlCDI28                                                                                                             rUk9PVA' - save this in the config to speed up startup
2023/03/28 21:28:55 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>                                                                                                             >>>>>>>>
2023/03/28 21:28:55 DEBUG : HTTP REQUEST (req 0xc000524e00)
2023/03/28 21:28:55 DEBUG : GET /drive/v3/changes/startPageToken?alt=json&pretty                                                                                                             Print=false&supportsAllDrives=true HTTP/1.1
Host: www.googleapis.com
User-Agent: rclone/v1.63.0-beta.6929.bd46f01eb
Authorization: XXXX
X-Goog-Api-Client: gl-go/1.20.2 gdcl/0.114.0
Accept-Encoding: gzip

2023/03/28 21:28:55 DEBUG : >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>                                                                                                             >>>>>>>>
2023/03/28 21:28:55 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<                                                                                                             <<<<<<<<
2023/03/28 21:28:55 DEBUG : HTTP RESPONSE (req 0xc000524e00)
2023/03/28 21:28:55 DEBUG : HTTP/1.1 200 OK
Transfer-Encoding: chunked
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Type: application/json; charset=UTF-8
Date: Tue, 28 Mar 2023 21:28:55 GMT
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: ESF
Vary: Origin, X-Origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 0

2023/03/28 21:28:55 DEBUG : <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<                                                                                                             <<<<<<<<
2023/03/28 21:28:55 DEBUG : Google drive root '': Mounting on "/usr/share/audiobookshelf/gdrive/                                                                                                             "
2023/03/28 21:28:55 DEBUG : : Root:
2023/03/28 21:28:55 DEBUG : : >Root: node=/, err=<nil>

hello and welcome to the forum,

try adding --allow-other

if not, can you post a rclone complete rclone debug log, no need for --dump headers
not just a snippet, but the entire debug log.

do you have a specific reason to use the beta?

Thanks. I tried --allow-other:

[opc@instance-20230327-2208 ~]$ rclone mount GeorgetownDrive: /usr/share/audiobookshelf/gdrive --log-level DEBUG --allow-other
2023/03/28 22:39:01 DEBUG : rclone: Version "v1.63.0-beta.6929.bd46f01eb" starting with parameters ["rclone" "mount" "GeorgetownDrive:" "/usr/share/audiobookshelf/gdrive" "--log-level" "DEBUG" "--allow-other"]
2023/03/28 22:39:01 DEBUG : Creating backend with remote "GeorgetownDrive:"
2023/03/28 22:39:01 DEBUG : Using config file from "/home/opc/.config/rclone/rclone.conf"
2023/03/28 22:39:02 DEBUG : Google drive root '': 'root_folder_id = 0AH7gFlCDI28rUk9PVA' - save this in the config to speed up startup
2023/03/28 22:39:02 DEBUG : Google drive root '': Mounting on "/usr/share/audiobookshelf/gdrive"
2023/03/28 22:39:02 DEBUG : : Root:
2023/03/28 22:39:02 DEBUG : : >Root: node=/, err=<nil>

Still not quite knowing why I installed the beta Version. I will try tomorrow the stable version

the logs looks ok, what is the exact problem?
maybe the issue is with your bash script?

try a simple command?
what is the output of this command, do you see the files?
ls /usr/share/audiobookshelf/gdrive

Unbelievable. Now I see the files and everything is working :slight_smile: - Thanks a lot!

u.r.weclome,
no worries, rclone mount is a complex command and hard to see the need for --allow-other

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.