Checking a machine
What warpzone doctor checks and how to read its output.
warpzone doctor is a checklist for the machine you run it on, in the spirit of flutter doctor. It prints one line per check and, for every problem, the exact fix for this platform (Homebrew on macOS, apt, dnf or pacman on Linux, a container on SteamOS).
| Marker | Meaning |
|---|---|
[ok] |
Fine. |
[! ] |
Warning. |
[!!] |
Problem. |
[--] |
Optional and not set up. |
It never installs or changes anything and makes no network calls (the one probe is a request to your local Syncthing on 127.0.0.1). It exits 1 only when something required is broken, so it can run in a script. Use --config PATH for a config in another place.
$ warpzone doctorInbox tools [ok] chdman chdman - MAME Compressed Hunks of Data (CHD) manager 0.289 (unknown) (/opt/homebrew/bin/chdman) [!!] bsdtar not found (required by inbox) fix: sudo apt install libarchive-tools [--] dolphin-tool not found (only for compressed GameCube images (.gcz)) fix: install Dolphin (brew install --cask dolphin); ......1 problem(s), 0 warning(s), 4 optional item(s) not set up. Fix the [!!] lines above.What it covers
Section titled “What it covers”- warpzone and Python.
- The config file, and what each table enables.
- The local Syncthing and its REST API.
- On a configured device,
wz-*folders in its Syncthing that its config no longer describes (a group taken out of itsfolders). They are a warning:warpzoneleaves them as they are, and removing one in the device’s Syncthing keeps its files.provision deviceprints the same warning. - RetroArch’s Flycast option for per-game VMUs, when the core has run.
- Vita3K’s active user, when Vita3K has a config.
- The emulator settings layers, the ES-DE startup script and the last
settings apply, on a device that subscribes tosettings. - The frontend’s system list override and RetroArch’s paths, and the generated artwork gamelists and their timer, on a device whose profile sets them (
darkos). - The save conversion, on a device that lists
savesand whose profile has[save_convert.*](darkos): when it last ran, the games it skipped as not valid saves, and the times the newest file won when both sides had changed (see Save conversion). The system list override must also wrap the emulator’s command. - shadPS4’s install folder (
~/Emulation/roms/ps4/gamesin its config files) and DLC folder (~/Emulation/roms/ps4/dlc), on a device whose profile declares it (steamos-emudeck). - Cemu’s paths in
~/.config/Cemu/settings.xml, on a device whose profile declares them (steamos-emudeck):mlc_pathmust be~/Emulation/roms/wiiu/mlc01, the folder whoseusr/savewarpzone syncs (an empty value means Cemu keeps its saves in~/.local/share/Cemu/mlc01, which nothing syncs), andGamePathsmust list~/Emulation/roms/wiiu/roms. The fix iswarpzone provision device <name>with Cemu closed; with no settings file yet, start Cemu once first. - The update and DLC folders of Eden (
Paths\external_content_dirsin~/.config/eden/qt-config.ini) and Ryujinx (autoload_dirsin~/.config/Ryujinx/Config.json), on a device whose profile declares them (steamos-emudeck): each must list~/Emulation/extras/switch, whereinboxfiles updates and DLC. The fix iswarpzone provision device <name>with the emulator closed; with no settings file yet, start the emulator once first. - The shadPS4 launcher: warpzone’s launch script exists, is executable and is the text
provision devicewrites, and ES-DE’sSHADPS4find rule runs it (EmuDeck can put its own entry back). The fix iswarpzone provision device <name>with ES-DE closed. - The shadPS4 version, on the same device: whether the Qt launcher has a version selected (
~/.local/share/shadPS4QtLauncher/qt_ui.ini) or installed (versions.json) for the launch script to run. Without one PS4 games do nothing when started, because ES-DE does not show the script’s error. It is a warning while the device holds no PS4 games and a problem once it does. The fix is to open the shadPS4 Qt launcher, go to Version Manager, then download and select a version; no warpzone command is needed. The script also logs each failed launch to~/.local/state/warpzone/shadps4-launch.log. - Vita3K’s game links (
~/Emulation/storage/Vita3K/ux0/app/<TITLEID>) and licence links (ux0/license/<TITLEID>), the ES-DE startup script that keeps them, and dangling links, on a device whose profile declares[links.*](steamos-emudeck). The fix iswarpzone links sync <name>with Vita3K closed. - The updater, on a Linux device (see Updating a device): its timer (installed, running the updater, enabled), the live copy of the script, its settings against the config, and its state. A warning for a rollback in the last 14 days, a
dirtyordevcheckout, a retiredpin, signatures not required, and more than 14 days without a successful run; a problem when it isstuck. - The unattended prune, on a device that lists
librarywithoutauto_prune = false: a warning when its timer refused to delete anything because a folder would lose more than half of what the device holds (it names the folders and how long ago, and the fix is to check the whitelist, runwarpzone prune <name>to review and thenwarpzone prune <name> --applyby hand). See Automatic pruning. - The frontend’s system list override and RetroArch’s paths, on a device whose profile sets them (
darkos). - The inbox tools (
chdman,bsdtar,RAHasher,dolphin-tool,nsz,orbis-pkg-util,Vita3K; Vita3K is only found, never run, and on macOS/Applications/Vita3K.appcounts; a Vita3K that inbox would refuse, such as an AppImage, is a warning), the Switch titledb folder and keys file (presence only). - Skyscraper, which
warpzone scrapeandinboxuse to scrape games (the hub image ships it): its version (a warning when older than 3.21.1, the one warpzone is tested with; a problem when a configured path is wrong or it does not run), and, when it is found, whetheruserCredsis set in[screenscraper]of itsconfig.ini(presence only, the value is never read into the report). Without an account the line says what the anonymous limits are. In the hub container theconfig.iniis the one on the volume mounted at/skyscraper, and without that volume the line says what to mount. - The nightly scrape, right after Skyscraper, with an
[inbox]table and a hub root that can be read: oneNightly scrapeline from the state and the run records the scheduledwarpzone scrape --unattendedleaves on the hub. Without a state file it is optional (“no nightly scrape has recorded anything”; the fix is to schedule the task, as Filling art every night describes). It is a problem when the last run met an error, and a warning when the last check is more than 36 hours old (is the task enabled?), when a kind of trouble (ScreenScraper blacklisting, network, busy, failed systems, a busy lock, a run that died, maintenance) has lasted as many nights as it takes to be news, or when ScreenScraper’s daily quota was reached 3 nights in a row (the library is larger than the account covers in a night, so it fills over more nights). Otherwise it says when the last run was, what it added and filled, and how much is left (with about how many nights that takes at the size of the last night). See Unattended scrape. - The unattended inbox, with an
[inbox]table and a hub root that can be read: oneUnattended inboxline from the state the scheduledwarpzone inbox --apply --unattendedleaves on the hub. Without a state file it is optional (“no unattended run has recorded anything”; the fix is to schedule the task). It is a problem when the last run met an error (the message, since when, and what to do about it), and a warning when the last check is more than two hours old (is the task enabled?), when an item is held (look at it, runwarpzone inboxto see the report, thenwarpzone inbox --applyby hand, or replace the item to retry), when an item has waited more than two hours since it was first seen (a copy that keeps writing, a file a program keeps open, or no space), or when the inbox lock has been held for more than six hours. Otherwise it says when the last check and the last run were and what the run placed. See Unattended inbox. - The DAT folder and how old the newest DAT is, and the optional arcade DAT files.
- The hub folder and its free space.
- Where
inboxruns, with an[inbox]table: on a computer or in the hub container, found from the machine. In the container it checks the tools of the image (chdman,bsdtar,dolphin-tool,nsz,orbis-pkg-utiland, on x86_64,Vita3KonPATH, RAHasher at/usr/local/bin/RAHasher; a missing tool says so instead of giving an install command, and on an arm64 image Vita3K is[--]with the fix that says the image ships it on x86_64 only),[inbox] root, the mounted DATs and the work folder (awork_dirthat does not exist yet is fine when its parent folder is writable, sinceinboxcreates it on its first run). In the container, or with less than 8 GiB of memory, it also warns when[inbox] chdman_flacis left on (chdman’s FLAC codecs need more memory than the disc image); the fix ischdman_flac = false. See where inbox runs. - Whether
RA_API_KEYis set (never printed).
A tool or table you do not use is shown as optional, not as a problem. A computer or container that only runs inbox does not need Syncthing. A machine with no [inbox] table in its config gets one line saying inbox is not set up, instead of the whole list of inbox tools, DATs and keys. A machine whose config has only an [inbox] table gets one [ok] note for [hub] and [devices].
Long details and fixes are wrapped to the terminal width (100 columns when it is unknown). Lines of a fix that start with a space, such as a unit file, are not wrapped, so they can be copied.
Syncthing in Game Mode (SteamOS)
Section titled “Syncthing in Game Mode (SteamOS)”On SteamOS with a local Syncthing, doctor also checks that Syncthing will run in Game Mode. Game Mode starts no desktop session, so only an enabled systemd user unit runs it; a desktop autostart entry is not enough.
If no unit exists, the fix shows one for the SyncThingy flatpak:
ExecStart=/usr/bin/flatpak run --command=syncthing com.github.zocker_160.SyncThingy serve --no-browser --no-restartplus ExecStop=/usr/bin/flatpak kill com.github.zocker_160.SyncThingy (see the EmuDeck guide), then systemctl --user enable --now syncthing.service, and a reminder to remove the autostart entry so two instances do not compete. It also warns when both a unit and an autostart entry start Syncthing.
With the SyncThingy flatpak, doctor also checks that Syncthing can see the emulators’ data folders (flatpak override --user --show). For every installed emulator whose folder under ~/.var/app is missing from the overrides it reports a problem and prints the flatpak override command to fix it. See the EmuDeck guide.
The Syncthing unit is checked too: if systemctl --user show syncthing reports activating (auto-restart), doctor warns that the unit keeps failing to start, usually because an old Syncthing still holds the port. With the SyncThingy flatpak the fix is flatpak kill com.github.zocker_160.SyncThingy, a unit with the ExecStop above, and a restart.
Dreamcast VMUs (RetroArch Flycast)
Section titled “Dreamcast VMUs (RetroArch Flycast)”When RetroArch’s Flycast core has run (Flycast.opt exists in the RetroArch flatpak), doctor reads its reicast_per_content_vmus option. If it is disabled or missing, the core keeps the VMUs in bios/dc/, which warpzone does not sync, and the check warns with the menu path to change it. VMU A1 and All VMUs are fine. See the EmuDeck guide.
Vita3K user
Section titled “Vita3K user”doctor reads user-id: in ~/.config/Vita3K/config.yml. The profile syncs the saves of user 00; if Vita3K’s active user has another id, the check warns and says how to fix it. See the EmuDeck guide.
Emulator settings
Section titled “Emulator settings”On a console that subscribes to the settings group, doctor finds the device from the local Syncthing’s config.xml (a machine without it says nothing) and adds three lines. See Emulator settings.
- Settings layers. The local
wz-settingsfolder and its marker exist, andcommon.tomland the device’s layer parse and validate. A missing folder, an invalid layer, a conflict copy or a secret key in a layer is a problem; an emulator or file id the profile does not know is a warning. - ES-DE startup script. The script is installed, executable and its Python exists, and ES-DE’s custom event scripts are on (
CustomEventScriptsines_settings.xml). Otherwise it warns and the fix iswarpzone provision device <name>, run with ES-DE closed, or the menu path in ES-DE. - Last settings apply. Read from
last-apply.json: a failed run warns and names the log; keys held back warn and the fix iswarpzone settings capture; no run yet is optional.
Frontend
Section titled “Frontend”On a device that subscribes to library with a profile that moves the frontend and RetroArch to the library (darkos), doctor finds the device the same way, through the local Syncthing’s config.xml, and adds two lines, and two more when it lists frontend. See the Anbernic guide.
- ES systems override.
~/.emulationstation/es_systems.cfgis exactly the system list of the OS with the ROM folders moved into the library (and, for a system whose saves are converted, its command wrapped in the conversion). Missing or out of date (dArkOS updated its list) is a warning, and the fix iswarpzone provision device <name>with EmulationStation closed. - Save conversion. The last run of
warpzone saves convert: a warning when it never ran, failed on some game, or skipped games that are not valid saves (named, with the reason); the games where both sides had changed and the newest won are listed, with where the other copy is kept. The fix is to correct or remove the file named, thenwarpzone saves convert <name>. - RetroArch paths. Each RetroArch config has the BIOS folder and the save and state settings the profile wants. A key that differs is named with its current value; a missing config or a key present twice is a warning.
- Frontend artwork. For a device that lists
frontendand whose profile has[artwork]: every gamelist thatwarpzone frontend refreshwould write exists and says what it should (new scrape, new cover or a game that arrived since:stale). Missing, unreadable (the file on the device cannot be parsed; the refresh keeps a copy of it before rewriting it) or stale ones are named and the fix iswarpzone frontend refresh <name>with the frontend closed. It also warns when no scraped gamelist has arrived yet for the systems on the device (look at thewz-esdefolder withwarpzone status) and when the system list or a scraped file cannot be read. - Artwork timer. Only when the profile sets
refresh:warpzone-artwork.timeris installed in~/.config/systemd/user. Otherwise the fix iswarpzone provision device <name>. - Play state. For a device that lists
play-state: its folder is set up in Syncthing and, with ES-DE, the startup script andwarpzone-play-state.timerare installed. Otherwise the fix iswarpzone provision device <name>.
Details in the design document.