Your Odin server looks after itself with scheduled tasks: it backs up, tidies its database and pictures, and checks for files that have gone. The server's owner, and admins with Server settings, manage them in a browser. Odin Admin can run them too.
See and change the tasks
- On the server, open Server Settings, then Scheduled Tasks.
- Each task shows when it last ran, how long it took and when it runs next. Choose a task to set its Frequency and Time of day, and to read its Last run output.
- Use the switch on a task to turn it off or on.
Run a task now
Choose Run now. One task runs at a time, so a task you start while another runs shows Waiting, and starts when that one finishes. A task that is already running or waiting says so, and doesn't start again.
Missed and failed runs
- If the server was off when a task was due, the task runs once after the server starts again, from ten minutes after the start, one task at a time. The Orphan Sweep, Full Backup and Database Optimization go last. Hourly tasks, and a task due again within three hours, wait for their next time instead.
- A task that was running when the server stopped shows Failed, dated when that run began, and its result says the server stopped while it ran. It runs again at its next time.
Database Optimization
It rewrites the database file only when nothing is playing on the server: no video, music or book, paused ones included, and no Live TV. While something plays, its row says it is waiting, and it runs at the first quiet minute.
When many titles go missing at once
The Orphan Sweep hides titles whose files are gone. Removed Media Cleanup removes them for good after they have been missing for 72 hours, unless their files come back first. Server Settings, Libraries & Scanning, Missing files lists the hidden titles and the day each goes, the soonest first. A title whose day has passed reads Due for removal, and a title the cleanup is keeping says why instead of a day.
If the sweep finds 25 or more missing titles that are not hidden yet, and they are at least 5% of your libraries, it stops and changes nothing, and its row shows Failed.
If every title in a library is missing, and two or more of them went missing together, the sweep and library scans leave that library as it is, however small it is. The sweep's Last run output says Held back, and its row shows Failed when nothing else was missing.
A disconnected drive or network share is the usual cause of both.
- Make sure every drive and network share is connected. The next sweep checks again.
- If the files really are gone, the server's owner chooses Remove anyway on the Orphan Sweep's row. Odin says how many titles it found missing and asks first. Removed Media Cleanup then removes the titles the owner confirmed after the 72 hours, even when they are a large share of your libraries.
- If more titles are missing by the time it runs, it stops again and shows the new number.
- Titles nobody confirmed still count: if 25 or more of them are due for removal and they are more than a fifth of your libraries, Removed Media Cleanup stops before removing anything, and its row shows Failed. The Orphan Sweep's row shows Failed too when its own removal meets the same limit. If those files really are gone, the owner can use Remove missing media in Server Settings, Danger Zone, and choose Remove anyway when it asks again. It removes every missing title at once, not only the ones that are due.
While a library's drive looks disconnected, because its folder is empty, or none of its titles can be found and two or more went missing together, Removed Media Cleanup keeps its missing titles, even past the day Missing files shows, unless the owner confirmed them with Remove anyway. Its result names the library, and its row shows Failed when keeping them is all it did.
It also keeps titles whose library folder cannot be reached or whose storage doesn't answer, and titles behind a shortcut, link or junction whose target is gone. Remove missing media in Server Settings, Danger Zone doesn't wait for any title's day. It leaves alone titles whose library folder cannot be reached and titles behind a broken link. Every other missing title is checked once more and removed now if its file isn't there, including the titles of a library where none of the files can be found, so connect every drive first.
Other tasks
- Duplicate Detection lists, in its Last run output, files stored more than once in your libraries. It never merges or removes anything.
- Metadata Refresh looks up films and episodes that are missing a poster or a description, up to 100 each run, the ones tried longest ago first. A title that has failed five times is left alone. To try it again, open the menu on its page and choose Refresh Metadata.