Closed Stunner closed 7 years ago
That's certainly strange. Does the file show up in beet ls -p
?
Also, it's doubly strange that update
is crashing—it's supposed to detect missing files, so I don't currently see how that entry could slip through the cracks.
I also notice you have the copyartifacts
plugin enabled. Does disabling that have any effect?
This is what I see with beet ls -p
:
$ beet ls -p /Volumes/Drobo\ Vol\ 1/Music/beets/music/_/Misconduct
/Volumes/Drobo Vol 1/Music/beets/music/_/Misconduct/00.mp3
/Volumes/Drobo Vol 1/Music/beets/music/_/Misconduct/00.1.mp3
/Volumes/Drobo Vol 1/Music/beets/music/_/Misconduct/00.3.mp3
Interestingly enough there are 5 items in the directory but beets only has a record of 3 of them... I don't know exactly what was done to get it into this state... Possibly renamed them manually or tried to use beet modify
... I don't quite recall.
Removing copyartifacts
doesn't do anything to resolve this issue:
$ beet version
beets version 1.4.4
Python version 2.7.10
plugins: badfiles, chroma, convert, edit, embedart, fetchart, fromfilename, info, inline, mbsubmit, mbsync, spotify, web
$ beet stats -e
could not get size of /Volumes/Drobo Vol 1/Music/beets/music/_/Misconduct/00.3.mp3: [Errno 2] No such file or directory: '/Volumes/Drobo Vol 1/Music/beets/music/_/Misconduct/00.3.mp3'
Tracks: 9084
Total time: 2.6 weeks (1578473.28 seconds)
Total size: 46.0 GiB (49343796082 bytes)
Artists: 539
Albums: 949
Album artists: 393
Heh, maybe copyartifacts
was the culprit after all? I was fiddling with the outputs to show you more and this happened:
$ beet update Misconduct
Misconduct - -
deleted
$ beet -vv update Misconduct
user configuration: /Users/aaron/.config/beets/config.yaml
data directory: /Users/aaron/.config/beets
plugin paths:
Sending event: pluginload
inline: adding item field initial
inline: adding item field disc_and_track
library database: /Volumes/Drobo Vol 1/Music/beets/musiclibrary.db
library directory: /Volumes/Drobo Vol 1/Music/beets/music
Sending event: library_opened
Sending event: database_change
Misconduct - -
deleted
Sending event: database_change
Sending event: item_removed
skipping /Volumes/Drobo Vol 1/Music/beets/music/T/The Almighty Trigger Happy/Misconduct _ The Almighty Trigger Happy [1201]/08 Broncitis.mp3 because mtime is up to date (1485557008.0)
skipping /Volumes/Drobo Vol 1/Music/beets/music/M/Misconduct/Signed in Blood/06 Fading.mp3 because mtime is up to date (1485557632.0)
Sending event: database_change
Sending event: database_change
moving album 720
Sending event: before_item_moved
Sending event: item_moved
Sending event: database_change
Sending event: before_item_moved
Sending event: item_moved
Sending event: database_change
Sending event: cli_exit
$ beet stats -e
Tracks: 9082
Total time: 2.6 weeks (1578086.60 seconds)
Total size: 46.0 GiB (49340698552 bytes)
Artists: 539
Albums: 949
Album artists: 393
Strange, the problem appears to have disappeared... Something to note additionally is that I repeatedly run beet update
and it always outputs that its making changes, but subsequent runs show the exact same output (as seen in the above snippet of terminal output). Thought I'd mention that here, I'll create a new issue reporting that issue, however.
Huh, how about that!
The thing about update
showing the same changes repeatedly probably has to do with album-level normalization. This is a tricky issue, but there's a little more detail at these links:
https://groups.google.com/forum/#!topic/beets-users/h2r2AkY0Frg
https://github.com/beetbox/beets/issues/1837
Problem
I have an erroneous file path that is stuck in the beets db:
Running this command in verbose (
-vv
) mode:An attempt at removing the non-existant file path with beet remove doesn't work:
Nether does a
beet update
:You'll need a file with almost no meta data in it, add it to the library and then move it (a mere rename seems like it would do the trick too) without notifying beets of the move. (At least I think that is what happened.)
Here is a link to download an archive of the directory of interest: https://dl.dropboxusercontent.com/u/17804136/Misconduct.zip
Setup
My configuration (output of
beet config
) is: