Hi everyone,
I'm starting to make more use of the UI features that OMV offers and really like the proposition of using my 1TB Onedrive storage, that came with Office 365 Family, purerly to backup my Pictures.
However, since only one "Ondrive" Shared Folder can be defined, I would need to move all of my nicely structured data to a separate folder and I don't particularly like that. I though I could make use of Symlinks and therefore created a Symlink (using the OMV Plugin) to my "image" folder ("Bilder") on my media drive and checked if that would upload correctly. Lo-and-behold, it was synching to Onedrive like a champ.
However, it's happend multiple times now, that all Images from Onedrive were delete after reboot and the "Bilder"-Folder would not continue synching to Onedrive, leaving me with an empty Onedrive folder...
Originally I thought only the Symlinks are deleted, but the "Testdir" you see is actually a "physical" folder in the "onedrive" shared folder... After the last Reboot both were gone again.
What's going on here? Am I not supposed to create the "onedrive" folder on a mounted drive and instead should put the "onedrive" folder on the root filesystem and then use symlinks from there to my files? As stated before, after the reboot, the synching never starts again.
Update: I played around a bit and noticed that the service would not start anymore after the reboot (or would start and then shut down)... I decided to uninstall and reinstall the plug-in, run omv-onedrive-auth again and set the onedrive folder to my root partition (/onedrive_root).
Now the folders on Onedrive also survived a reboot. Since rebooting the machine takes quite a while in my case, I'm leaving it at that for now. I discovered the "onedrive --display-config" command and saw that it is also possible to enable a log, by setting the flag in the config path (I'm not quite sure how to do that though). Could you give me some directions on how the configuration of the plugin works, so I can work and report with more details next time?
Update2: Being the curious cat I am, I of course had to test it with the Onedrive folder on my attached USB-Harddrive. Once I used Onedrive on that drive after a reboot all files were gone again:
Jul 28 23:06:01 suteki-omv onedrive[1084]: Initializing the Synchronization Engine ...
Jul 28 23:06:01 suteki-omv onedrive[1084]: Initializing monitor ...
Jul 28 23:06:01 suteki-omv onedrive[1084]: OneDrive monitor interval (seconds): 60
Jul 28 23:06:01 suteki-omv onedrive[1084]: Starting a sync with OneDrive
Jul 28 23:06:01 suteki-omv onedrive[1084]: Uploading differences of /srv/dev-disk-by-id-ata-ST2000LM003_HN-M201RAD_S34RJ9FFC04314-pa>
Jul 28 23:06:01 suteki-omv onedrive[1084]: Deleting item from OneDrive: Testdir
Jul 28 23:06:02 suteki-omv onedrive[1084]: Deleting item from OneDrive: test.txt
Jul 28 23:06:02 suteki-omv onedrive[1084]: Deleting item from OneDrive: Bilder
Jul 28 23:06:03 suteki-omv onedrive[1084]: Uploading new items of /srv/dev-disk-by-id-ata-ST2000LM003_HN-M201RAD_S34RJ9FFC04314-part>
Jul 28 23:06:03 suteki-omv onedrive[1084]: Sync with OneDrive is complete
I'm really not quite getting the logic here...
Either way, switching back to putting everything on the SATA-attached Root-Folder, that seemed to work fine.
Another obervation: When switching the shared folder, that onedrive should be using, it refuses to start:
onedrive.service - OneDrive Free Client
Loaded: loaded (/lib/systemd/system/onedrive.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/onedrive.service.d
└─openmediavault.conf
Active: activating (auto-restart) (Result: exit-code) since Fri 2023-07-28 23:10:42 CEST; 502ms ago
Process: 5157 ExecStart=/usr/bin/onedrive --confdir /var/cache/onedrive --monitor (code=exited, status=126)
Main PID: 5157 (code=exited, status=126)
CPU: 34ms
I assumed I'd need to run "onedrive --resync", however that fails with the error-message "ERROR: Unable to perform a database vacuum: out of memory"
The only way to get onedrive running again for me was to uninstall the plugin, reinstall it, set it up once (with omv-onedrive-auth etc.) and set the onedrive folder on the root fs.