Skip to content

Troubleshooting

This page is organised by what you see. Each section says where to look, what the messages mean, and what to do. Labels are quoted as the English UI shows them; switch the UI language in Settings › General.

A few words used throughout:

  • Source: one video, episode or podcast you watched or listened to.
  • Job: one step of work the server queues for a source, such as a download, a transcription or mining. The server’s worker runs one job at a time.
  • Stage: one link in the chain from a watch to a card (fetch, subtitles, subtitle check, clips, scores…). When a setting or input changes, the stages after it go stale.
  • Gold: the one card per word per source that AutoMiner picks to send to Anki.
  • Subtitle check (判定): the verdict on whether a source’s subtitles are timed to its audio. The judge (判定サービス, “Judge service”) is the program that answers it.
  1. The Workers panel, in the left rail on a desktop: {n} running · {n} queued, with a card for each job and its message. On a phone, job cards appear at the bottom of the screen instead. See A job is stuck or failed.
  2. The Services panel, at the foot of the rail: Anki and Yomitan, each Connected, Connecting… or Not reachable. Cannot reach the server means your browser lost the AutoMiner server itself.
  3. The banner on Today. When a stage stops cards from being made, Today shows <platform> · <stage> stopped — <reason> with Fix →, which opens the setting.
  4. Settings › Overview. How a card gets made shows each platform’s stages: green works, orange works less well, red stops there, grey is OFF. Press a stage to jump to its setting. Setup state shows what is configured.
  5. autominer doctor on the server, which prints the same setup table with the source of every setting (Command line).

AutoMiner treats a feature you have not set up as a state, not an error:

  • autominer doctor and Settings › Overview › Setup state show each feature as configured, not configured or misconfigured. Only misconfigured is a problem: a partial set (for example two of the three Spotify credentials), an unreadable key file, a bad URL or number, or a data folder the server cannot write.
  • A job whose feature is off ends as Skipped with the reason, for example a Transcription job that says Transcription OFF. A job that hit an error ends as Failed with the error. The Workers panel hides skipped jobs; a source’s row on Today still shows the reason.
  • In How a card gets made, grey is a stage you turned OFF, orange works with less (for example No API key — sent without translation), and red stops cards.
  • The Chrome extension counts events it could not send because no server address is set as Not sent (no core URL), not as failures.

So when something does not happen, first check whether it is set up. When something is set up and fails, the message says why.

