beetbox / beetbox/beets

write fails to write and does not report any issues

Open
#5,959 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

### Problem

Running this command in verbose (`-vv`) mode:

```sh
$ beet -vv --plugins= write -f 'Galactic Hunt (Part I)'
```

prints a number of changes along the lines of:

output

```
overlaying configuration: /nix/store/i10y3gf7ap945kaypmg1l9nx9bp4syz0-hotbox-beet-config
no user configuration found at /home/nagisa/.config/beets/config.yaml
data directory: /home/nagisa/.config/beets
plugin paths:
Sending event: pluginload
library database: /home/nagisa/music/beets.blb
library directory: /home/nagisa/music
Sending event: library_opened
Parsed query: AndQuery([OrQuery([SubstringQuery('artist', 'Galactic Hunt (Part I)', fast=True), SubstringQuery('title', 'Galactic Hunt (Part I)', fast=True), SubstringQuery('comments', 'Galactic Hunt (Part I)', fast=True), SubstringQuery('album', 'Galactic Hunt (Part I)', fast=True), SubstringQuery('albumartist', 'Galactic Hunt (Part I)', fast=True), SubstringQuery('genre', 'Galactic Hunt (Part I)', fast=True)])])
Parsed sort: NullSort()
M-Run - Svemirski Hod - Galactic Hunt (Part I)
mb_artistid: -> 6247edfc-5588-4c03-b7cd-78239c977688
mb_albumartistid: -> 89ad4ac3-39f7-470e-963a-56509c546377
Sending event: write
Sending event: after_write
Sending event: database_change
Sending event: cli_exit
```

and exits successfully with no error printed or error code set. Running this command again then reports making the very same changes again. `ffprobe`ing the file does not show the metadata having been written.

I only see this issue occur with about 10-20 files from my mostly FLAC collection.

Here's a link to the music files that trigger the bug (if relevant): https://0x0.st/K-5l.flac (part of an album obtainable for free at https://neogoarecords.bandcamp.com/album/svemirski-hod)

### Setup

* OS: NixOS
* Python version: 3.13.4
* beets version: 2.3.1
* Turning off plugins made problem go away (yes/no): no

My configuration (output of `beet config`) is:

```yaml
# --------------- Main ---------------

library: ~/music/beets.blb
directory: ~/music/

import:
copy: no
write: no

# --------------- Plugins ---------------

plugins: chroma replaygain mbsync scrub zero random fetchart
embedart:
auto: no
fetchart:
sources: [{coverart: release}]
high_resolution: yes
auto: yes
minwidth: 0
maxwidth: 0
quality: 0
max_filesize: 0
enforce_ratio: no
cautious: no
cover_names:
- cover
- front
- art
- album
- folder
store_source: no
deinterlace: no
cover_format:
google_key: REDACTED
google_engine: REDACTED
fanarttv_key: REDACTED
lastfm_key: REDACTED
replaygain:
backend: ffmpeg
threads: 8
overwrite: yes
parallel_on_import: yes
auto: yes
per_disc: no
peak: 'true'
targetlevel: 89
r128: [Opus]
r128_targetlevel: 84
echonest:
upload: no
encode: no
scrub:
auto: yes
zero:
auto: yes
fields: images comments r128_track_gain r128_album_gain
update_database: yes
keep_fields: []

ui:
color: yes
colors:
text_success: green
text_warning: yellow
text_error: red
text_highlight: red
text_highlight_minor: darkgray
action_default: turquoise
action: blue
chroma:
auto: yes
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.