Not able to setup mount on some Linux distros

What is the problem you are having with rclone?

Hello, I'm trying to mount a ftp site (locally hosted) to contain screenshots from Xbian Kodi RaspPi using a cronjob.

This is the content of the crontab:

@reboot sleep 15 ; modprobe fuse
@reboot sleep 15 ; rclone mount --daemon multimedia:/multimedia-001 /home/xbian/screenshots

(I add the "sleep 15" in case if the issue was caused because the network wasn't available, but it change nothing).

When I launch those two above commands, I can mount the ftp site, but I'm not able to get it mounted automatically at boot.

I'd tries the above cronjob as root, everything as xbian using crontab -e -u xbian , the modprobe fuse as root and the second part as xbian, nothing seem to work.

What is your rclone version (output from rclone version)

There are the software version:

rclone v1.52.1

  • os/arch: linux/arm
  • go version: go1.14.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

The OS used is Xbian (Debian 10 "Buster")

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

I try to mount at boot a local FTP site.

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

Those are the command that I'd use (in terminal but, not in a crontab file).

modprobe fuse
rclone mount --daemon multimedia:/multimedia-001 /home/xbian/screenshots

The rclone config contents with secrets removed.

[multimedia]
type = ftp
host = 192.168.2.3
user = multimedia
port = 21
pass = 

A log from the command with the -vv flag

rclone mount -vv -- multimedia:/multimedia-001 /home/xbian/screenshots
2020/08/29 16:58:31 DEBUG : rclone: Version "v1.52.1" starting with parameters ["rclone" "mount" "-vv" "--daemon" "multimedia:/multimedia-001" "/home/xbian/screenshots"]
2020/08/29 16:58:31 DEBUG : Using config file from "/home/xbian/.config/rclone/rclone.conf"
2020/08/29 16:58:31 DEBUG : ftp://192.168.2.3:21/multimedia-001: Connecting to FTP server
2020/08/29 16:58:31 DEBUG : ftp://192.168.2.3:21/multimedia-001: Mounting on "/home/xbian/screenshots"
2020/08/29 16:58:31 INFO  : ftp://192.168.2.3:21/multimedia-001: poll-interval is not supported by this remote
2020/08/29 16:58:31 DEBUG : Adding path "vfs/forget" to remote control registry
2020/08/29 16:58:31 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/08/29 16:58:31 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/08/29 16:58:31 DEBUG : : Root: 
2020/08/29 16:58:31 DEBUG : : >Root: node=/, err=<nil>

The ftp site is now mounted but manually. How to get it mounted a each boot?
Additionally, I'd tested it with Linux Mint 20 and it work just fine.

Thanks,

Guillaume

hello and welcome to the forum,

i am not a linux expert but if you search the forum for crontab and systemd, i think you will find many
solutions.

and it cannot hurt to update rclone to latest stable, v1.52.3
https://rclone.org/install/#script-installation

rClone Scheduling

https://github.com/rclone/rclone/wiki/rclone-mount-helper-script

https://github.com/rclone/rclone/wiki/Systemd-rclone-mount

Good morn,

I read at the links but I don't understand what to do. I don't know scripts well enough to be able to know where to go.
I'd also update rclone to 1.52.3 :stuck_out_tongue:

On Linux, you'd want to use service files and systemd and here are a few examples:

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