tldr;
I tried using unison
to sync local directories very recently but that didn’t work well for me since it was just too resource intensive. Finally I hatched a plan that I hoped might work but when I went to implement it I ran into errors (seemingly related to unison
) and I don’t know where it’s coming from. I removed all its files - and it itself (unison
) and reloaded the systemctl daemon, probably rebooted. Now when I try to start a service file to ran an rclone
mount it fails. I recognize part of the path (the first part) as being a directory I used unison
with before I removed it. I really need to clean this crap out of here so I can get a fresh start.
Output From systemctl --user status mega-storage-root-mount
~$ systemctl --user status mega-storage-root-mount
● mega-storage-root-mount.service - Rclone Mount for Mega Root Filesystem
Loaded: loaded (/home/jake/.config/systemd/user/mega-storage-root-mount.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-02-24 23:49:38 PST; 18s ago
Main PID: 11376 (rclone)
Tasks: 17 (limit: 18812)
Memory: 203.5M (peak: 205.1M)
CPU: 864ms
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/mega-storage-root-mount.service
└─11376 rclone mount MEGA:/ /home/jake/MEGA --allow-other --vfs-cache-mode writes
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-plantuml/manifest.json: vfs cache: failed to r>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-plantuml/styles.css: vfs cache: failed to relo>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/data.json: vfs cache: failed to>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/main.js: vfs cache: failed to r>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/manifest.json: vfs cache: faile>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/styles.css: vfs cache: failed t>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/data.json: vfs cache: failed to r>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/main.js: vfs cache: failed to rel>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/manifest.json: vfs cache: failed >
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/styles.css: vfs cache: failed to >
What I’m trying to implement
I was looking for a solution to work with a remote filesystem (MEGA cloud storage) so I can work locally or through the web interface and things will stay in sync. After looking into a few different possibilities it occurred to me that mounting a remote file system (or directory in that file system) allows you to work on it locally or through the web interface and everything stays up to sync. So my brilliant idea was to let any directories I want to work with live in the remote filesystem and then mount them - that way I should be able to work with it the way I want. With that approach I though I could just use rclone
to do everything and be set. I was trying to try my plan out when I saw the errors seemingly related to unison
(which I used before this).
The Implementation
You can see the implementation notes I’m following here
- I was able to verify the
rclone
config and the connection to the remote usingrclone mount MEGA:/ /home/jake/MEGA --allow-other --vfs-cache-mode writes
- I created the first service file with the following contents
[Unit]
Description=Rclone Mount for Mega Root Filesystem
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=rclone mount MEGA:/ /home/jake/MEGA \
--allow-other \
--vfs-cache-mode writes
ExecStop=/bin/fusermount -u /home/jake/MEGA
Restart=on-failure
RestartSec=10
[Install]
WantedBy=default.target
- Reloaded the systemctl daemon, enabled the service, started the service, checked the status of the service - with the following commands
systemctl --user daemon-reload
systemctl --user enable mega-storage-root-mount
systemctl --user start mega-storage-root-mount
systemctl --user status mega-storage-root-mount
And that’s when I ran into the errors shown at that top of this post.
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-plantuml/manifest.json: vfs cache: failed to r>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-plantuml/styles.css: vfs cache: failed to relo>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/data.json: vfs cache: failed to>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/main.js: vfs cache: failed to r>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/manifest.json: vfs cache: faile>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/obsidian-to-anki-plugin/styles.css: vfs cache: failed t>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/data.json: vfs cache: failed to r>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/main.js: vfs cache: failed to rel>
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/manifest.json: vfs cache: failed >
Feb 24 23:49:48 nixbox rclone[11376]: ERROR : Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins/table-editor-obsidian/styles.css: vfs cache: failed to >
None of these files in the paths shown in the errors seem to exist. If I try to ls -al Obsidian/Personal/.unison..obsidian.b5a85a9aa1b525dc3c403390730b42d2.unison.tmp/plugins
for example it will output no such file or directory. But yet its part of an error message effecting my service from running properly. What did I miss? Where is this coming from? And - especially - what should be done to solve the problem?