[Solved] yams stop - Failed to stop services

Questions about Jellyfin.
Post Reply
labs
Posts: 4
Joined: Wed Jul 23, 2025 8:27 am
Gender:
Brazil

[Solved] yams stop - Failed to stop services

Post by labs »

Hi all. Yesterday I fully set up the media centre using yams, all is working well until the point I started faffing around trying to add a new volume to expand the storage, which worked and did not work.

The procedure was editing the volumes bit in the docker-compose file, stopping the service, saving the file then re-starting the services. At some point I miss alt-tabbed and I believe I added (or removed) some wrong character to the file rendering any "yams start" or "yams stop" useless, which return the following to me:

Code: Select all

service "jellyfin" refers to undefined volume jellyfin: invalid compose project
Failed to stop services

Everything works. Jellyfin is streaming to devices, sonarr and radarr are downloading, and vpn checks are good.

The jellyfin code bit looks like this: - As I am new to yams, ofc, I don't have a backup of the compose file therefore I don't know how it should look like.

Code: Select all

services:
  # jellyfin is used to serve your media to the client devices
  jellyfin:
    image: lscr.io/linuxserver/${MEDIA_SERVICE}
    container_name: ${MEDIA_SERVICE}
    #network_mode: host # plex
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - VERSION=docker
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}:/config
      - ${MEDIA_SERVICE}:/config
    ports: # plex
      - 8096:8096 # plex
    restart: unless-stopped

Any ideas about what could be causing this error?

Thank you in advance.

User avatar
rogs
Site Admin
Posts: 404
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: yams stop - Failed to stop services

Post by rogs »

Hey @labs!

I have one question: What does - ${MEDIA_SERVICE}:/config do? You are mounting a volume twice on the same directory, that's most likely your problem.

Cheers!

Roger.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
labs
Posts: 4
Joined: Wed Jul 23, 2025 8:27 am
Gender:
Brazil

Re: yams stop - Failed to stop services

Post by labs »

Key @rogs, I was about to edit the post with the solution. I found the original compose file here https://gitlab.com/rogs/yams/-/blob/mas ... type=heads then compared both.
Apparently I deleted part of the

Code: Select all

- ${INSTALL_DIRECTORY}/config/${MEDIA_SERVICE}:/config

it was just

Code: Select all

- ${INSTALL_DIRECTORY}/config

Adding the rest of the string "/${MEDIA_SERVICE}:/config" brought everything back as normal. Now I can stop and start the services.

It now looks like this

Code: Select all

volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${MEDIA_DIRECTORY}:/data
      - ${INSTALL_DIRECTORY}/config/${MEDIA_SERVICE}:/config

TIA

Last edited by labs on Wed Jul 23, 2025 12:57 pm, edited 1 time in total.
User avatar
rogs
Site Admin
Posts: 404
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: yams stop - Failed to stop services

Post by rogs »

Yes, that's the solution! I'm glad you were able to fix it :mrgreen:

If you want to add more services to YAMS you can use this documentation: https://yams.media/advanced/add-your-own-containers/

I'll mark this issue as solved!

Cheers!

Roger.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
Post Reply