Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

[Issue]: group_add doesn't support integer in Compose v2 #661

Closed
1 task done
SyRaza opened this issue Apr 28, 2022 · 4 comments · Fixed by jellyfin/jellyfin.org#272
Closed
1 task done

[Issue]: group_add doesn't support integer in Compose v2 #661

SyRaza opened this issue Apr 28, 2022 · 4 comments · Fixed by jellyfin/jellyfin.org#272
Labels

Comments

@SyRaza
Copy link

SyRaza commented Apr 28, 2022

Please describe your bug

I reinstalled my server yesterday from scratch and of course installed docker and docker compose as per the website. Docker Compose v1.2.9 was still the primary install version yesterday, with the option to install Docker Compose 2.4.1.

As of today, Docker Compose 1.2.9 is deprecated and the primary installation on docker's website is Docker Compose 2.4.1.

I decided to upgrade my Docker Compose version. My docker compose yaml file worked perfectly on 1.2.9 but wouldn't run on 2.4.1.

The error I got was 'group_add[0]' expected type 'string', got unconvertible type 'int', value: '109''group_add[0]' expected type 'string', got unconvertible type 'int', value: '109'

My Jellyfin compose configuration is the only one using group_add. After disabling the Jellyfin compose configuration in my yaml file, my file worked perfectly in compose 2.4.1

Here is my jellyfin compose configuration.

# Jellyfin - Software Media System 
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    restart: unless-stopped
    networks:
      - lsio
    group_add:
      - 109
    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    volumes:
      - $USERDIR/docker/jellyfin:/config
      - /mnt/storage/media:/media
      - /mnt/storage/cache:/cache
    environment:
      - PUID=$PUID
      - PGID=$PGID
      - TZ=$TZ
      - JELLYFIN_PublishedServerUrl=[redacted]
      - NVIDIA_VISIBLE_DEVICES=all
      - NVIDIA_DRIVER_CAPABILITIES=all
    devices:
    - /dev/dri:/dev/dri
    - /dev/nvidia0:/dev/nvidia0
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            device_ids: ['0']
            capabilities: [gpu]

For the time being, I've rolled back to Compose v1.2.9 until there is a fix for this.

Jellyfin Version

10.8.0

if other:

No response

Environment

- OS: Ubuntu server 22.04
- Virtualization:
- Clients:Browser,
- Browser:
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- Plugins:
- Reverse Proxy:SWAG
- Base URL:
- Networking:
- Storage:lcal

Jellyfin logs

No response

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SyRaza SyRaza added the bug label Apr 28, 2022
@crobibero
Copy link
Contributor

This sounds more like a documentation issue then a server issue? If you agree I will relocate the issue.

@SyRaza
Copy link
Author

SyRaza commented Apr 28, 2022

Sounds about right. I did try using the string render, instead of the integer associated with it, but that didn't work.

@crobibero crobibero transferred this issue from jellyfin/jellyfin Apr 28, 2022
@Shadowghost
Copy link
Contributor

According to the compose spec it supports name and number.

Can you try with the group name instead of ID?

@EVOTk
Copy link

EVOTk commented Jun 21, 2022

@SyRaza
Hello,
I just had the same issue.
@zackoid help me on Discord.

If the group is 109 , you must indicate:

     group_add:
       - "109"

and no :


     group_add:
       - 109

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

4 participants