What is the problem you are having with rclone?
Before posting here on the forum, I researched a lot, I did several tests and even so I was thinking, if I post on the rclone forum, they will say that it has nothing to do with rclone, if I post on the Jellyfin forum, they will say that the problem It's from rclone, but I believe, based on the tests I did, that it's something in the OneDrive assembly.
I did the following, I mounted my OneDrive without any problems, then I created a crypt on top, so everything I play on my drive will be encrypted, I do this with gdrive and it works very well.
However, with OneDrive I'm experiencing a problem that I've never seen before, when I upload the container it shows a message saying that it's not possible to create that part, and a mkdir appears, I tested it without OneDrive, and only with it.
I read all the documentation here: Microsoft OneDrive and didn't find anything pertinent about this.
I will add some more pertinent information:
cat /etc/systemd/system/onedrive-crypt.service
[Unit]
Description=rClone Mount Encrypted OneDrive for Streaming
AssertPathIsDirectory=/home/jelly/aaa
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount \
--config=/home/jelly/.config/rclone/rclone.conf \
--vfs-cache-mode=full \
--vfs-cache-max-size=10G \
--vfs-cache-max-age=72h \
--dir-cache-time=96h \
--buffer-size=256M \
--poll-interval=10s \
--timeout=5s \
--umask=000 \
--log-file=/home/jelly/rclone_onedrive.log \
-vv\
onedrive-crypt:/ /home/jelly/aaa
ExecStop=/usr/bin/fusermount -u /home/jelly/aaa
Restart=on-failure
RestartSec=10
User=jelly
[Install]
WantedBy=multi-user.target
● onedrive-crypt.service - rClone Mount Encrypted OneDrive for Streaming
Loaded: loaded (/etc/systemd/system/onedrive-crypt.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2024-01-29 18:04:15 -03; 1min 52s ago
Main PID: 3022 (rclone)
Tasks: 10 (limit: 28661)
Memory: 34.1M
CPU: 251ms
CGroup: /system.slice/onedrive-crypt.service
└─3022 /usr/bin/rclone mount --config=/home/jelly/.config/rclone/rclone.conf --vfs-cache-mode=full --vfs-cache-max-size=10G --vfs -c>
Jan 29 18:04:15 jellyfin2 systemd[1]: Started rClone Mount Encrypted OneDrive for Streaming.
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-1049-oracle (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.6
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Personal OneDrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
The error when raising the coteiner:
docker compose up -d
[+] Running 0/1
⠹ Container jellyfin Starting 0.3s
Error response from daemon: error while creating mount source path '/home/jelly/aaa': mkdir /home/jelly/aaa: file exists
The line in my docker-compose.yml:
- /home/jelly/aaa:/aaa
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
rclone config redacted
[Tales]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =
[contos-crypt]
type = crypt
remote = stories:/
password = XXX
password2 = XXX
[mirabel]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =
[mirabel-crypt]
type = crypt
remote = mirabel:/
password = XXX
password2 = XXX
[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
[onedrive-crypt]
type = crypt
remote = onedrive:/
password = XXX
password2 = XXX
### 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
2024/01/29 18:04:15 DEBUG : rclone: Version "v1.65.2" starting with parameters ["/usr/bin/rclone" "mount" "--config=/home/jelly/.config/rclone/rclone.conf" "--vfs-cache-mode=full" "--vfs-cache-max-size=10G" "--vfs-cache-max-age=72h" "--dir-cache-time=96h" "--buffer-size=256M" "--poll-interval=10s" "--timeout=5s" "--umask=027" "--log-file=/home/jelly/rclone_onedrive.log" "-vv" "onedrive-crypt:/" "/home/jelly/aaa"]
2024/01/29 18:04:15 DEBUG : Creating backend with remote "onedrive-crypt:/"
2024/01/29 18:04:15 DEBUG : Using config file from "/home/jelly/.config/rclone/rclone.conf"
2024/01/29 18:04:16 DEBUG : Creating backend with remote "onedrive:/"
2024/01/29 18:04:16 DEBUG : fs cache: renaming cache item "onedrive:/" to be canonical "onedrive:"
2024/01/29 18:04:16 DEBUG : fs cache: switching user supplied name "onedrive:/" for canonical name "onedrive:"
2024/01/29 18:04:16 DEBUG : OneDrive root '': Next delta token is: aTE09NjM4NDIxNTYyMjU1MjA7SUQ9NkIxMDJGODgwRTFDN0YzMiE3NTc7TFI9NjM4NDIxNTkwNTY0OTM7RVA9MjA7U0k9NzY8RExFUD0wO1NHPTE7U089NjtQST0z
2024/01/29 18:04:16 DEBUG : vfs cache: root is "/home/jelly/.cache/rclone"
2024/01/29 18:04:16 DEBUG : vfs cache: data root is "/home/jelly/.cache/rclone/vfs/onedrive-crypt"
2024/01/29 18:04:16 DEBUG : vfs cache: metadata root is "/home/jelly/.cache/rclone/vfsMeta/onedrive-crypt"
2024/01/29 18:04:16 DEBUG : Creating backend with remote "/home/jelly/.cache/rclone/vfs/onedrive-crypt//"
2024/01/29 18:04:16 DEBUG : fs cache: renaming cache item "/home/jelly/.cache/rclone/vfs/onedrive-crypt//" to be canonical "/home/jelly/.cache/rclone/vfs/onedrive-crypt"
2024/01/29 18:04:16 DEBUG : Creating backend with remote "/home/jelly/.cache/rclone/vfsMeta/onedrive-crypt//"
2024/01/29 18:04:16 DEBUG : fs cache: renaming cache item "/home/jelly/.cache/rclone/vfsMeta/onedrive-crypt//" to be canonical "/home/jelly/.cache/rclone/vfsMeta/onedrive-crypt"
2024/01/29 18:04:16 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/01/29 18:04:16 DEBUG : Encrypted drive 'onedrive-crypt:/': Mounting on "/home/jelly/aaa"
2024/01/29 18:04:16 DEBUG : : Root:
2024/01/29 18:04:16 DEBUG : : >Root: node=/, err=<nil>
2024/01/29 18:04:26 DEBUG : OneDrive root '': Checking for changes on remote
2024/01/29 18:04:36 DEBUG : OneDrive root '': Checking for changes on remote
2024/01/29 18:04:46 DEBUG : OneDrive root '': Checking for changes on remote
2024/01/29 18:04:52 DEBUG : /: Attr:
2024/01/29 18:04:52 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-x---, err=<nil>