librenms / docker

LibreNMS Docker image
MIT License
693 stars 281 forks source link

Docker env file MYSQL_PASSWORD cannot contain a `\` (backslash) #450

Closed jwhips closed 3 months ago

jwhips commented 4 months ago

Support guidelines

I've found a bug and checked that ...

Description

I have been running 23.11 for a few months without issue.
I did a docker compose down / pull / up and librenms failed to start. Reverting back to 23.11 causes the issue to go away.

Expected behaviour

I was expecting the new version of librenms to launch without issue.

Actual behaviour

I am getting two consistent errors in my docker compose logs ; this is one of them. Unsure if the two are related.

Steps to reproduce

  1. login to ubuntu 22 LTS server
  2. navigate to librenms folder
  3. docker compose down
  4. docker compose pull
  5. docker compose up -d

Docker info

Client:
 Version:    24.0.5
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.2
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.20.3
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 11
  Running: 7
  Paused: 0
  Stopped: 4
 Images: 12
 Server Version: 24.0.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version: 
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.5.0-45-generic
 Operating System: Ubuntu Core 22
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 1.814GiB
 Name: docker01
 ID: 4fc29f21-e8d9-49d9-a327-517ec22a2d71
 Docker Root Dir: /var/snap/docker/common/var-lib-docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Docker Compose config

name: librenms

services:
  db:
    image: mariadb:10.5
    container_name: librenms_db
    command:
      - "mysqld"
      - "--innodb-file-per-table=1"
      - "--lower-case-table-names=0"
      - "--character-set-server=utf8mb4"
      - "--collation-server=utf8mb4_unicode_ci"
    volumes:
      - "./db:/var/lib/mysql"
    environment:
      - "TZ=${TZ}"
      - "MYSQL_ALLOW_EMPTY_PASSWORD=yes"
      - "MYSQL_DATABASE=${MYSQL_DATABASE}"
      - "MYSQL_USER=${MYSQL_USER}"
      - "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
    restart: always

  redis:
    image: redis:5.0-alpine
    container_name: librenms_redis
    environment:
      - "TZ=${TZ}"
    restart: always

  msmtpd:
    image: crazymax/msmtpd:latest
    container_name: librenms_msmtpd
    env_file:
      - "./msmtpd.env"
    restart: always

  librenms:
    image: librenms/librenms:latest
    container_name: librenms
    hostname: librenms
    cap_add:
      - NET_ADMIN
      - NET_RAW
    ports:
      - target: 8000
        published: 8000
        protocol: tcp
    depends_on:
      - db
      - redis
      - msmtpd
    volumes:
      - "./librenms:/data"
    env_file:
      - "./librenms.env"
    environment:
      - "TZ=${TZ}"
      - "PUID=${PUID}"
      - "PGID=${PGID}"
      - "DB_HOST=db"
      - "DB_NAME=${MYSQL_DATABASE}"
      - "DB_USER=${MYSQL_USER}"
      - "DB_PASSWORD=${MYSQL_PASSWORD}"
      - "DB_TIMEOUT=60"
    restart: always

  dispatcher:
    image: librenms/librenms:latest
    container_name: librenms_dispatcher
    hostname: librenms-dispatcher
    cap_add:
      - NET_ADMIN
      - NET_RAW
    depends_on:
      - librenms
      - redis
    volumes:
      - "./librenms:/data"
    env_file:
      - "./librenms.env"
    environment:
      - "TZ=${TZ}"
      - "PUID=${PUID}"
      - "PGID=${PGID}"
      - "DB_HOST=db"
      - "DB_NAME=${MYSQL_DATABASE}"
      - "DB_USER=${MYSQL_USER}"
      - "DB_PASSWORD=${MYSQL_PASSWORD}"
      - "DB_TIMEOUT=60"
      - "DISPATCHER_NODE_ID=dispatcher1"
      - "SIDECAR_DISPATCHER=1"
    restart: always

  syslogng:
    image: librenms/librenms:latest
    container_name: librenms_syslogng
    hostname: librenms-syslogng
    cap_add:
      - NET_ADMIN
      - NET_RAW
    depends_on:
      - librenms
      - redis
    ports:
      - target: 514
        published: 514
        protocol: tcp
      - target: 514
        published: 514
        protocol: udp
    volumes:
      - "./librenms:/data"
    env_file:
      - "./librenms.env"
    environment:
      - "TZ=${TZ}"
      - "PUID=${PUID}"
      - "PGID=${PGID}"
      - "DB_HOST=db"
      - "DB_NAME=${MYSQL_DATABASE}"
      - "DB_USER=${MYSQL_USER}"
      - "DB_PASSWORD=${MYSQL_PASSWORD}"
      - "DB_TIMEOUT=60"
      - "SIDECAR_SYSLOGNG=1"
    restart: always

  snmptrapd:
    image: librenms/librenms:latest
    container_name: librenms_snmptrapd
    hostname: librenms-snmptrapd
    cap_add:
      - NET_ADMIN
      - NET_RAW
    depends_on:
      - librenms
      - redis
    ports:
      - target: 162
        published: 162
        protocol: tcp
      - target: 162
        published: 162
        protocol: udp
    volumes:
      - "./librenms:/data"
    env_file:
      - "./librenms.env"
    environment:
      - "TZ=${TZ}"
      - "PUID=${PUID}"
      - "PGID=${PGID}"
      - "DB_HOST=db"
      - "DB_NAME=${MYSQL_DATABASE}"
      - "DB_USER=${MYSQL_USER}"
      - "DB_PASSWORD=${MYSQL_PASSWORD}"
      - "DB_TIMEOUT=60"
      - "SIDECAR_SNMPTRAPD=1"
    restart: always

Logs

librenms_db         | 2024-07-29 12:50:57-04:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.25+maria~ubu2004 started.
librenms_db         | 2024-07-29 12:50:58-04:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
librenms_db         | 2024-07-29 12:50:58-04:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.25+maria~ubu2004 started.
librenms_db         | 2024-07-29 12:50:59-04:00 [Note] [Entrypoint]: MariaDB upgrade not required
librenms_db         | 2024-07-29 12:50:59 0 [Note] Starting MariaDB 10.5.25-MariaDB-ubu2004 source revision 29c185bd771ac441121468b3850d6dc8d13b8a1f as process 1
librenms_db         | 2024-07-29 12:50:59 0 [Note] InnoDB: Uses event mutexes
librenms_db         | 2024-07-29 12:50:59 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
librenms_db         | 2024-07-29 12:50:59 0 [Note] InnoDB: Number of pools: 1
librenms_db         | 2024-07-29 12:50:59 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
librenms_db         | 2024-07-29 12:50:59 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: Using Linux native AIO
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
librenms            | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_msmtpd     | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_syslogng   | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_syslogng    | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_syslogng    | [fix-attrs.d] applying ownership & permissions fixes...
librenms_syslogng    | [fix-attrs.d] done.
librenms_syslogng    | [cont-init.d] executing container initialization scripts...
librenms_syslogng    | [cont-init.d] 00-fix-logs.sh: executing... 
librenms_syslogng    | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_syslogng    | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_syslogng    | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms_syslogng    | [cont-init.d] 02-fix-perms.sh: executing... 
librenms_syslogng    | Fixing perms...
librenms_syslogng    | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_syslogng    | [cont-init.d] 03-config.sh: executing... 
librenms_syslogng    | Setting timezone to America/New_York...
librenms_syslogng    | Setting PHP-FPM configuration...
librenms_syslogng    | Setting PHP INI configuration...
librenms_syslogng    | Setting OpCache configuration...
librenms_syslogng    | Setting Nginx configuration...
librenms_syslogng    | Updating SNMP community...
librenms_syslogng    | Initializing LibreNMS files / folders...
librenms_syslogng    | Setting LibreNMS configuration...
librenms_syslogng    | Checking LibreNMS plugins...
librenms_syslogng    | Fixing perms...
librenms_syslogng    | Checking additional Monitoring plugins...
librenms_syslogng    | Checking alert templates...
librenms_syslogng    | [cont-init.d] 03-config.sh: exited 0.
librenms_syslogng    | [cont-init.d] 04-svc-main.sh: executing... 
librenms_syslogng    | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_syslogng    | [cont-init.d] 05-svc-dispatcher.sh: executing... 
librenms_syslogng    | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_syslogng    | [cont-init.d] 06-svc-syslogng.sh: executing... 
librenms_syslogng    | >>
librenms_syslogng    | >> Sidecar syslog-ng container detected
librenms_syslogng    | >>
librenms_syslogng    | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_syslogng    | [cont-init.d] 07-svc-cron.sh: executing... 
librenms_syslogng    | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_syslogng    | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms_syslogng    | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_syslogng    | [cont-init.d] ~-socklog: executing... 
librenms_syslogng    | [cont-init.d] ~-socklog: exited 0.
librenms_syslogng    | [cont-init.d] done.
librenms_syslogng    | [services.d] starting services
librenms_syslogng    | [services.d] done.
librenms_syslogng    | [2024-07-29T12:51:07.290104] WARNING: Your configuration file uses an obsoleted keyword, please update your configuration; keyword='stats_freq', change='Use the stats() block. E.g. stats(freq(1));', location='/etc/syslog-ng/syslog-ng.conf:11:5'
librenms_syslogng    | [2024-07-29T12:51:07.299543] WARNING: window sizing for tcp sources were changed in syslog-ng 3.3, the configuration value was divided by the value of max-connections(). The result was too small, clamping to value of min_iw_size_per_reader. Ensure you have a proper log_fifo_size setting to avoid message loss.; orig_log_iw_size='3', new_log_iw_size='100', min_iw_size_per_reader='100', min_log_fifo_size='30000'
librenms_dispatcher  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_dispatcher  | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_dispatcher  | [fix-attrs.d] applying ownership & permissions fixes...
librenms_dispatcher  | [fix-attrs.d] done.
librenms_dispatcher  | [cont-init.d] executing container initialization scripts...
librenms_dispatcher  | [cont-init.d] 00-fix-logs.sh: executing... 
librenms_dispatcher  | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_dispatcher  | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 02-fix-perms.sh: executing... 
librenms_dispatcher  | Fixing perms...
librenms_dispatcher  | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 03-config.sh: executing... 
librenms_dispatcher  | Setting timezone to America/New_York...
librenms_dispatcher  | Setting PHP-FPM configuration...
librenms_dispatcher  | Setting PHP INI configuration...
librenms_dispatcher  | Setting OpCache configuration...
librenms_dispatcher  | Setting Nginx configuration...
librenms_dispatcher  | Updating SNMP community...
librenms_dispatcher  | Initializing LibreNMS files / folders...
librenms_dispatcher  | Setting LibreNMS configuration...
librenms_dispatcher  | Checking LibreNMS plugins...
librenms_dispatcher  | Fixing perms...
librenms_dispatcher  | Checking additional Monitoring plugins...
librenms_dispatcher  | Checking alert templates...
librenms_dispatcher  | [cont-init.d] 03-config.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 04-svc-main.sh: executing... 
librenms_dispatcher  | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 05-svc-dispatcher.sh: executing... 
librenms_dispatcher  | >>
librenms_dispatcher  | >> Sidecar dispatcher container detected
librenms_dispatcher  | >>
librenms_dispatcher  | Waiting 60s for database to be ready...
librenms_dispatcher  | Database ready!
librenms_dispatcher  | NODE_ID: dispatcher1
librenms_dispatcher  | Setting Redis
librenms_dispatcher  | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 06-svc-syslogng.sh: executing... 
librenms_dispatcher  | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 07-svc-cron.sh: executing... 
librenms_dispatcher  | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms_dispatcher  | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_dispatcher  | [cont-init.d] ~-socklog: executing... 
librenms_dispatcher  | [cont-init.d] ~-socklog: exited 0.
librenms_dispatcher  | [cont-init.d] done.
librenms_dispatcher  | [services.d] starting services
librenms_dispatcher  | [services.d] done.
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_dispatcher  | MainThread(CRITICAL):Error in config fetching process: 1
librenms_dispatcher  | MainThread(CRITICAL):ERROR: Could not execute command [['/usr/bin/env', 'php', '/opt/librenms/config_to_json.php']]: Expecting value: line 1 column 1 (char 0)
librenms_dispatcher  | 'NoneType' object has no attribute 'get'
librenms_snmptrapd  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_snmptrapd   | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_snmptrapd   | [fix-attrs.d] applying ownership & permissions fixes...
librenms_snmptrapd   | [fix-attrs.d] done.
librenms_snmptrapd   | [cont-init.d] executing container initialization scripts...
librenms_snmptrapd   | [cont-init.d] 00-fix-logs.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 02-fix-perms.sh: executing... 
librenms_snmptrapd   | Fixing perms...
librenms_snmptrapd   | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 03-config.sh: executing... 
librenms_snmptrapd   | Setting timezone to America/New_York...
librenms_snmptrapd   | Setting PHP-FPM configuration...
librenms_snmptrapd   | Setting PHP INI configuration...
librenms_snmptrapd   | Setting OpCache configuration...
librenms_snmptrapd   | Setting Nginx configuration...
librenms_snmptrapd   | Updating SNMP community...
librenms_snmptrapd   | Initializing LibreNMS files / folders...
librenms_snmptrapd   | Setting LibreNMS configuration...
librenms_snmptrapd   | Checking LibreNMS plugins...
librenms_snmptrapd   | Fixing perms...
librenms_snmptrapd   | Checking additional Monitoring plugins...
librenms_msmtpd      | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_msmtpd      | [fix-attrs.d] applying ownership & permissions fixes...
librenms_msmtpd      | [fix-attrs.d] done.
librenms_msmtpd      | [cont-init.d] executing container initialization scripts...
librenms_msmtpd      | [cont-init.d] 00-fix-logs.sh: executing... 
librenms_msmtpd      | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_msmtpd      | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_msmtpd      | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms_msmtpd      | [cont-init.d] 02-config.sh: executing... 
librenms_msmtpd      | Setting timezone to UTC...
librenms_msmtpd      | Creating configuration...
librenms_msmtpd      | [cont-init.d] 02-config.sh: exited 0.
librenms_msmtpd      | [cont-init.d] 03-create-service.sh: executing... 
librenms_msmtpd      | [cont-init.d] 03-create-service.sh: exited 0.
librenms_msmtpd      | [cont-init.d] ~-socklog: executing... 
librenms_msmtpd      | [cont-init.d] ~-socklog: exited 0.
librenms_msmtpd      | [cont-init.d] done.
librenms_msmtpd      | [services.d] starting services
librenms_msmtpd      | [services.d] done.
librenms_snmptrapd   | Checking alert templates...
librenms_redis       | 1:C 29 Jul 2024 12:50:57.407 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
librenms_redis       | 1:C 29 Jul 2024 12:50:57.407 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started
librenms_redis       | 1:C 29 Jul 2024 12:50:57.407 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
librenms_redis       | 1:M 29 Jul 2024 12:50:57.409 * Increased maximum number of open files to 10032 (it was originally set to 1024).
librenms_redis       | 1:M 29 Jul 2024 12:50:57.411 * Running mode=standalone, port=6379.
librenms_redis       | 1:M 29 Jul 2024 12:50:57.411 # Server initialized
librenms_redis       | 1:M 29 Jul 2024 12:50:57.411 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
librenms_redis       | 1:M 29 Jul 2024 12:50:57.411 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
librenms_redis       | 1:M 29 Jul 2024 12:50:57.412 * DB loaded from disk: 0.000 seconds
librenms_redis       | 1:M 29 Jul 2024 12:50:57.412 * Ready to accept connections
librenms_snmptrapd   | [cont-init.d] 03-config.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 04-svc-main.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 05-svc-dispatcher.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 06-svc-syslogng.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 07-svc-cron.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms_snmptrapd   | >>
librenms_snmptrapd   | >> Sidecar snmptrapd container detected
librenms_snmptrapd   | >>
librenms_snmptrapd   | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] ~-socklog: executing... 
librenms_snmptrapd   | [cont-init.d] ~-socklog: exited 0.
librenms_snmptrapd   | [cont-init.d] done.
librenms_snmptrapd   | [services.d] starting services
librenms_snmptrapd   | [services.d] done.
librenms             | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: Completed initialization of buffer pool
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: 128 rollback segments are active.
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: Creating shared tablespace for temporary tables
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
librenms             | [fix-attrs.d] applying ownership & permissions fixes...
librenms             | [fix-attrs.d] done.
librenms             | [cont-init.d] executing container initialization scripts...
librenms             | [cont-init.d] 00-fix-logs.sh: executing... 
librenms             | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms             | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: 10.5.25 started; log sequence number 19859277298; transaction id 121152204
librenms_db          | 2024-07-29 12:50:59 0 [Note] Plugin 'FEEDBACK' is disabled.
librenms_db          | 2024-07-29 12:50:59 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
librenms_db          | 2024-07-29 12:50:59 0 [Note] Server socket created on IP: '::'.
librenms             | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms             | [cont-init.d] 02-fix-perms.sh: executing... 
librenms             | Fixing perms...
librenms             | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms             | [cont-init.d] 03-config.sh: executing... 
librenms             | Setting timezone to America/New_York...
librenms             | Setting PHP-FPM configuration...
librenms             | Setting PHP INI configuration...
librenms             | Setting OpCache configuration...
librenms             | Setting Nginx configuration...
librenms             | Updating SNMP community...
librenms             | Initializing LibreNMS files / folders...
librenms             | Setting LibreNMS configuration...
librenms             | Checking LibreNMS plugins...
librenms_db          | 2024-07-29 12:50:59 0 [Note] Reading of all Master_info entries succeeded
librenms_db          | 2024-07-29 12:50:59 0 [Note] Added new Master_info '' to hash table
librenms_db          | 2024-07-29 12:50:59 0 [Note] mysqld: ready for connections.
librenms_db          | Version: '10.5.25-MariaDB-ubu2004'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
librenms_db          | 2024-07-29 12:51:00 0 [Note] InnoDB: Buffer pool(s) load completed at 240729 12:51:00
librenms             | Fixing perms...
librenms             | Checking additional Monitoring plugins...
librenms             | Checking alert templates...
librenms             | [cont-init.d] 03-config.sh: exited 0.
librenms             | [cont-init.d] 04-svc-main.sh: executing... 
librenms             | Waiting 60s for database to be ready...
librenms             | Database ready!
librenms             | Updating database schema...
librenms             | The environment file is invalid!
librenms             | Failed to parse dotenv file. Encountered an unexpected escape sequence at ["Obfuscated\!KB111111Q"].
librenms             | [cont-init.d] 04-svc-main.sh: exited 1.

Additional info

This appears to be the problem.

Failed to parse dotenv file. Encountered an unexpected escape sequence at ["Obfuscated\!KB111111Q"].

Changing the compose file to image: librenms/librenms:23.11.0 fixes the issue.

I also see other errors in the logs, unsure what they are or if they should be a concern. Thank you for all you do.

jwhips commented 3 months ago

I can confirm the fix was to login to the running container (that fails to launch LibreNMS), change the database password to not have a "\" (backslash) and then update the env file with that new password and then I was able to update to the latest version of LibreNMS.

I'd advise that a new instance should avoid a backslash in the database password.