OpenDrive mount help

What is the problem you are having with rclone?

Hi,

Using OpenDrive, I forgot to include username:pwd in the mount command. It worked out of the box for a few days before I got stuck and see in the logs the session has expired.

I found this topic: OpenDrive RClone mount stops working every few days - #5 by Galilman
I went back to the rClone WiKi and saw I forgot the --opendrive-username & --opendrive-password. Still, trying to use it, I'm told mail:pwd are wrong, my IP get banned on OpenDrive. They unbanned it on yesterday, tried this morning, same.

What do I miss?
Please don't tell me I 'm copying username or password wrong. Do I need to add " " to the mount options?

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

rclone v1.64.0-beta.7299.11eeaaf79
- os/version: slackware 15.0+ (64 bit)
- os/kernel: 6.1.38-Unraid (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.0
- go/linking: static
- go/tags: none

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

OpenDrive
Username and password are in this form: mail@domain.tld / KhchhTVaUPjfaXTs7Aoz2FrQiwHj77kd

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

rclone mount OpenDrive1Crypt: /mnt/rclonetemp/OpenDrive1Crypt \
--config=/mnt/user/docs/rclone.conf \
--log-file=/mnt/user/docs/mountopendrive.log \
--opendrive-username=mail@domain.tld \
--opendrive-password=xxx \
--log-level=DEBUG \
--allow-other \
--allow-non-empty \
--dir-cache-time 24h \
--cache-dir=/mnt/rclonetemp \
--vfs-cache-mode full \
--vfs-cache-max-size 50G \
--umask 002 \
--user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" \
--buffer-size 1G \
--drive-chunk-size 128M \
--timeout 1h \
--vfs-read-chunk-size 128M \
--vfs-read-chunk-size-limit 1G \
--vfs-read-ahead 1G

The rclone config contents with secrets removed.

[OpenDrive1]
type = opendrive
username = mail@domain.tld
password = xxx

[OpenDrive1Crypt]
type = crypt
remote = OpenDrive1:
password = xxx
password2 = xxx

A log from the command with the -vv flag

2023/09/01 06:41:03 DEBUG : rclone: Version "v1.64.0-beta.7299.11eeaaf79" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "mount" "OpenDrive1Crypt:" "/mnt/rclonetemp/OpenDrive1Crypt" "--config=/mnt/user/docs/rclone.conf" "--log-file=/mnt/user/docs/mountopendrive.log" "--opendrive-username=mail@domain.tld" "--opendrive-password=xxx" "--log-level=DEBUG" "--allow-other" "--allow-non-empty" "--dir-cache-time" "24h" "--cache-dir=/mnt/rclonetemp" "--vfs-cache-mode" "full" "--vfs-cache-max-size" "50G" "--umask" "002" "--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" "--buffer-size" "1G" "--drive-chunk-size" "128M" "--timeout" "1h" "--vfs-read-chunk-size" "128M" "--vfs-read-chunk-size-limit" "1G" "--vfs-read-ahead" "1G"]
2023/09/01 06:41:03 DEBUG : Creating backend with remote "OpenDrive1Crypt:"
2023/09/01 06:41:03 DEBUG : Using config file from "/mnt/user/docs/rclone.conf"
2023/09/01 06:41:03 DEBUG : Creating backend with remote "OpenDrive1:"
2023/09/01 06:41:03 DEBUG : OpenDrive1: detected overridden config - adding "{B6aGm}" suffix to name
2023/09/01 06:41:03 DEBUG : pacer: low level retry 1/10 (error Invalid  email or password (Error 401))
2023/09/01 06:41:03 DEBUG : pacer: Rate limited, increasing sleep to 20ms
2023/09/01 06:41:04 DEBUG : pacer: low level retry 2/10 (error Invalid  email or password (Error 401))
2023/09/01 06:41:04 DEBUG : pacer: Rate limited, increasing sleep to 40ms
2023/09/01 06:41:04 DEBUG : pacer: low level retry 3/10 (error Invalid  email or password (Error 401))
2023/09/01 06:41:04 DEBUG : pacer: Rate limited, increasing sleep to 80ms
2023/09/01 06:41:04 DEBUG : pacer: low level retry 4/10 (error Invalid  email or password (Error 401))
2023/09/01 06:41:04 DEBUG : pacer: Rate limited, increasing sleep to 160ms
2023/09/01 06:41:04 DEBUG : pacer: low level retry 5/10 (error Invalid  email or password (Error 401))
2023/09/01 06:41:04 DEBUG : pacer: Rate limited, increasing sleep to 320ms
2023/09/01 06:41:04 DEBUG : pacer: low level retry 6/10 (error Invalid  email or password (Error 401))
2023/09/01 06:41:04 DEBUG : pacer: Rate limited, increasing sleep to 640ms
2023/09/01 06:41:04 DEBUG : pacer: Reducing sleep to 320ms
2023/09/01 06:41:04 Failed to create file system for "OpenDrive1Crypt:": failed to make remote "OpenDrive1:" to wrap: failed to create session: Your current IP address is blacklisted. Please login through OpenDrive website using valid credentials and the IP address will be excluded from the blacklist. (Error 403)

