Troubleshooting
Outcome: the six failures this
guide's lab actually produced, each
with the tell, the cause, and the
way out. If your problem is not
here, beet -v (twice for -vv)
makes beets narrate its decisions,
and most mysteries dissolve at that
volume.
The import that never finishes
Tell: beet import sits silent
for minutes or hours, doing nothing
visible. Cause (the lab's first
hang): the importer reached the
"This album is already in the
library!" prompt and is waiting for
a keypress that, in a script or a
piped session, never comes — the
prompt reads single keys from a
terminal. Way out: run imports
in a real terminal; answer the
prompt (chapter 7 lists the choices);
or decide in advance with
import.duplicate_action in the
config, which is what unattended
imports require. The lab's
config-keep.yaml is the worked
example. The same shape of hang, a
different question, is modify
without --yes — confirmations are
questions too.
The plugin that is not there
Tell: startup prints
** error loading plugin web with a
traceback ending in
ModuleNotFoundError: No module named 'flask', and
beet web is then an unknown
command. Cause: several plugins
need Python packages beets itself
does not install — web needs
Flask, the art machinery wants
Pillow. Way out: install the
named package into the same
environment as beets (chapter 3)
and start again. Beets degrades
gracefully — the traceback looks
fatal and is not — so read the last
line, not the length.
The album that split in two
Tell: beet ls -a lists the
"same" album twice; the folders are
numbered [1], [2]. Cause:
two album records — born of two
imports (a tag typo is the classic
midwife), and renames do not merge
records. Way out: chapter 6's
whole arc — fix the tags, confirm
with ffprobe or beet info that
the files agree, remove the records
(not the files), re-import the
tracks as one folder. Trying the
importer's Merge all first is
reasonable; in 2.14.1 the lab found
it does not combine records holding
different tracks, so do not be
surprised when the split survives it.
duplicates finds nothing (twice)
Tell: beet duplicates is silent
about a double you can see in
beet ls. Cause, first form: the
plugin groups by MusicBrainz IDs by
default, and your tracks — imported
as-is, say — have none. Second
form: with -C checksums, one of
the copies carries embedded art or
rewritten tags from beets' own
housekeeping, so its bytes and even
its audio CRC no longer match its
twin. Way out: chapter 8 —
group by tag keys
(-k albumartist -k album -k title),
and read silence as "not duplicates
by that definition", never as
"none exist".
Art that is not found
Tell: beet fetchart reports
no art found while a cover.jpg
sits in the album's folder. Cause
(the lab's version): the -f
flag — it means fetch fresh and
tells the filesystem source to stand
down (in the plugin's code, forced
fetches pass no local paths at all).
Way out: run beet fetchart
without -f for local art; save
-f for when the local picture is
wrong and a remote source should
replace it. If plain fetchart still
finds nothing, check the filename
against the cover names beets
expects (cover, front, art,
album, folder) and that the
album's art is not already set —
beet ls -a -f '$album $artpath'
shows what beets currently believes.
The update that does not land
Tell: beet update prints the
same diff every run, and beet ls
keeps showing the old value.
Cause, in 2.14.1: the
multi-value genres field is
reported but not stored by
update (chapter 6, transcript
t11). A near relation: update
notices edits by modification time,
so an edit that lands within the
same timestamp tick as the last
write can pass unseen. Way out:
set the field with beet modify,
which writes database and file
together, and verify with beet ls
— the general rule this whole guide
runs on: trust the query, not the
receipt.