super-embed:
<p class="callout warning">This guide is for advanced users only. [Ultra.cc](<http://ultra.cc/>) is not responsible for any data loss or application errors due to this setup. We do not provide official support for Rclone or MergerFS. You may visit our #community-support channel on our <a href="[<https://discord.ultra.cc>](<https://discord.ultra.cc/>)">Discord server</a> for assistance.
</p>
Rclone is a powerful tool that allows you to create virtual drives or mount points. The following help in this section will assume that you have installed your Rclone with the help of our documentation and guidelines.
While it is an excellent tool, it is not very reliable. It should never be used to write data directly to your cloud services with our applications. Use MergerFS for that purpose. It is also essential that those who utilize them will know how to troubleshoot them when needed. Click here to go to our Rclone setup guide.
Please do not mount to any of the default directories as shown below. Doing so will lead to instability issues affecting the whole server.
filesdownloadsmediabin.apps.configwww/home/username/Due to these variables involved, official support for rclone or applications utilizing these applications will not be provided.
This may be due to the following reasons:
Stuff, Stuff/Mount, Stuff/Local (if using MergerFS Setup), and scripts.~/bin/rclone version return in SSH?
No such file/directory, this means you have not downloaded rclone.~/bin/rclone listremotes. Is the remote name the same as the one in the first configuration line? For example, it should return gdrive such asExecStart=/homexx/yyyyy/bin/rclone mount **gdrive**: /homexx/yyyyy/Stuff/Mount \\\\
Following the advice above, you should find the issue, and when you have, do not forget to execute systemctl --user daemon-reload before trying to enable it again.
ls: cannot access 'SomeDirectory': Transport endpoint is not connected
This means the rclone process/mount is dead, but the mount is still fused. If you’re using systemd following our guide, please stop your mount using systemctl:
systemctl --user stop rclone-vfs
systemctl --user stop mergerfs
mount | grep $USER
fusermount -zu /path/to/SomeDirectory
killall rclone
How do I restart my Rclone cloud or MergerFS mount?
app-[name] stop).systemctl --user stop rclone-vfs and systemctl --user stop mergerfs if using mergerfsfusermount -uq /path/to/mount and fusermount -uq /path/to/mergerfs if using mergerfssystemctl --user start rclone-vfs and systemctl --user start mergerfs if running mergerfsls -la to verify we are connected. If using mergerfs, check the mergerfs folder too.app-[name] start. (replace [name] with app name, app-plex start.)I use Rclone or a cloud mount, and my XYZ application is not working or is slow. Why is that?
As stated, you should not use Rclone or cloud mount directly with applications that will attempt to write directly to it. It would be best if you used MergerFS for that. Please check our resource for MergerFS here.
There may be many things that can cause rclone/mounting to not work correctly, something as simple as a mistype; if you find yourself stuck, it is possible to add debug logging to your rclone systemd file. The steps to do so will be listed below:
systemctl --user stop rclone-vfs
systemctl --user stop mergerfs
mount | grep $USER
fusermount -zu /path/to/YourMount
killall rclone
Example:
[Unit]
Description=RClone VFS Service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
KillMode=none
Environment=GOMAXPROCS=2
ExecStart=%h/bin/rclone mount remote: %h/Mount \\\\
--config %h/.config/rclone/rclone.conf \\\\
--use-mmap \\\\
--dir-cache-time 1000h \\\\
--poll-interval=15s \\\\
--vfs-cache-mode writes \\\\
--log-level DEBUG --log-file "%h/scripts/rclone-debug.log" \\\\
--tpslimit 10
StandardOutput=file:%h/scripts/rclone_vfs_mount.log
ExecStop=/bin/fusermount -uz %h/Mount
Restart=on-failure
[Install]
WantedBy=default.target
This edit will work for each Rclone systemd file, please be sure to edit your log output path accordingly to match your home and user paths.
systemctl --user daemon-reload
systemctl --user start rclone-vfs
systemctl --user start mergerfs (only if you use MergerFS)
tail -n 15 ~/scripts/rclone-debug.log
This will show you the output of the log and refresh its output every 15 seconds. You can change the -n 15 value if you wish to make it more frequent.
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server