aetaric / checkrr

Checkrr Scans your library files for corrupt media and replace the files via sonarr and radarr
MIT License
202 stars 10 forks source link

Runs forever #91

Closed steve1977 closed 5 months ago

steve1977 commented 7 months ago

I have installed Checkrr in Docker container on Unraid (via CA). To start with, I have only set up connection with Radarr.

After starting the docker, I hit "run now" in the GUI. It seems to work and it identifies a few bad files and seems to have scanned my whole library. So far, so good!

However, it doesn't seem to stop and doesn't allow me to restart. GUI always says "running" and "run now" is greyed out. Even after restarting the docker, this doesn't change. No info in docker log and log file.

Any thoughts what I can try to troubleshoot?

aetaric commented 7 months ago

Checkrr periodically writes to a table in the db file with the "current stats" and that's one of the states that is tracked with that write. There's a stop function that sets running to false and the button is only enabled when running is set to false.

If checkrr never writes running: false to that table, the button will not re-enable. (this could occur if checkrr is killed by OOMKiller or SIGKILL before it can write that state)

You can try clearing the state by hitting checkrr's API for run: curl -X POST http://address.to.checkrr.web:port/api/run.

If you can't for some reason send a post request to that endpoint, if you delete the DB file, recreate it with the touch command again, it should free up checkrr to run again, though it will lose it's hashes of the current files.

aetaric commented 5 months ago

This issue has been open a few months with no reply. I'll close it now, if you are still having issues, just reply and I'll reopen it.

anthony0030 commented 3 weeks ago

The post request worked. You can send it via the UNRAID terminal if you are on a device like a phone with no easy post