Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77859 - Missing album art along with "Rejecting wide link" messages in log

Attached to Project: Community Packages
Opened by Jeremy Goss (jemgoss) - Wednesday, 15 March 2023, 04:27 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 15 March 2023, 07:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Lack of album art and log messages of the form:

upnphttp.c:1425: error: Rejecting wide link /var/cache/minidlna/art_cache/... -> /var/cache/private/minidlna/art_cache/...
(only diff in paths is that one includes "/private")

This is strictly an upstream bug but surfaced by the systemd unit file used in the Arch package.

Here's what's happening:

The systemd unit, minidlna.system, contains the lines:
DynamicUser=yes
CacheDirectory=minidlna

When the service is started, systemd symlinks /var/cache/minidlna -> /var/cache/private/minidlna

If the default db_dir is left commented in the minidlna.conf file as:
#db_dir=/var/cache/minidlna

Then it doesn't get resolved internally to the real path (/var/cache/private/minidlna/).
You can check the paths that are used in the db:

# sqlite3 /var/cache/minidlna/files.db
...
sqlite> .dump ALBUM_ART
...
INSERT INTO ALBUM_ART VALUES(2,'/var/cache/minidlna/art_cache/...
^D

These paths always fail the comparison test with /var/cache/private/minidlna/art_cache/...

The workaround is simply to uncomment the default in minidlna.conf:
db_dir=/var/cache/minidlna

Rebuild the cache and then you'll see paths of the form:

INSERT INTO ALBUM_ART VALUES(2,'/var/cache/private/minidlna/art_cache/...

The proper solution is to patch minidlna.conf or fix upstream.

Package version: minidlna 1.3.2-2.1
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 15 March 2023, 07:16 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Arch Linux ARM is not suppoerted here. Please report it to their bug tracker.

Loading...