URL upload to onedrive & use it as source for stream

that is correct, change it to the name of your remote onedrive:

I am using ubuntu on vm in oracle cloud. Everything was running fine until I logged out of oracle cloud account & closed my PUTTY ssh session with ubuntu vm.

I am able to see my onedrive media over jellyfin or emby.

But when I uploaded new media to my onedrive. It wasn't showing my newly added media.

And when I ran RCLONE CONFIG SHOW. I got below error. And when I manually navigate to directory rclone.config file is preseent.


ubuntu@ubuntu-281547:~$ rclone config show
2021/12/27 21:54:06 Failed to load config file "/home/ubuntu/.config/rclone/rclone.conf": open /home/ubuntu/.config/rclone/rclone.conf: permission denied
ubuntu@ubuntu-281547:~$

if you log out of the ssh session, that will kill the rclone mount
one workaround, run rclone mount with --daemon

permission denied - that is a filesystem permission issue.
the user you run rclone has does not permission to read from rclone.conf

This is below RCLONE MOUNT SERVICE code :-


[Unit]
Description= RClone Mount Service
After=network-online.target

[Service]
Type=notify
ExecStart=/usr/bin/rclone mount \
--config=/home/ubuntu/.config/rclone/rclone.conf \
--user-agent=rajeshsahoo \
--allow-other \
--timeout=1h \
--poll-interval=15s \
--dir-cache-time=1000h \
--cache-dir=/mnt/rclone/cache/omedia \
--vfs-cache-mode=full \
--vfs-cache-max-size=20G \
--vfs-cache-max-age=12h \
onedrive: /mnt/cloud
ExecStop=/bin/fusermount -uz /mnt/cloud
Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target


Do I need to add in this..?

you can run rclone mount any way you choose.

I have added to this line --daemon flag.

*ExecStart=/usr/bin/rclone mount --daemon *

Is it correct..??


[Unit]
Description= RClone Mount Service
After=network-online.target

[Service]
Type=notify
**ExecStart=/usr/bin/rclone mount --daemon \**
--config=/home/ubuntu/.config/rclone/rclone.conf \
--user-agent=rajeshsahoo \
--allow-other \
--timeout=1h \
--poll-interval=15s \
--dir-cache-time=1000h \
--cache-dir=/mnt/rclone/cache/omedia \
--vfs-cache-mode=full \
--vfs-cache-max-size=20G \
--vfs-cache-max-age=12h \
onedrive: /mnt/cloud
ExecStop=/bin/fusermount -uz /mnt/cloud
Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

--daemon is not needed for systemd, but try it and see what happens.

onedrive is not a polling remote, so you can remove
--poll-interval=15s

Then where to add that --daemon flag into my rclone mount service..?

When running non-sudo su privilege :-

ubuntu@ubuntu-281547:~$ rclone config
2021/12/27 22:39:24 Failed to load config file "/home/ubuntu/.config/rclone/rclone.conf": open /home/ubuntu/.config/rclone/rclone.conf: permission denied

When running sudo su privilege :-

ubuntu@ubuntu-281547:~$ sudo su
root@ubuntu-281547:/home/ubuntu# rclone config
Current remotes:

Name                 Type
====                 ====
onedrive             onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

How to fix this...?

what is the output of
ls -al /home/ubuntu/.config/rclone

ubuntu@ubuntu-281547:~$ ls -al /home/ubuntu/.config/rclone
total 12
drwxrwxr-x 2 ubuntu ubuntu 4096 Dec 27 21:51 .
drwxrwxr-x 3 ubuntu ubuntu 4096 Dec 27 19:50 ..
-rw------- 1 root   ubuntu 3571 Dec 27 21:34 rclone.conf

at some point, you ran rclone config as root, so the owner of rclone.conf is root.

i am not a linux expert but i think you need to change the owner of rclone.conf from root to ubuntu

Yeah I was trying to run ubuntu user it was permission denied. So, then I ran in root. That is why it is showing in root profile.

Can't I ran that permanently in root user..?

if you want to run as root, then run as root, really that is up to you to decide.

imho, i would not run rclone as root.

Okay I won't run as root. What I will be do now as it is giving me permission denied though config file is available at location. But due to SSH session close the problem arose.

So, now am planning to deploy new vm instance on oracle cloud.

Just please tell me where to add, I mean which line do I add --daemon flag to run in background if I close the SSH session. It will be running.

[Unit]
Description= RClone Mount Service
After=network-online.target

[Service]
Type=notify

ExecStart=/usr/bin/rclone mount \ (In This Line)

--config=/home/ubuntu/.config/rclone/rclone.conf \
--user-agent=rajeshsahoo \
--allow-other \
--timeout=1h \
--dir-cache-time=1000h \
--cache-dir=/mnt/rclone/cache/omedia \
--vfs-cache-mode=full \
--vfs-cache-max-size=20G \
--vfs-cache-max-age=12h \

onedrive: /mnt/cloud (In This Line)
ExecStop=/bin/fusermount -uz /mnt/cloud (In This Line)

Restart=on-abort
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3

[Install]
WantedBy=multi-user.target

no need to deploy yet another vm, just delete the rclone.conf file, run rclone config as user ubuntu

if you are using systemd, no need to --daemon.

--daemon is used when starting rclone mount from the command line or simple script, so that when you disconnect from ssh, the rclone mount will continue to run in the background.

Yes I have copied rclone service mount file to etc/systemd/system and enabled, started.

But ssh connection closing is creating problems.

so at this point, do you have another rclone question?

When I use rclone copy operation on vm instance. I get this. I know the error says nothing to transfer.

But what I am doing here wrong...


ubuntu@ubuntu:~$ rclone copy ":http,url='https://cdn1.jv-cdn.workers.dev/0:/Downloads/www.TamilBlasters.party%20-%20Vanam%20%282021%29%20%5BTamil%20-%201080p%20HD%20AVC%20-%20UNTOUCHED%20-%20x264%20-%20DD5.1%20%28320%20Kbps%29%20-%203.1GB%5D.mkv':Vanam (2021).mkv" onedrive: -v
2022/01/01 19:00:25 INFO  : There was nothing to transfer
2022/01/01 19:00:25 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Elapsed time:         1.6s


are you use there are files in the source?