doitandbedone/ispyagentdvr-docker

[Compose] Container never starts

UntouchedWagons opened this issue · 11 comments

Affected Version

Don't know, container never starts

Describe the bug

Container doesn't start

Steps To Reproduce
Steps to reproduce the behavior:

  1. Run docker compose up
  2. Nothing happens

Expected behavior

The container to start

Reproduction rate
100%

Screenshots

MobaXterm_91mNDyh62b

Host System Information (where ispy agent is running/hosted):

  • OS: Ubuntu 22.04

Additional Information

version: '3.3'
services:
  ispyagentdvr:
    ports:
      - '8090:8090'
      - '50000-50010:50000-50010/udp'
    volumes:
      - ispyagentdvr-commands:/agent/Commands/'
      - ispyagentdvr-data:/agent/Media/XML/'
      - ispyagentdvr-media:/agent/Media/WebServerRoot/Media/'
    environment:
      - TZ=America/Toronto
    container_name: ispyagentdvr
    image: doitandbedone/ispyagentdvr
    networks:
      - default
      - docker_default

volumes:
  ispyagentdvr-data:
  ispyagentdvr-commands:
  ispyagentdvr-media:

networks:
  default:
  docker_default:
    external: true

ispyagentdvr-media is an NFS volume which would normally use my real name, but the other two volumes are bog standard volumes that docker manages for me.

I have another docker stack with NFS backed docker volumes that work fine.

No there's nothing at all, the screenshot I included in the opening comment is all I get.

Never ran the image in compose. Will have to run it as barebones as possible though.

Used Composerize and got this yaml file:

version: '3.3'
services:
    ispyagentdvr:
        ports:
            - '8090:8090'
            - '3478:3478/udp'
            - '50000-50010:50000-50010/udp'
        volumes:
            - '/appdata/ispyagentdvr/config/:/agent/Media/XML/'
            - '/appdata/ispyagentdvr/media/:/agent/Media/WebServerRoot/Media/'
            - '/appdata/ispyagentdvr/commands:/agent/Commands/'
        environment:
            - TZ=America/Los_Angeles
        container_name: ispyagentdvr
        image: doitandbedone/ispyagentdvr

Take notice at the single quotes for volumes. Seems you are missing the opening ones. Also missing the UDP port. The second volumes statement again seems like it's missing entries as per the prebious link I posted too.

Well that's embarrassing. But even after fixing the quotes the container still won't start

version: '3.3'
services:
  ispyagentdvr:
    container_name: ispyagentdvr
    image: doitandbedone/ispyagentdvr
    restart: unless-stopped
    ports:
      - '8090:8090'
      - '50000-50010:50000-50010/udp'
    volumes:
      - 'ispyagentdvr-commands:/agent/Commands/'
      - 'ispyagentdvr-data:/agent/Media/XML/'
      - 'ispyagentdvr-media:/agent/Media/WebServerRoot/Media/'
    environment:
      - 'TZ=America/Toronto'
    networks:
      - default
      - docker_default

volumes:
  ispyagentdvr-data:
  ispyagentdvr-commands:
  ispyagentdvr-media:

networks:
  default:
  docker_default:
    external: true

I can't forward port 3478 because my Unifi controller is using it for... something,

if it doesn't have 3478 it won't work. That's the port the stun server listens on and without stun you won't be able to connect to it.

MrSiO commented

Hi.
I saw you try to start the container using that command:

docker compose up

Just to make sure, you have to do the following commands in that order:

docker-compose create
docker-compose start

Make sure to use the dash "-" between docker and compose.

(you might get a warning that Start is depricated but it should start anyway)

Also,
I'm basically running the same compose you do but on version 3.5 and no quotes at all on volumes. Might wanna try.

@UntouchedWagons did you try @MrSiO suggestion?

docker compose up is fine when using the compose plugin. I'm going to keep using Blue Iris.