Today lists the sources watched on one day, with the devices and how much of each was seen.

  1. Is the day right? Today shows the day in the date picker, in the time zone of Settings › General › Time zone (or your browser’s when that is blank).
  2. Is the platform installed? A platform that is not installed records nothing: its watches are accepted and dropped. Open Settings › Sources › Platforms, press Add and install the platform. With no platform installed, Today’s empty list reads No sources this day with a Settings › Sources → link.
  3. Is anything reporting the watch? Open the Chrome extension’s popup:
    • core URL not set: nothing is being sent: enter the server address (http://<server>:8801) under Core URL, press Save settings, and accept the permission Chrome asks for.
    • core unreachable at …: the browser cannot reach the server. Press Test core connection, and check the address, the port and your network.
    • QA mode ON: events are marked as verification data: watches made in QA mode are test data and never count on Today. Untick QA mode and save. For an Android phone see YouTube on an Android phone.
  4. Stremio and Spotify are read by trackers inside the server, which start within 30 seconds of their credentials being stored. autominer doctor ends with Trackers in the AutoMiner at <address> and each tracker’s state, or none running. After changing a Spotify credential, restart AutoMiner. See Configuration.
  5. Did anything play? Today lists a source once some playback time is recorded. A YouTube page you open without playing it is not listed, but the extension still reports the visit, so the video may be fetched and mined anyway (Chrome extension).

A source is fetched when its watch session ends, if its platform mines. You can always start it by hand: on Today, press a source’s row (Fetch from YouTube and mine, or the platform it came from). The row then says Accepted, Already queued, Already mined or Same title already mined, and Rerun when a failed fetch is run again.

When a fetch did not work, the row shows a small square button: red when a job failed. Press it to read each job’s status, step and message. Fix → next to a message opens the setting that fixes it. On the source’s own page (Sources), the same reason is under the title.

You see What it means What to do
Tracked only The platform records this kind of item but does not mine it (Spotify music, for example). Nothing; only podcasts are fetched from Spotify.
Settings shows Not mined — nothing is fetched from new watches The platform’s section heading is set to Don’t mine. Set it to All of it or Only what I watched (Settings › Sources › the platform). Watches are still recorded.
Not in a language you study (<language>) YouTube’s Mine only videos in a studied language is on and the audio is in another language. Press the row to mine it anyway, or add the language in Settings › Languages.
Couldn't tell its language (pick one you study) You study more than one language and none could be detected. Press the row and choose the language.
<language> is not mined (fetch only) The language is fetched but has no mining profile. See Language profiles.
YouTube refused (bot check) — fetch again later (or too many requests, private video, age check, members only, region blocked, video unavailable) YouTube refused the server. After a bot check or too many requests, every YouTube fetch pauses for 15 minutes, doubling up to 6 hours, and is then asked again. Install Node.js 22 or newer, and consider the VPN proxy: YouTube refusing the server.
Fetching is not set up (Sources › Stremio fetching) Stremio videos are fetched through a search and Deluge you run yourself. Torrents. Messages such as The search has no release or The download stopped moving come from that stack.
This podcast has no show name, so its RSS feed cannot be found, or No RSS: <shows> in Settings Spotify episodes are downloaded from the show’s RSS feed. Settings › Sources › Spotify, set the show’s feed.
Waiting for budget A paid step would pass a spending limit. Open Spend, or raise the limit in Settings › Budget. The job resumes by itself when the day or month turns or the limit is raised.
Runs after maintenance New work is paused for an upgrade. See A job is stuck or failed.

Cards are made from subtitle lines, so a source without subtitles makes no cards. AutoMiner looks in this order: subtitles the platform has (YouTube’s own), subtitles inside the video file, subtitles from outside services (Jimaku, Animetosho, OpenSubtitles, for Stremio), and last, transcription of the audio. Podcasts are always transcribed.

Message What it means What to do
No manual <language> subtitles (no subtitles) or (auto captions only) YouTube’s Mine only videos with manual subtitles is on. Press the row on Today to mine it anyway, or turn the setting off (Settings › Sources › YouTube).
Skipped · Transcription · Transcription OFF, or no subtitles · Transcription OFF No subtitles were found and Settings › Subtitles › Subtitle transcription › Provider is No transcription. Choose OpenAI (Whisper) or ElevenLabs (Scribe) and store its key.
Transcription: OpenAI (Whisper) API key not set (or ElevenLabs (Scribe)), with Fix → Transcription is on but its key is missing. The default provider is OpenAI (Whisper). Store the key in Settings › Services › API keys, or autominer secret set OPENAI_API_KEY. Then press the row on Today again.
The transcript was empty, The audio is over the upload limit, The speech recognition call failed Transcription ran and did not give usable lines. Retry later; check Spend for the provider’s failures.
Cannot extract the audio track, ffmpeg is missing The server cannot read the audio. Install ffmpeg and ffprobe; autominer doctor reports ffmpeg not found on PATH when they are missing.

For anime, a Jimaku key (Settings › Languages, the Japanese tab) finds more subtitles, and an OpenSubtitles key (Settings › Services) helps for other shows. When YouTube has only auto captions and a transcription key is set, the video is transcribed instead if its cost fits your budget.

For a source that is already fetched, open it in Sources and press Sync subtitles (the subtitle icon next to Fix, shown while the source’s video or audio is on the server). On that screen:

  • Update subtitles fetches subtitles again from every source, gathers other releases’ subtitles, and re-reads the current ones (only changed lines are replaced).
  • Load subtitles uploads your own .srt, .ass, .ssa or .smi file; Save keeps it and the offset.
  • The language select corrects the source’s language; it then fetches that language’s subtitles again and mines again.

Timing problems are covered in Subtitles.

The subtitle check (判定) runs only for a platform whose Check mode is on (Settings › Subtitles; it is off by default; Spotify is never checked). It needs two things: a transcription service for the check (Settings › Subtitles › Transcription runner: Container — transcription service (the default), Cloud — OpenAI, Cloud — ElevenLabs Scribe or This machine — Whisper; see Self-hosting) and the judge.

The judge. Settings › Services › Judge service chooses This machine (the local judge, the default) or Jev (hosted, needs a key). The local judge must be downloaded once: the Judge model row shows Not downloaded and a Download button (1.1 to 2.7 GB, depending on the model picked for this machine; autominer judge fetch does the same). While it downloads, the row shows its progress and a Stop button.

Until the judge is ready, work that needs it waits instead of failing. You see:

  • In How a card gets made, the Check stage is red, for example This machine's judge is not downloaded (Settings › Services › Judge service).
  • In the Workers panel, Listen for subtitle check or Subtitle check jobs under Scheduled, with the same message.
  • On the source, Awaiting subtitle check · not checked.

When the judge becomes ready in the web UI (its download finishes, or the Jev key is saved), the held work runs; nothing needs pressing. After autominer judge fetch on the command line, it runs when AutoMiner next starts, or at its next retry. That holds while the message is This machine's judge is not downloaded …, This machine's judge is downloading or The judge service key is not set. The Jev choice is available only once its key is stored (Settings › Services › API keys, Judge service (Jev)).

Any other judge error fails the job (Failed, with the message), and you press the source’s Fix button once it is solved:

Message What to do
This machine's judge needs the Microsoft Visual C++ 2015-2022 runtime Windows: install that runtime from Microsoft, then restart AutoMiner.
This machine's judge could not start, Cannot reach this machine's judge Read its log, $AUTOMINER_HOME/judge/server.log.
Cannot reach the judge service, The judge service is busy Jev is unreachable or busy; try again later.

A source’s subtitle check can also end without a verdict:

On the source What it means What to do
Awaiting subtitle check · needs review The judge was not sure these subtitles fit the audio. Open the subtitle screen (Sync subtitles), pick a subtitle under Check candidates and save; that settles it.
Awaiting subtitle check · could not check, or the hold Could not check: speech recognition was down The transcription service for the check was down, so nothing was judged. Make the service reachable (Settings › Subtitles; Self-hosting), then press the source’s Fix button.

The Queue’s Send tab lists every card that will go to Anki, in order (Next send, then After that). An empty list reads No cards to send yet. The lines above the list say why gold cards are held:

Line What to do
{n} Gold cards wait for their source to update (↻ fixes it) Press Sources → and fix the stale source. See A source shows stale.
{n} Gold cards can't be sent: <reason> The reason names the rule: for example the clip score is below the threshold, waiting for the clip score, the voice is quiet, its line is a song lyric, its word has a note (duplicates are merged by hand). Open the card to check it, or change the rule in Settings › Clips.
{n} words score under the minimum score for Gold (best …) Settings › Clips › Lowest score for Gold is higher than these words reach. Settings → opens it.
Sends are held until Anki is read again AutoMiner could not read your Anki words; see Sending to Anki fails.
{n} Gold cards: clip being cut, Sending {n} Gold cards… In progress; wait.

If no line explains it:

  • Has the source been mined? On Sources, a source with candidates shows its words. If it has none, see A source never gets fetched and No subtitles.
  • Are all its words known? Each candidate is built around a word you do not know in Anki; a sentence of known words makes none. Each further unknown word in the sentence lowers its score (Settings › Cards, the score deductions), which can keep it under Lowest score for Gold.
  • Clip score as a gold rule. With Settings › Clips › Clip score at or above “Send threshold” on (off by default), a sentence whose clip is not scored yet, or scores below the threshold, is not gold.
  • Studied language. On Sources, the language tag of a source in a language you do not study says Not studied — this source's cards aren't sent.

Sending itself: with Settings › Send › Send to Anki without review off (the default), cards wait in the Queue and you send them from the editor. With it on, When to send is Right away or Daily at a set time; daily needs a Send time and a saved Settings › General › Time zone. A card past the cap (Cards per send (max)) shows Waiting. In daily mode, Send now sends today’s cards early.

Cards without a definition, audio or picture

Section titled “Cards without a definition, audio or picture”

No definition. Definitions, readings, pitch and frequency come from Yomitan. The editor shows No definition until Yomitan fills it; the card can be sent without it.

  1. Check the Services panel: is Yomitan Connected?
  2. With the built-in Yomitan (the default when no Yomitan API address is set), it starts with no dictionaries. Open Settings › Languages, your language’s tab, Yomitan dictionaries, and press Download recommended dictionaries (or Import a .zip, or put .zip dictionaries in $AUTOMINER_HOME/yomitan/dictionaries/ and press Import from folder). The built-in Yomitan needs Node.js 22.13 or newer. Its log is $AUTOMINER_HOME/yomitan/yomitan.log.
  3. With your own Yomitan, its API server must be running and its URL saved (Settings › Services, Yomitan API URL).
  4. Then, in the editor, open Other fields ▾ and press Refetch definition. It re-runs the source’s dictionary lookups; open the word again when it is done.

Details: Dictionaries.

No word audio. Word audio comes from Yomitan’s audio sources. For Korean and Chinese, common words also fall back to recordings (Wiktionary or Lingua Libre). When none has the word, the field stays empty.

No sentence audio or picture. The clip and the picture are cut from the source video by ffmpeg on the server.

  • autominer doctor reports ffmpeg not found on PATH (clips and screenshots cannot be cut) when ffmpeg or ffprobe is missing.
  • The editor shows No local video · trim only (or · cannot re-cut) when the video is no longer on the server; a clip can then only be trimmed inward. Before a video is deleted, AutoMiner keeps its audio track and frames, so existing clips stay.
  • A podcast card’s picture is the show’s cover; The show has no cover image means there is none.
  • Clip messages on a source, such as Clips wait for the subtitle check, mean an earlier stage has not finished.

AutoMiner sends cards through AnkiConnect, and reads your Anki words through it too.

Message What it means What to do
Cannot reach Anki (asked <host>; is Anki running?) Nothing answered at that address. Start Anki with the AnkiConnect add-on. If Anki is on another computer, save its address in Settings › Services › AnkiConnect URL (http://<anki-computer>:8765), and in Anki set AnkiConnect’s webBindAddress so the server can reach it and allow the server’s origin.
… the default address, as Settings has no URL … Nothing is saved, so AutoMiner asked http://127.0.0.1:8765, the server’s own machine. Save the URL of the computer running Anki.
… the server's environment variable, not a URL saved in Settings … ANKICONNECT_URL is set on the server and no URL is saved. Save the right URL in Settings (it wins), or fix the variable.
AnkiConnect is not set up — save its URL in Settings No AnkiConnect address. As above.
Anki returned an error: <error> AnkiConnect answered with an error, for example a missing deck or note type. Check the deck and note type in Settings › Languages and the field mapping in Settings › Send.
このノートは Anki のブラウザか編集画面で開かれているため… (the note is open in Anki’s browser or editor, so Anki refused the write) Anki will not change a note open in its browser or editor. Close that window in Anki and send again.
Anki stopped partway. … When Anki is back, do the same again Anki stopped during a send. Do the same action again once Anki is back.
The profile open in Anki, "<p>", is not the one read, "<q>" A different Anki profile is open. Open profile <q> in Anki. After switching profiles on purpose, use Read all again in Settings › Languages.
The collection open in Anki does not look like the one cards were sent to … A fresh or different collection is open under the same profile name (for example a new PC not yet synced). Sync from AnkiWeb. If you really switched collections, use Read all again.
Sends are held until Anki is read again (Queue) Anki was unreachable, so the words it knows were not read; a word might already be there. Start Anki. It is read again as soon as it answers.

How the profile and collection checks work: Anki.

When a setting or an input changes (new subtitles, a different gold rule, new known words, clip offsets…), the stages built from it go stale for each source it affects. You see it:

  • in Sources, under a source’s title: 5 stale, Up to date, Updating, Checking or Failed;
  • on Today, as a small mark at the end of a source’s row;
  • on the source’s page, as a mark next to its title. Press it to open the dependency graph: columns Inputs, Lines, Derived, Clips and Outcome, with each box tagged Changed, Stale, Follows, Held, Updating, Deferred or No source.

Fix is the ↻ button on the source’s page. Its tooltip says Fix dependencies (or Gather subtitles again and check when the original subtitle file is gone), roughly how long it takes (about {n}s), and includes paid steps when it will call a paid service. When the fix rebuilds candidates, it first asks whether to keep the cards you edited by hand (… keeping {n} edited cards or … rebuilding edited cards too); approvals and rejections on other candidates are overwritten. In the Sources list, the ↻ button with a number at the right end of the bar fixes every stale source, one after another; the heading then says Fixing {done}/{total}, then All up to date or {n} on hold.

What happens after you press it: the press is recorded, and every few seconds the server runs the first stale stage, waits for its jobs, checks again, and moves on, until the source is up to date or it stops at a named hold.

Stage What re-runs
Subtitle parsing changed Read subtitles again, then the candidates are rebuilt
Original subtitle file missing Gather subtitle candidates, then the subtitle check (paid)
Subtitles or mining settings changed Recalculate candidates
Subtitle timing not checked Subtitle check (paid)
Word positions out of date Measure word positions (paid)
Known words changed Read Anki again
Gold settings changed Gold is picked again
Clip position, offsets or trim changed Clips are cut again: gold clips now, the others when used
Audio track changed Measure audio for clip scores
Clips not scored Score unscored clips

When it stops, the source shows a hold:

Hold What it means Fix helps?
Waiting for the update to apply New work is paused for an upgrade. No; wait, or see maintenance below.
Waiting for budget (Open Spend) A paid step would pass a spending limit. Yes, once the limit allows it.
Waiting to retry A job is scheduled to run again later. Yes: pressing runs it now.
Stopped Someone stopped the job. Yes
Failed: <error> A step failed; the error follows. Yes, after fixing the cause.
Could not run: <reason> A step was skipped, for example a feature that is off. Yes, after setting it up.
Could not check: speech recognition was down The check’s transcription service was down; nothing was judged. Yes, once it is back.
Still stale after the fix The stage ran but its input still differs. Yes; if it repeats, report a bug.
Fixing keeps going without getting up to date It ran 20 steps without finishing. Yes; if it repeats, report a bug.
Cannot re-read: the subtitle file does not match the current lines The subtitle file on disk no longer matches. No: Pick from “Check candidates” on the subtitle screen.
The original subtitle file is gone, and this machine cannot run the check Nothing left to rebuild from here. No: pick a subtitle on the subtitle screen.
The trim check does not finish The clip trim checks did not finish within 2 hours. No; check the Workers panel.

More on what a rebuild keeps: Re-mining and freshness.

Reading the Workers panel. The heading counts running and queued jobs. Each card shows the job (for example Fetch from YouTube, Transcription, Mining, Add definitions, Subtitle check), a link to its source, its progress, and its latest message. Jobs of one source are grouped ({n} more queued). Finished jobs fold into Scheduled, Done and Failed rows; the panel keeps the last five finished jobs.

On a card Meaning
Queued Waiting for the worker, which runs one job at a time. A long download or transcription makes others wait.
a percentage, or a running time Running.
Waiting for budget Held by a spending limit; resumes by itself.
Scheduled, Runs again <time> A temporary problem; it is retried later.
On hold, Runs after maintenance New work is paused for an upgrade.
Failed The message says why.

The heading reads stopped · restart needed when the worker itself has stopped: restart AutoMiner (Logs has the commands).

Stopping and clearing. ✕ on a running or queued card stops it (for a group, every job of that source, after asking); the card says Stops at the next checkpoint. ✕ on a finished card dismisses it, and Clear dismisses all finished cards. Dismissing only hides the card in this browser.

Retries. A job that meets a temporary problem (a service down, YouTube refusing) is retried after 30 minutes, then after twice as long each time, at most every 6 hours; after 3 days of retrying it fails. Work waiting for the judge has no such limit and runs as soon as the judge is ready. Mining, adding definitions, re-cutting, recalculating and a language change go back in the queue when they find the database busy, and run up to three times in all.

After a restart. A job that was running when the server stopped is not resumed. It shows as Failed with 中断されました: 実行中にサービスが停止しました。再開されていません — 必要ならもう一度実行してください (interrupted: the service stopped while it ran; it was not resumed, run it again if needed). A language change, rescoring and the judge download are the exceptions: they start again by themselves.

Running a failed job again. There is no retry button on a job card. Instead:

  • a source that was not fetched or mined: press its row on Today;
  • a stale or held source: press its Fix button (see above);
  • candidates: Sources › the source › More actions › Recalculate;
  • subtitles: the source’s Sync subtitles screen › Update subtitles;
  • a source with nothing left on the server to cut from: its page shows a mine button instead (Fetch the video again and mine from scratch);
  • the local judge download: Settings › Services › Judge service › Download.

Paused for maintenance. When a banner says Maintenance (updating): no new work starts until the update is done and no upgrade is running, an interrupted upgrade left new work paused. On the server, autominer maintenance status shows it and autominer maintenance reopen --token <token> ends it (--force when the token is lost and nothing is running). See maintenance.

Read the log first (Logs).

[startup] REFUSED: This database needs the one-time upgrades from version 7f134861… The database was last started by a version older than commit 7f134861 (2026-11-05), and the one-time upgrades it needs are no longer in this version. Start that commit once, let it finish starting, then start the current version again (the README has the same instruction). With a checkout installed by install.sh, as the user the service runs as (prefix the commands with sudo for a root install):

Terminal window
systemctl stop autominer # user install: systemctl --user stop autominer
cd <checkout>
git checkout 7f1348616fc1d4c042e410483b83e448032f3e9d
core/.venv/bin/autominer serve --port 8801 # wait until the web UI opens, then Ctrl+C
git checkout master
sh install.sh # reinstalls the current version and starts the service

New installs never see this message. Under systemd, the service keeps restarting every 5 seconds until it is fixed.

The port is in use. On Linux and macOS the log shows error while attempting to bind on address ('0.0.0.0', 8801): address already in use. On Windows a message says Port 8801 is in use by another program, so AutoMiner cannot start. Find what holds it (ss -ltnp | grep 8801 on Linux, lsof -i :8801 on macOS, netstat -ano | findstr 8801 on Windows). Often it is a second AutoMiner started by hand. Stop that program, or move AutoMiner to another port: re-run install.sh with AUTOMINER_PORT=8802 sh install.sh, or start the Windows launcher with --port. Then update the extension’s Core URL and anything else that points at the old port.

Other Windows messages. AutoMiner is already starting, but it has not answered on port 8801. means another launcher is starting the same data. AutoMiner stopped. means the server exited. Each names its log file.

install.sh says the service did not answer on port 8801. The service was installed but did not answer in time: read its log.

Settings › Sources › Media retention shows free <space> / <total> · kept <size> · Next clean-up: <n> videos <size>. Settings › Overview, under This machine, turns the Free space stage red with Only <size> free below 2 GB (or Only <size> left where sources are kept for a separate sources store).

What uses space, in $AUTOMINER_HOME:

Folder What Can it go?
library/MineSrc/ (or AUTOMINER_SOURCES_ROOT) Downloaded source videos and podcast audio Yes, by the retention sweep below.
library/ Clips, pictures, each source’s audio track and frames, caches Kept for your cards.
judge/ The local judge, 1.1 to 2.7 GB The Judge model row (Settings › Services › Judge service) has a delete button. Without the model, subtitle checks wait for it unless you use Jev.
yomitan/ The built-in Yomitan’s dictionaries (about 800 MB for the Japanese recommended set) Manage them in Settings › Languages.

Retention. A downloaded source video is deleted once all its candidates have clips and pictures (Delete once assets are done, on by default), or when it is older than Days kept (default 10, per platform under Advanced) and mined. Videos that were never mined, or that are playing or being processed, stay. The audio track and frames stay, so clips can still be re-cut and checked. Deleted clips stay in the trash for Keep deleted clips (min) (default 60) before their files go.

The deletion itself is the retention sweep. On the Raspberry Pi deployment a timer runs it every night at 04:50. On an install.sh or Windows install nothing runs it for you, so videos pile up until you run it:

Terminal window
autominer retention-sweep # what would be deleted, and how much space
autominer retention-sweep --commit # queue the deletion (the server must be running)

You can schedule the second line (for example a nightly cron job as the service user; see Scheduling the nightly jobs).

Install Where the server’s output goes Restart
install.sh as root (systemd) journalctl -u autominer sudo systemctl restart autominer
install.sh as a user (systemd user unit) journalctl --user -u autominer systemctl --user restart autominer
install.sh on macOS (launchd) Not kept: the agent writes no log file launchctl unload ~/Library/LaunchAgents/com.autominer.core.plist, then launchctl load the same file
Windows installer %LOCALAPPDATA%\AutoMiner\data\logs\autominer.log, with the previous three runs as .1, .2, .3 End AutoMiner’s pythonw.exe in Task Manager, then start AutoMiner from the Start menu
Raspberry Pi deployment journalctl -u autominer; timers write /var/log/autominer-backup.log, /var/log/autominer-retention.log, /var/log/autominer-qa-purge.log bash /opt/AutoMiner/deploy/safe-restart.sh (waits for the running job first)

On macOS, to see the output, unload the agent and run autominer serve in a Terminal.

Useful commands: journalctl -u autominer -f follows the log live; --since "1 hour ago" limits it. Lines start with a tag such as [startup], [worker] or [jobs].

Two helpers keep logs of their own: the built-in Yomitan in $AUTOMINER_HOME/yomitan/yomitan.log, and the local judge in $AUTOMINER_HOME/judge/server.log.

A plain restart stops a running job: the worker is given 30 seconds and the job is then abandoned (it shows as failed after the start). Restart when the Workers panel shows nothing running, if you can.

What to keep. All your history and settings are in the database ($AUTOMINER_HOME/autominer.db), and your keys are in the secrets directory ($AUTOMINER_HOME/secrets/). Back up both. Clips and downloaded media can be made or fetched again; keep library/ too if you want to avoid that. On Windows, $AUTOMINER_HOME is %LOCALAPPDATA%\AutoMiner\data.

Nightly backup (Raspberry Pi deployment). A timer copies the database every night at 04:20 over SSH to another machine and keeps the last 14 copies (autominer-YYYY-MM-DD.db). It is set with AUTOMINER_BACKUP_SSH_HOST and the other AUTOMINER_BACKUP_* settings (The nightly backup over SSH). Settings › Upkeep › Backup shows Last backup: <when>, in orange with the reason when the last run failed or nothing succeeded for 48 hours, or No destination set — run autominer setup and enter the Backup (SSH) destination. The timer is installed only by the Pi deployment script; elsewhere, schedule it yourself (Scheduling the nightly jobs).

Backup on any other install. Copy the database safely while the server runs, with SQLite’s backup (it handles the database’s write-ahead log):

Terminal window
python3 -c "import sqlite3; s = sqlite3.connect('<home>/autominer.db'); d = sqlite3.connect('<backup>/autominer-copy.db'); s.backup(d); d.close()"

On Windows, run the same with the bundled %LOCALAPPDATA%\Programs\AutoMiner\python\python.exe instead of python3.

On a checkout you can also run the Pi’s script yourself, which uploads the copy over SSH and records the result for Settings › Upkeep:

Terminal window
AUTOMINER_BACKUP_SSH_HOST=<backup-host> core/.venv/bin/python scripts/operations/backup_db.py

Copy secrets/ separately, keeping its permissions (cp -a).

Restore.

  1. Stop the service.
  2. In $AUTOMINER_HOME, move autominer.db aside, together with autominer.db-wal and autominer.db-shm if they exist (they belong to the old file).
  3. Copy the backup to $AUTOMINER_HOME/autominer.db, owned by the service user. Restore secrets/ the same way if you lost it.
  4. Start the service and check autominer doctor and the web UI.

A backup older than commit 7f134861 is refused at start-up; see The server won’t start.

Reset. Settings › Upkeep › Advanced › Reset database (can't be undone) removes every source, candidate, clip, subtitle, downloaded video and watch history. Settings, known words, backups and Anki notes stay. Press Check what goes to see the counts, then Delete all, and type Delete all to confirm. It runs as the Reset database job.

To start completely fresh instead, stop the service, move the whole $AUTOMINER_HOME folder aside, and start it again: a new database is created and the setup page opens. Your keys were in that folder too.

Open an issue in the project’s GitHub repository (the one you cloned or downloaded the installer from). Include:

  1. What you did, what you expected, what happened, and the exact message, copied from the Workers panel, the source’s page or the row on Today, with the job’s name (for example Subtitle check).
  2. The version. Open http://<server>:8801/healthz and copy version, revision and revision_dirty.
  3. How it is installed: install.sh (root or user), the Windows installer, or the Raspberry Pi deployment; your operating system.
  4. autominer doctor --json. It contains no keys or values, but it does show your data folder’s path; edit that out if you like.
  5. The log lines around the time it happened (Logs).

Never attach your secrets directory, a .env that still holds keys, or your database: it holds your watch history and Anki words. Share one only if a maintainer asks, and privately.