can you run:

rclone lsd OpenDrive1: -vv

and post output here?

root@HomeBox:~# rclone --config=/mnt/user/docs/rclone.conf lsd OpenDrive1: -vv
2023/09/02 06:44:33 DEBUG : rclone: Version "v1.64.0-beta.7299.11eeaaf79" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "--config=/mnt/user/docs/rclone.conf" "lsd" "OpenDrive1:" "-vv"]
2023/09/02 06:44:33 DEBUG : Creating backend with remote "OpenDrive1:"
2023/09/02 06:44:33 DEBUG : Using config file from "/mnt/user/docs/rclone.conf"
2023/09/02 06:44:34 DEBUG : Starting OpenDrive session with ID: a953e[...]9d34
          -1 2023-08-29 10:47:41         1 1srslsq5k[...]kb4u2g
          -1 2023-09-01 11:42:33         2 8vgc[...]51fs
          -1 2023-08-18 08:27:17         1 pfh9[...]0ga0
2023/09/02 06:44:34 DEBUG : 6 go routines active

So your config is OK and you can access OpenDrive remote.

Re. mount - I do not think you need --opendrive-username & --opendrive-password. Not sure where you have such info from.

And it looks for me that mount session expiration is expected unfortunately.

OpenDrive OAuth support is still waiting for somebody to implement it:

1 Like

rclone passwords need to be obscured.
rclone config does that for you.

might try the one of these:
--- get the password from the config file and use that with --opendrive-password
--- opendrive-password=$(rclone obscure mail:pwd)

Well done @asdffdsa I needed to use the encrypted pwd from the config file.
Thanks @kapitainsky for your kind help.

Still got a few errors but it's mounted again. Hope the session will renew itself using the rClone flags.

