Skip to content

[BUG] /docker-mods: line 1: syntax error near unexpected token `newline' #312

@zoltrons

Description

@zoltrons

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Today, randomly, I started to get an error when I tried to start the container. I didn't change any setting but i did sudo apt update and upgrade.

Expected Behavior

No response

Steps To Reproduce

  1. start the container with docker compose up -d

Environment

- OS: RaspberryOS Debian 12
- How docker service was installed: distro's packagemanager

CPU architecture

arm64

Docker creation

version: "3.9"

services:
  jellyfin:
    image: ghcr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1000                     # Use `id -u` if different
      - PGID=1000                     # Use `id -g` if different
      - TZ=Europe/Istanbul
    volumes:
      - ./config:/config
      - /hdd/data/media/tv:/data/tvshows
      - /hdd/data/media/movies:/data/movies
      - /hdd/data/media/musics:/data/musics
    ports:
      - 8096:8096
    devices:
      - /dev/dri:/dev/dri             # Hardware acceleration (VAAPI)
    restart: unless-stopped
    mem_limit: 512m                  # Prevent full memory use
    cpus: 1.5                         # Use up to 1.5 CPU cores
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"
    networks:
      - media_net

networks:
  media_net:
    driver: bridge

Container logs

/docker-mods: line 1: syntax error near unexpected token `newline'
/docker-mods: line 1: `#!/command/with-contenv bash'
/run/s6/basedir/scripts/rc.init: warning: hook /docker-mods exited 2
/usr/bin/with-contenv: line 1: syntax error near unexpected token `newline'
/usr/bin/with-contenv: line 1: syntax error near unexpected token `newline'
/usr/bin/with-contenv: line 1: `#!/bin/bash'
/usr/bin/with-contenv: line 1: `#!/bin/bash'
s6-rc: warning: unable to start service init-envfile: command exited 2
s6-rc: warning: unable to start service init-migrations: command exited 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions