Update Library Function Question

Sonarr version (exact version): DEVELOP
Mono version (if Sonarr is not running on Windows):
OS: DEBIAN
((Debug logs)):
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)
Description of issue: Is there anyway to change or turn off the auto update library function, what I am finding is that sometimes it will run the update when my amazon cloud drops and then it ends up deleting all the episodes and then when amazon cloud is back up, it refreshes all the series again to reload all the files again, I would prefer to setup a cron to first ensure my cloud is up prior then invoke the update library, is there any control over this update library function? seems to run currently every 12 hours.

No that’s not possible, but Sonarr checks that the series folder exists and it’s parent folder exists and isn’t empty. Generally the opposite is a problem for people (they delete the folder and Sonarr keeps tracking the files).

How is your setup structured? Is there a local folder that does exist for the series, but ACD is disconnected?

I have kind of a weird setup but in a nut shell, i use unionfs to combine a local folder (read write) and the acd mount (read Only). Sonarr is pointed to the unionfs mount so when sonarr downloads a new file it dumps it into the local folder, which my cron then uploads to ACD and deletes the local version. If sonarr deletes a file aka upgrades a file from say 720 to 1080p it will delete from the ACD, but really only adding a record to the unionfs, a cron runs to rsync the unionfs mount to the ACD only mount which only removes files from ACD so that it is actually fully deleted. What happens is sometimes acd drops for whatever reason, I run a cron that checks this on the 40th min of every hour, if acd drops it will re-mount and re-sync, but doing so sometimes it will drop off when sonarr is running an update so sonarr can no longer find the mount because the ACD no longer exist in the unionfs mount. Hopefully this makes sense.

I encrypt everything as well this could help you understand my setup better too
.acd-sorted is the actual ACD mount; acd-sorted is the unencrypted ACD mount
.local-sorted is the encrypted local mount; local-sorted is the unencrypted local mount

sorted is unionfuse; acd-sorted (read only) and local-sorted (read & write)
Sonarr points to sorted

Cron auto uploads to ACD from .local-sorted and removes the source file
Cron rsyncs sorted folder / acd-sorted to ensure that anything deleted by sonarr gets actually removed from ACD while not deleting new to be uploaded files. this ensures the old lower quality files actually get deleted instead of hidden since sonarr is only writing to the local folder, but reading from the cloud.

Thanks for the information and sorry I missed you on IRC.

When ACD is disconnected what are the contents of sorted? Are there folders there still?

What would happen if ACD was disconnected? The delete is still stored and then when ACD connects it’s resync’d? Sounds like this is transparent, but the process when rescanning is a bit different (or the delete fails and is tried again later).

Yes and no so if no files are sitting to be uploaded then the folder will be empty if there are files to be uploaded then local folders will exist. If sonar deletes while acd is disconnected or connected it will add a record in .unions and hide the file from the file system until rysnc runs and deletes from acd transparent to sonarr

Just figured I would add to this, I was able to solve my issue by using a check file ever 10 mins and not running acdcli sync after reading further documentation this causes disconnections when running sync during an upload as well as acdcli also updates every 120 secs from the information I could find, modify this has not kept the drive from disconnecting and causing media to vanish from sonarr. Thanks for the consideration regardless.

I am running a full sync every 24 hours on acdcli just to make sure I atleast catch everything once a day and this is only done if it is currently not uploading.

1 Like

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