zoneminder-containers / zoneminder-base

An always up-to-date automatically building ZoneMinder container
101 stars 32 forks source link

ERR_CONNECTION_REFUSED after fresh install #30

Closed avp90 closed 2 years ago

avp90 commented 2 years ago

What are you using in your docker compose file? It seems that zoneminder is having issues starting up.

Originally posted by @alexyao2015 in https://github.com/zoneminder-containers/zoneminder-base/issues/29#issuecomment-1067273573

That's the docker-compose.yml file content:

version: '3.6'

services:
  # !! WARNING: !!
  # If using linuxserver/mariadb, you will need to add
  # skip-log-bin to mysqld and disable all log_bin options
  db:
    image: mariadb:10.7.3
    restart: always
    container_name: zm_db
    ports:
      - 3306:3306
    volumes:
      - ./zm/db:/var/lib/mysql
    environment:
      - MYSQL_DATABASE=zm
    env_file:
      - ./.env

  zoneminder:
    image: ghcr.io/zoneminder-containers/zoneminder-base:1.36.12
    restart: always
    container_name: zm
    stop_grace_period: 45s
    depends_on:
      - db
    ports:
      - 80:80
    volumes:
      - ./zm/data:/data
      - ./zm/config:/config
      - ./zm/log:/log
      - type: tmpfs
        target: /dev/shm
        tmpfs:
          size: 1000000000
    env_file:
      - ./.env
alexyao2015 commented 2 years ago

I mean diagnosing this issue isn't cut and dry. It seems like it's only happening on your machine as I'm not seeing it and it's also not coming up in automated tests. I suggest you try a different machine and if that fails. Please post a more detailed description of your setup, files in the directory, logs detailing the issue, and environment. The more information the better, otherwise there is absolutely no way I can even consider helping to debug this.

avp90 commented 2 years ago

Okay, will post next week some logs. Thanks

avp90 commented 2 years ago

Sorry my fault. I didn't setZM_SERVER_HOST. So nginx is not starting.