My partner had a folder of “CheckPod” episodes, the kids’ podcast with Checker Tobi, as plain MP3 files. My son loves them. The question was how to get them onto the speakers in the house without a USB stick or a shared folder. The answer is Audiobookshelf, and since this is my lab, it had to be code from the first line. Here is how it fits together, and the pitfalls that were more interesting than the build.

Why not Jellyfin

I already run Jellyfin for music and films, so it was the obvious first candidate. It has no podcast type. Podcast MP3s would land in the music library as albums and mix with my real music. A podcast is not an album: it has episodes, a publication date and a “played” state, and the order matters.

Audiobookshelf (ABS) is built for exactly this. It reads a folder as a podcast library, subscribes to RSS feeds, and tracks progress. The decisive point: Music Assistant has an Audiobookshelf provider that imports podcasts as real podcasts with real episodes. Music Assistant already feeds the speakers and the Home Assistant dashboard, so anything it can see ends up in the house.

The setup

  • The service. ABS runs as one more service in the Docker Compose stack on my media host, with its configuration and metadata on local volumes and the podcast library on the NAS. Traefik, certificates and backups were already in place.
  • Login. ABS speaks OIDC, so it signs in through Authentik like Immich and Paperless. Roles come from groups: one for admins, one for users. There is no forward auth in front of it, because that would break the token calls Music Assistant makes.
  • A bootstrap in Ansible. ABS keeps nearly all of its settings in its database, not in environment variables. So an Ansible task talks to its API: it creates the library, sets the OIDC settings, creates the users and creates an API key for Music Assistant. The keys go straight into Vault, nothing is typed in the UI, and re-running the pipeline is safe.
  • Feeds as a list. The podcasts I want are a list in the Ansible variables: the CheckPod episodes that are missing from my partner’s files, “On the Way to New Work”, and the OMR Podcast. Each entry has a feed URL and a number of episodes to fetch first, so adding a podcast is a one-line merge request.
  • An intake for plain files. Files without a feed, like my partner’s export, go into a drop folder on the media host. A small script tags each file with mutagen (podcast title, episode title, a full publication date, episode number), moves it into the library under one folder per podcast, and triggers an ABS scan. A systemd path unit and a 15-minute timer start it. The timer is needed because file events do not fire reliably for writes that other machines make on a network share.
  • The house. Music Assistant reads ABS, and the “Musik” tab of my Home Assistant dashboard has a “Podcasts” row with the newest episode first. A queue sheet shows what comes next, which is all Music Assistant’s API tells me about the queue.

The tags matter: Music Assistant sorts episodes by publication date, and a tag with only a year ties every episode on 1 January. Without a full date the row has no useful order.

What went wrong

The build was quick. The pitfalls took longer, and they are why I wrote this down.

1. Authentik: “Invalid grant_type for provider”

The first login ended with Invalid grant_type for provider. Authentik rejected the login at the token step. The cause: an OAuth2 provider created in Authentik 2026.2 or later has no grant types unless you set them explicitly. The fix is one attribute in the OpenTofu code that lists the allowed grant types. If old provider code fails at the token endpoint on a new Authentik version, look there first.

2. ABS redirects to /undefined/auth/openid/callback

The next failure was a redirect to a URL with the literal word undefined in the path. ABS has a setting for a subfolder in the redirect URL, and when it is not set at all, the string “undefined” ends up in the callback. Setting it to an empty string fixes it, and the bootstrap now sets it explicitly with the other OIDC settings.

3. rename(2) fails across two paths on one NFS export

This one cost me the most, because I blamed the wrong thing first. The intake script moves a file from the drop folder to the library with a plain mv, and that failed with Invalid cross-device link (EXDEV). Both folders live on the same NFS export, so I assumed the NAS refuses the rename and wrote a workaround for it. It did not help.

The real cause is systemd. The service runs with ReadWritePaths=, and each path in that list becomes its own bind mount in the service’s namespace. A rename between two bind mounts crosses mount points, and the kernel refuses it with EXDEV, even when both paths are the same filesystem on the other side. The fix is to put the drop folder and the library under one listed path, and I reverted the NAS workaround. The lesson: when a rename fails on paths you know are one filesystem, ask what the mount namespace looks like before you ask what the filesystem does.

4. ABS hides explicit podcasts

New Work showed up in the ABS web interface for me and was missing for Music Assistant. The feed carries itunes:explicit, and ABS hides such podcasts from users that lack the permission to see explicit content. Users who sign up through OIDC do not have it, and neither has the service user. I now grant that permission through a list in code, to exactly the users who should have it. Everyone else keeps the restrictive default, which is right in a house with a child.

5. The cover that arrives under the wrong key

Podcasts that I created from a feed had no cover. ABS has an endpoint that parses a feed and returns the artwork as metadata.image. The endpoint that creates the podcast only downloads the cover when it finds metadata.imageUrl. Two endpoints of one product use two names for the same thing, so the cover is dropped silently. The bootstrap maps the field and also fetches covers for existing items that have none.

6. semantic-release 26 ignores the shared config

This one is not about ABS, but it happened the same day. One of my services stopped releasing: the job failed with a missing GitHub token, although it publishes to GitLab. Renovate had moved my repositories to semantic-release 26. That version merges its own default plugins (npm, GitHub) over a shareable config that is passed with --extends, so the plugins of my shared CI template were replaced by the defaults.

The fix in the shared template: the job writes a small release.config.cjs that requires the shared config, and runs semantic-release without --extends. A config file is merged after the defaults and wins. I tested the script block with both major versions. A real release I could not test without a token, so the first pipeline on main after the merge is the real test.

Things I did not verify

  • The Music Assistant provider and ABS come from different release lines. They work together today, but I have not looked for a compatibility matrix.
  • The queue sheet shows only the next item, because that is all the API returns. Speaker groups I have not tested in the house yet.
  • My partner’s MP3s were already tagged, which was luck. I do not know how the intake behaves with badly tagged files. Files without a date stay in the drop folder on purpose, so a bad file stops and does not pollute the library.
  • Two other Music Assistant podcast providers gave me podcasts without playable episodes (Unable to resolve episode). I did not find out why, removed them and subscribe to those feeds in ABS instead.

Does it work?

Yes, for the case that started it. 118 CheckPod episodes are in the library, the newest one is first in the “Podcasts” row, and Music Assistant plays it on the speakers. The three feeds are configured as code. Whether the intake holds up with the next batch of files, I will see in a few weeks.

The part I would repeat is the order of work: the service and the login first, the API bootstrap second, the feeds third. Every pitfall showed up as a failed pipeline run and was fixed in a merge request, never by a hand edit on a server. When I rebuild the host, ABS comes back with its users, its library, its feeds and those fixes.

Further reading

  • My Ultimate Self-hosting Setup: another self-hosted stack built with Ansible and Traefik.
  • Lidify: a music app that also handles podcast subscriptions and integrates with Audiobookshelf.