Hi all
As discussed, I began entering the flags in CLI one at a time, please see below'
root@SharmaServer:~# /usr/bin/rclone mount --config=/root/.config/rclone/rclone.conf GoogleDrive: /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud --user-agent=root --umask=022 --gid=0 --uid=0 --allow-other --timeout=1h --poll-interval=15s --dir-cache-time=1000h --cache-dir=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache --vfs-cache-mode=full --vfs-cache-max-size=350G --vfs-cache-max-age=24h -vvv
2022/01/07 20:56:38 DEBUG : rclone: Version "v1.57.0" starting with parameters ["/usr/bin/rclone" "mount" "--config=/root/.config/rclone/rclone.conf" "GoogleDrive:" "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud" "--user-agent=root" "--umask=022" "--gid=0" "--uid=0" "--allow-other" "--timeout=1h" "--poll-interval=15s" "--dir-cache-time=1000h" "--cache-dir=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache" "--vfs-cache-mode=full" "--vfs-cache-max-size=350G" "--vfs-cache-max-age=24h" "-vvv"]
2022/01/07 20:56:38 DEBUG : Creating backend with remote "GoogleDrive:"
2022/01/07 20:56:38 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/01/07 20:56:38 DEBUG : vfs cache: root is "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache"
2022/01/07 20:56:38 DEBUG : vfs cache: data root is "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfs/GoogleDrive"
2022/01/07 20:56:38 DEBUG : vfs cache: metadata root is "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfsMeta/GoogleDrive"
2022/01/07 20:56:38 DEBUG : Creating backend with remote "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfs/GoogleDrive/"
2022/01/07 20:56:38 DEBUG : Creating backend with remote "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfsMeta/GoogleDrive/"
2022/01/07 20:56:38 DEBUG : Google drive root '': Mounting on "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud"
2022/01/07 20:56:38 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/01/07 20:56:38 DEBUG : : Root:
2022/01/07 20:56:38 DEBUG : : >Root: node=/, err=<nil>
^C2022/01/07 20:56:42 INFO : Signal received: interrupt
2022/01/07 20:56:42 DEBUG : vfs cache: cleaner exiting
2022/01/07 20:56:42 ERROR : /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud: Unmounted rclone mount
2022/01/07 20:56:42 INFO : Exiting...
This all seems fine
I then add the LOG flags and hit ENTER;
root@SharmaServer:~# /usr/bin/rclone mount --config=/root/.config/rclone/rclone.conf GoogleDrive: /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud --user-agent=root --umask=022 --gid=0 --uid=0 --allow-other --timeout=1h --poll-interval=15s --dir-cache-time=1000h --cache-dir=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache --vfs-cache-mode=full --vfs-cache-max-size=350G --vfs-cache-max-age=24h --log-level=INFO --log-file=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log -vvv
root@SharmaServer:~#
As you can see, it simply puts me on another line and does not show the typical mounting steps seen in with the other flags, even though the -vvv flag is included
Could it possibly be that my LOG folder is on a separate partition to the MEDIA folder?
I will attempt to create this LOG folder on the same partition as MEDIA and report back.
Many Thanks,
I've never used OMV5 but if I paste that line into my console and hit enter, I get an expected error.
There should be some output printed out and not a blank return back.
felix@gemini:~$ /usr/bin/rclone mount --config=/root/.config/rclone/rclone.conf GoogleDrive: /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud --user-agent=root --umask=022 --gid=0 --uid=0 --allow-other --timeout=1h --poll-interval=15s --dir-cache-time=1000h --cache-dir=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache --vfs-cache-mode=full --vfs-cache-max-size=350G --vfs-cache-max-age=24h --log-level=INFO --log-file=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log -vvv
2022/01/07 16:02:49 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/01/07 16:02:49 Failed to open log file: open /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log: no such file or directory
Maybe ask on the OMV forums might be beneficial as that's a unique setup you have going on.
Hi,
I believe you must use MKDIR to create the folder first
Would it still present an error if you did this?
Is a LOG file really necessary? Could I exclude it from my rclone.service and still expect it to run correctly?
Many Thanks,
Thanks as I know what the error means and how to correct it. My point was that the command should return something and not a blank line.
That's really a you question to answer as I want a log file but my use case is different from yours and you'd have to decide that.
Not being able to pass a parameter is strange to me as it should work but your entire setup is foreign to me as I've not seen much like it before so I doubt anyone could assure you of something working or not working when a basic flag fails to function.
You'd have to test and find out.
Sure, didn't mean to patronise you, just thinking out loud
I will do, thanks again
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 9:38pm
26
if you think the log file flags are the problem, test using a simple command.
rclone version --log-level=DEBUG --log-file=rclone.log
Hi
This was the output
root@SharmaServer:~/.config/rclone# rclone version --log-level=DEBUG --log-file=rclone.log
rclone v1.57.0
- os/version: debian 10.11 (64 bit)
- os/kernel: 5.10.0-0.bpo.9-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: static
- go/tags: none
Does all that look OK?
Thanks
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 9:45pm
28
yes, but you have to read the contents of rclone.log
cat rclone.log
2022/01/07 21:44:13 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "version" "--log-level=DEBUG" "--log-file=rclone.log"]
2022/01/07 21:44:14 DEBUG : rclone: Version "v1.57.0" finishing with parameters ["rclone" "version" "--log-level=DEBUG" "--log-file=rclone.log"]
I am assuming this means the LOG is empty so all good?
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 9:47pm
30
yes, that is the expected output.
moving on, what is the next problem?
I think I will change some things in the rclone.service file and report back if I solve it.
I have just tried starting rclone.service with the LOG flags removed but this still gave me the same error as earlier
Many Thanks for your continued help
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 9:50pm
32
ok, i think i found the problem.
cannot use --log-level
and -vvv
.
did you ever take a look at
/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log
for example, this command,
rclone version --log-level=DEBUG -vv --log-file=rclone.log
creates rclone.log
which contains
2022/01/07 16:59:12 Can't set -v and --log-level
and there would not be any output on the command line, just output in the log file.
1 Like
Hi
You're right, I've just had a look in that LOG and get these records;
2022/01/07 22:26:47 Can't set -v and --log-level
2022/01/07 22:26:49 Can't set -v and --log-level
2022/01/07 22:26:51 Can't set -v and --log-level
So if I run the rclone.service file in CLI but exclude the --vvv flag it should mount correctly?
root@SharmaServer:~# /usr/bin/rclone mount --config=/root/.config/rclone/rclone.conf GoogleDrive: /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud --user-agent=root --umask=022 --gid=0 --uid=0 --allow-other --timeout=1h --poll-interval=15s --dir-cache-time=1000h --cache-dir=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache --vfs-cache-mode=full --vfs-cache-max-size=350G --vfs-cache-max-age=24h --log-level=INFO --log-file=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log
I have tried running this in CLI but it puts me on a new line with no output or ability to input text, would this mean it is working correctly? So I would simply need to add --daemon and have it run in the background? I believe it is now running as opening the LOG gives me;
2022/01/07 22:30:03 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 10:36pm
34
get it all working 100% on the command line first, then worry about the service file.
for testing, write a simple .sh script
delete the log file
run the rclone mount
use --log-level=DEBUG
Is there any chance you could help me with writing this script if it won't take too long? I am quite new to Linux
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 11:03pm
36
something simple like this,
#!/bin/bash
rm /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log
/usr/bin/rclone mount --config=/root/.config/rclone/rclone.conf GoogleDrive: /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud --user-agent=root --umask=022 --gid=0 --uid=0 --allow-other --timeout=1h --poll-interval=15s --dir-cache-time=1000h --cache-dir=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache --vfs-cache-mode=full --vfs-cache-max-size=350G --vfs-cache-max-age=24h --log-level=DEBUG --log-file=/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Config/rclone/logs/rclone-mount.log
1 Like
Many Thanks
I unmounted the drive
I created the script and ran it using ./
I then CTRL+C out of the mount and opened the LOG file;
2022/01/07 23:15:33 DEBUG : Creating backend with remote "GoogleDrive:"
2022/01/07 23:15:33 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/01/07 23:15:33 DEBUG : vfs cache: root is "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache"
2022/01/07 23:15:33 DEBUG : vfs cache: data root is "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfs/GoogleDrive"
2022/01/07 23:15:33 DEBUG : vfs cache: metadata root is "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfsMeta/GoogleDrive"
2022/01/07 23:15:33 DEBUG : Creating backend with remote "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfs/GoogleDrive/"
2022/01/07 23:15:33 DEBUG : Creating backend with remote "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cache/vfsMeta/GoogleDrive/"
2022/01/07 23:15:33 DEBUG : Google drive root '': Mounting on "/srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud"
2022/01/07 23:15:33 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2022/01/07 23:15:33 DEBUG : : Root:
2022/01/07 23:15:33 DEBUG : : >Root: node=/, err=<nil>
2022/01/07 23:15:40 INFO : Signal received: interrupt
2022/01/07 23:15:40 DEBUG : vfs cache: cleaner exiting
2022/01/07 23:15:40 ERROR : /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud: Unmounted rclone mount
2022/01/07 23:15:40 INFO : Exiting...
This looks like its working?
asdffdsa
(jojothehumanmonkey)
January 7, 2022, 11:20pm
38
well, start the mount and
ls /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud
asdffdsa:
start the mount
I went back in and edited my script to include --daemon which I believe is the correct way to allow the mount to continue running in the background
I then did the following and it seems that the folders are correctly listed;
root@SharmaServer:~# nano script.sh
root@SharmaServer:~# ./script.sh
root@SharmaServer:~# ls /srv/dev-disk-by-uuid-75515cfa-c4d1-4b0b-913e-d1134b531988/Media/rclone/cloud
Movies 'TV Shows'