2023/12/06 17:29:57 DEBUG : rclone: Version "v1.65.0" starting with parameters ["./rclone" "mount" "OneDrive:" "/home/salvatore/OneDrive" "--allow-other" "-vv"]
2023/12/06 17:29:57 DEBUG : Creating backend with remote "OneDrive:"
2023/12/06 17:29:57 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
2023/12/06 17:29:57 Failed to create file system for "OneDrive:": didn't find section in config file
You run it as root but your config file is in your home folder. So run:
rclone mount --config /home/salvatore/.config/rclone/rclone.conf OneDrive: /home/salvatore/OneDrive --allow-other -vv
Note that last process does not stop and it will continue printing the last lines, but from file manager I can view the OneDrive storage and I can access files
2023/12/06 17:33:04 DEBUG : rclone: Version "v1.65.0" starting with parameters ["./rclone" "mount" "--config" "/home/salvatore/.config/rclone/rclone.conf" "OneDrive:" "/home/salvatore/OneDrive" "--allow-other" "-vv"]
2023/12/06 17:33:04 DEBUG : Creating backend with remote "OneDrive:"
2023/12/06 17:33:04 DEBUG : Using config file from "/home/salvatore/.config/rclone/rclone.conf"
2023/12/06 17:33:04 DEBUG : OneDrive root '': Next delta token is: NDslMjM0OyUyMzE7MzsyYTgxOGQ3Ni03OGU3LTQwMmItODA0MS1jNDYzYjU3M2VjNTQ7NjM4Mzc0NzcxODQ2ODAwMDAwOzQ2MjcxMTA2OTslMjM7JTIzOyUyMzA7JTIz
2023/12/06 17:33:04 NOTICE: OneDrive root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2023/12/06 17:33:04 DEBUG : OneDrive root '': Mounting on "/home/salvatore/OneDrive"
2023/12/06 17:33:04 DEBUG : : Root:
2023/12/06 17:33:04 DEBUG : : >Root: node=/, err=<nil>
2023/12/06 17:33:04 DEBUG : /: Lookup: name=".Trash"
2023/12/06 17:33:04 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2023/12/06 17:33:04 DEBUG : /: Attr:
2023/12/06 17:33:04 DEBUG : /: Lookup: name=".xdg-volume-info"
2023/12/06 17:33:04 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/12/06 17:33:04 DEBUG : /: Lookup: name="autorun.inf"
2023/12/06 17:33:04 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2023/12/06 17:33:04 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2023/12/06 17:33:04 DEBUG : /: Lookup: name=".Trash-1000"
2023/12/06 17:33:04 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2023/12/06 17:33:04 DEBUG : /: ReadDirAll:
2023/12/06 17:33:04 DEBUG : /: >ReadDirAll: item=11, err=<nil>
2023/12/06 17:33:04 DEBUG : /: Attr:
2023/12/06 17:33:04 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/12/06 17:33:04 DEBUG : /: ReadDirAll:
2023/12/06 17:33:04 DEBUG : /: >ReadDirAll: item=11, err=<nil>
2023/12/06 17:33:04 DEBUG : /: Attr:
2023/12/06 17:33:04 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2023/12/06 17:33:04 DEBUG : /: ReadDirAll:
2023/12/06 17:33:04 DEBUG : /: >ReadDirAll: item=11, err=<nil>
2023/12/06 17:33:04 DEBUG : /: Attr:
Very good! It looks as it is working fine.
stop it - this time just press ctrl-C
and start your mount service again:
sudo systemctl start NameOfYourService
Then run:
ls /home/salvatore/OneDrive
can you see content of your Onedrive?
yes, I can see the content
What is maybe happening is that when your service starts after computer reboot it starts too early - when there is no full network connection yet.
You can always restart it manually to rectify the problem:
sudo systemctl restart NameOfYourService
Other option is to modify your service and try to delay onedrive mount a bit:
[Unit]
Description=Rclone OneDrive Mount
After=network-online.target
[Service]
Type=simple
# sleep 30 seconds before mounting
ExecStartPre=sleep 30
ExecStart=/home/salvatore/rclone/rclone \
--config /home/salvatore/.config/rclone/rclone.conf \
mount OneDrive: /home/salvatore/OneDrive \
--vfs-cache-mode writes \
--allow-other
ExecStop=/bin/fusermount -u /home/salvatore/OneDrive
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target
Also added ExecStop
to properly unmount it when you stop it.
For the best experience I would also use full VFS caching mode e.g.:
--vfs-cache-mode full \
--vfs-cache-max-size 10G \
instead of --vfs-cache-mode writes \
you can experiment with it yourself
ok I've modified the service but it doesn't still work . I think now that it is a bug software of some application because when I try to open a file in libreoffice it works well, but when I try to upload a file from web browser, it doesn't work anymore
Not sure what it has to do with your mount....
But glad that the rest works.