root@HomeBox:/mnt/user/docs# tail -n 40 mountopendrive.log
2023/09/03 06:43:45 INFO  : Encrypted drive 'OpenDrive1Crypt:': poll-interval is not supported by this remote
2023/09/03 06:43:45 DEBUG : vfs cache: root is "/mnt/rclonetemp"
2023/09/03 06:43:45 DEBUG : vfs cache: data root is "/mnt/rclonetemp/vfs/OpenDrive1Crypt"
2023/09/03 06:43:45 DEBUG : vfs cache: metadata root is "/mnt/rclonetemp/vfsMeta/OpenDrive1Crypt"
2023/09/03 06:43:45 DEBUG : Creating backend with remote "/mnt/rclonetemp/vfs/OpenDrive1Crypt/"
2023/09/03 06:43:45 DEBUG : fs cache: renaming cache item "/mnt/rclonetemp/vfs/OpenDrive1Crypt/" to be canonical "/mnt/rclonetemp/vfs/OpenDrive1Crypt"
2023/09/03 06:43:45 DEBUG : Creating backend with remote "/mnt/rclonetemp/vfsMeta/OpenDrive1Crypt/"
2023/09/03 06:43:45 DEBUG : fs cache: renaming cache item "/mnt/rclonetemp/vfsMeta/OpenDrive1Crypt/" to be canonical "/mnt/rclonetemp/vfsMeta/OpenDrive1Crypt"
2023/09/03 06:43:45 DEBUG : Encrypted drive 'OpenDrive1Crypt:': Mounting on "/mnt/rclonetemp/OpenDrive1Crypt"
2023/09/03 06:43:45 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/09/03 06:43:45 DEBUG : : Root:
2023/09/03 06:43:45 DEBUG : : >Root: node=/, err=<nil>
2023/09/03 06:43:45 DEBUG : /: Attr:
2023/09/03 06:43:45 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:46 DEBUG : /: Attr:
2023/09/03 06:43:46 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:47 DEBUG : /: Attr:
2023/09/03 06:43:47 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:49 DEBUG : /: Attr:
2023/09/03 06:43:49 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:50 DEBUG : /: Attr:
2023/09/03 06:43:50 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:51 DEBUG : /: Attr:
2023/09/03 06:43:51 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:52 DEBUG : /: Attr:
2023/09/03 06:43:52 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:53 DEBUG : /: Attr:
2023/09/03 06:43:53 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:54 DEBUG : /: Attr:
2023/09/03 06:43:54 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:55 DEBUG : /: Attr:
2023/09/03 06:43:55 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:56 DEBUG : /: Attr:
2023/09/03 06:43:56 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:57 DEBUG : /: Attr:
2023/09/03 06:43:57 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:58 DEBUG : /: Attr:
2023/09/03 06:43:58 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/03 06:43:59 DEBUG : /: Attr:
2023/09/03 06:43:59 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>

Reopening this thread as my session went out and it seems it didn't reconnect despite my configs.

Here are the rClone logs:

2023/09/05 04:28:31 DEBUG : pacer: low level retry 5/10 (error Session does not exist, please re-login. (Error 401))
2023/09/05 04:28:59 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/09/05 04:29:59 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/09/05 04:30:59 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/09/05 04:31:59 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/09/05 04:32:59 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/09/05 04:33:31 DEBUG : pacer: low level retry 6/10 (error Session does not exist, please re-login. (Error 401))
[...]
2023/09/05 04:38:31 DEBUG : pacer: low level retry 7/10 (error Session does not exist, please re-login. (Error 401))
[...]
2023/09/05 04:43:31 DEBUG : pacer: low level retry 8/10 (error Session does not exist, please re-login. (Error 401))
[...]
2023/09/05 04:48:31 DEBUG : pacer: low level retry 9/10 (error Session does not exist, please re-login. (Error 401))
[...]
2023/09/05 04:53:31 DEBUG : pacer: low level retry 10/10 (error Session does not exist, please re-login. (Error 401))
2023/09/05 04:53:31 ERROR : /: Dir.Stat error: failed to get folder list: Session does not exist, please re-login. (Error 401)
2023/09/05 04:53:31 ERROR : IO error: failed to get folder list: Session does not exist, please re-login. (Error 401)
2023/09/
05 04:53:31 DEBUG : /: >Lookup: node=<nil>, err=failed to get folder list: Session does not exist, please re-login. (Error 401)
2023/09/05 04:53:31 DEBUG : /: Attr:
2023/09/05 04:53:31 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2023/09/05 04:53:31 DEBUG : /: Lookup: name="PreFilms"
2023/09/05 04:53:31 DEBUG : : Re-reading directory (46h5m30.078248133s old)
[...]
2023/09/05 04:58:31 DEBUG : pacer: low level retry 1/10 (error Session does not exist, please re-login. (Error 401))
[...]

yes, that seems to be the expected behavior.

opendrive supports webdav, might try to test that.


--drive-chunk-size should be --opendrive-chunk-size

1 Like

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