Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack not working with SIDECAR_SYSLOGNG #472

Open
3 tasks done
darks00ul opened this issue Nov 29, 2024 · 3 comments
Open
3 tasks done

Stack not working with SIDECAR_SYSLOGNG #472

darks00ul opened this issue Nov 29, 2024 · 3 comments

Comments

@darks00ul
Copy link

Support guidelines

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

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

By default my fresh install works out of the box after cloning this repository and following the guide to start librenms.
Then I tried to use syslog-ng side car, in order to do this I did:

  1. Define "SIDECAR_SYSLOGNG=1" variable on librenms.env
  2. Create syslog.yaml file with "enable_syslog: true"

After this I restart the docker stack and everything boots:

image

But my librenms GUI become unreachable. The logs from failing stack below:

Attaching to librenms, librenms_db, librenms_dispatcher, librenms_msmtpd, librenms_redis, librenms_snmptrapd, librenms_syslogng
librenms_redis | 1:C 29 Nov 2024 07:09:53.854 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see jemalloc/jemalloc#1328. 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:C 29 Nov 2024 07:09:53.854 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
librenms_redis | 1:C 29 Nov 2024 07:09:53.854 * Redis version=7.2.6, bits=64, commit=00000000, modified=0, pid=1, just started
librenms_redis | 1:C 29 Nov 2024 07:09:53.854 # 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 Nov 2024 07:09:53.854 * monotonic clock: POSIX clock_gettime
librenms_redis | 1:M 29 Nov 2024 07:09:53.855 * Running mode=standalone, port=6379.
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * Server initialized
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * Loading RDB produced by version 7.2.6
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * RDB age 1 seconds
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * RDB memory usage when created 1.13 Mb
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * Done loading RDB, keys loaded: 4, keys expired: 0.
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * DB loaded from disk: 0.000 seconds
librenms_redis | 1:M 29 Nov 2024 07:09:53.856 * Ready to accept connections tcp
librenms_msmtpd | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_db | 2024-11-29 07:09:53+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
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_db | 2024-11-29 07:09:54+01:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
librenms_db | 2024-11-29 07:09:54+01:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
librenms_db | 2024-11-29 07:09:54+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria
ubu2204 started.
librenms_msmtpd | [cont-init.d] ~-socklog: exited 0.
librenms_msmtpd | [cont-init.d] done.
librenms | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_msmtpd | [services.d] starting services
librenms_msmtpd | [services.d] done.
librenms_db | 2024-11-29 07:09:54+01:00 [Note] [Entrypoint]: MariaDB upgrade not required
librenms_db | 2024-11-29 7:09:54 0 [Note] Starting MariaDB 10.11.10-MariaDB-ubu2204 source revision 3d0fb150289716ca75cd64d62823cf715ee47646 server_uid yBW10nmMP9MWKjeu9ErQ+vYrBKw= as process 1
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Number of transaction pools: 1
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
librenms_db | 2024-11-29 7:09:54 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
librenms_db | 2024-11-29 7:09:54 0 [Warning] mysqld: io_uring_queue_init() failed with errno 1
librenms_db | 2024-11-29 7:09:54 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Completed initialization of buffer pool
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: End of log at LSN=4986288
librenms | [s6-init] ensuring user provided files have correct perms...exited 0.
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 | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms | [cont-init.d] 02-fix-perms.sh: executing...
librenms | Fixing perms...
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: 128 rollback segments are active.
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: log sequence number 4986288; transaction id 15123
librenms_db | 2024-11-29 7:09:54 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
librenms_db | 2024-11-29 7:09:54 0 [Note] Plugin 'FEEDBACK' is disabled.
librenms_db | 2024-11-29 7:09:54 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
librenms_db | 2024-11-29 7:09:54 0 [Note] Server socket created on IP: '0.0.0.0'.
librenms_db | 2024-11-29 7:09:54 0 [Note] Server socket created on IP: '::'.
librenms_db | 2024-11-29 7:09:54 0 [Note] mysqld: ready for connections.
librenms_db | Version: '10.11.10-MariaDB-ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
librenms_dispatcher | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms | [cont-init.d] 03-config.sh: executing...
librenms | Setting timezone to Europe/Paris...
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_syslogng | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms | Checking LibreNMS plugins...
librenms | Fixing perms...
librenms_snmptrapd | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_db | 2024-11-29 7:09:55 0 [Note] InnoDB: Buffer pool(s) load completed at 241129 7:09:55
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_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_snmptrapd | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_syslogng | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_snmptrapd | [fix-attrs.d] applying ownership & permissions fixes...
librenms_snmptrapd | [fix-attrs.d] done.
librenms_syslogng | [cont-init.d] 01-fix-uidgid.sh: executing...
librenms_snmptrapd | [cont-init.d] executing container initialization scripts...
librenms_snmptrapd | [cont-init.d] 00-fix-logs.sh: executing...
librenms_syslogng | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms_syslogng | [cont-init.d] 02-fix-perms.sh: executing...
librenms_snmptrapd | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_snmptrapd | [cont-init.d] 01-fix-uidgid.sh: executing...
librenms_syslogng | Fixing perms...
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_dispatcher | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_dispatcher | [cont-init.d] 03-config.sh: executing...
librenms_dispatcher | Setting timezone to Europe/Paris...
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_syslogng | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_syslogng | [cont-init.d] 03-config.sh: executing...
librenms_syslogng | Setting timezone to Europe/Paris...
librenms_syslogng | Setting PHP-FPM configuration...
librenms_syslogng | Setting PHP INI configuration...
librenms_snmptrapd | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_syslogng | Setting OpCache configuration...
librenms_syslogng | Setting Nginx configuration...
librenms_snmptrapd | [cont-init.d] 03-config.sh: executing...
librenms_syslogng | Updating SNMP community...
librenms_syslogng | Initializing LibreNMS files / folders...
librenms_snmptrapd | Setting timezone to Europe/Paris...
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_syslogng | Setting LibreNMS configuration...
librenms_snmptrapd | Setting LibreNMS configuration...
librenms_syslogng | Checking LibreNMS plugins...
librenms_syslogng | Fixing perms...
librenms_snmptrapd | Checking LibreNMS plugins...
librenms_snmptrapd | 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 | [cont-init.d] 04-svc-main.sh: exited 0.
librenms | [cont-init.d] 05-svc-dispatcher.sh: executing...
librenms | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms | [cont-init.d] 06-svc-syslogng.sh: executing...
librenms | >>
librenms | >> Sidecar syslog-ng container detected
librenms | >>
librenms | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms | [cont-init.d] 07-svc-cron.sh: executing...
librenms | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms | [cont-init.d] 08-svc-snmptrapd.sh: executing...
librenms | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms | [cont-init.d] ~-socklog: executing...
librenms | [cont-init.d] ~-socklog: exited 0.
librenms | [cont-init.d] done.
librenms | [services.d] starting services
librenms | [2024-11-29T07:09:59.684573] 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_dispatcher | Checking additional Monitoring plugins...
librenms | [services.d] done.
librenms_dispatcher | Checking alert templates...
librenms | [2024-11-29T07:09:59.691563] 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 | [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 | >>
librenms_dispatcher | >> Sidecar syslog-ng container detected
librenms_dispatcher | >>
librenms_syslogng | Checking additional Monitoring plugins...
librenms_syslogng | Checking alert templates...
librenms_snmptrapd | Checking additional Monitoring plugins...
librenms_syslogng | [cont-init.d] 03-config.sh: exited 0.
librenms_snmptrapd | Checking alert templates...
librenms_dispatcher | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_syslogng | [cont-init.d] 04-svc-main.sh: executing...
librenms_snmptrapd | [cont-init.d] 03-config.sh: exited 0.
librenms_dispatcher | [cont-init.d] 07-svc-cron.sh: executing...
librenms_snmptrapd | [cont-init.d] 04-svc-main.sh: executing...
librenms_syslogng | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_dispatcher | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_snmptrapd | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_syslogng | [cont-init.d] 05-svc-dispatcher.sh: executing...
librenms_dispatcher | [cont-init.d] 08-svc-snmptrapd.sh: executing...
librenms_snmptrapd | [cont-init.d] 05-svc-dispatcher.sh: executing...
librenms_dispatcher | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_syslogng | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_snmptrapd | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_dispatcher | [cont-init.d] ~-socklog: executing...
librenms_syslogng | [cont-init.d] 06-svc-syslogng.sh: executing...
librenms_snmptrapd | [cont-init.d] 06-svc-syslogng.sh: executing...
librenms_syslogng | >>
librenms_syslogng | >> Sidecar syslog-ng container detected
librenms_syslogng | >>
librenms_snmptrapd | >>
librenms_snmptrapd | >> Sidecar syslog-ng container detected
librenms_snmptrapd | >>
librenms_snmptrapd | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_syslogng | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_snmptrapd | [cont-init.d] 07-svc-cron.sh: executing...
librenms_syslogng | [cont-init.d] 07-svc-cron.sh: executing...
librenms_snmptrapd | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_syslogng | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_snmptrapd | [cont-init.d] 08-svc-snmptrapd.sh: executing...
librenms_syslogng | [cont-init.d] 08-svc-snmptrapd.sh: executing...
librenms_snmptrapd | >>
librenms_snmptrapd | >> Sidecar snmptrapd container detected
librenms_snmptrapd | >>
librenms_syslogng | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_syslogng | [cont-init.d] ~-socklog: executing...
librenms_snmptrapd | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_snmptrapd | [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 | [2024-11-29T07:10:00.076501] 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_dispatcher | [2024-11-29T07:10:00.082544] 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_syslogng | [cont-init.d] ~-socklog: exited 0.
librenms_syslogng | [cont-init.d] done.
librenms_syslogng | [services.d] starting services
librenms_syslogng | [2024-11-29T07:10:00.138633] 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 | [services.d] done.
librenms_snmptrapd | [cont-init.d] ~-socklog: exited 0.
librenms_snmptrapd | [cont-init.d] done.
librenms_syslogng | [2024-11-29T07:10:00.147542] 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_snmptrapd | [services.d] starting services
librenms_snmptrapd | [2024-11-29T07:10:00.195813] 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_snmptrapd | [services.d] done.
librenms_snmptrapd | [2024-11-29T07:10:00.207775] 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 | librenms-dispatcher(INFO):Watchdog is disabled.
librenms_dispatcher | librenms-dispatcher(INFO):Entering main LibreNMS service loop on 563/librenms-dispatcher...
librenms_dispatcher | librenms-dispatcher(INFO):LibreNMS Service: librenms-dispatcher-90d7fe17-ae18-11ef-a839-0242c0a82006 started!
librenms_dispatcher | librenms-dispatcher(INFO):Poller group 0 (default). Using Python 3.11.10 and redis locks and queues
librenms_dispatcher | librenms-dispatcher(INFO):Queue Workers: Discovery=16 Poller=24 Services=8 Alerting=enabled Billing=enabled Ping=disabled
librenms_dispatcher | librenms-dispatcher(WARNING):Maintenance tasks are disabled.
librenms_dispatcher | librenms-dispatcher(INFO):librenms-dispatcher is now the master dispatcher
librenms_dispatcher | Poller_0-24(INFO):Polling device 2
librenms_dispatcher | Poller_0-24(WARNING):Polling device 2 unreachable, waiting 60s for retry
librenms_dispatcher | Poller_0-24(INFO):Completed poller run for 2 in 2.22s
librenms_dispatcher | Poller_0-24(INFO):Polling device 1
librenms_dispatcher | Billing(INFO):Calculating billing
librenms_dispatcher | Alerting(INFO):Checking alerts
librenms_dispatcher | Billing(INFO):Completed billing run for calculate in 0.48s
librenms_dispatcher | Alerting(INFO):Completed alerting run for alerts in 0.49s
librenms_dispatcher | Poller_0-24(INFO):Completed poller run for 1 in 4.23s

Expected behaviour

As far I understand this variable should enable syslognd side car and the librenms gui should be accesible.

Actual behaviour

When I put "SIDECAR_SYSLOGNG=1" on librenms.env file and restart the stack the librenms is not working.
As soon I configure "SIDECAR_SYSLOGNG=0" or even delete this variable from librenms.env and restart the stack the librenms GUI becomes reachable again.

Steps to reproduce

first:

git clone https://github.com/librenms/docker.git docker-librenms
cd docker-librenms
docker buildx bake
cd ./examples/compose/
docker compose up -d

Try to access http://localhost:8000, it should work
If this works, then try:

docker compose down
echo "SIDECAR_SYSLOGNG=1" >> librenms.env
docker compose up -d

Try again access http://localhost:8000, this time it shouldn't work

Docker info

> docker info
Client: Docker Engine - Community
 Version:    27.3.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.17.1
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.7
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 7
  Running: 7
  Paused: 0
  Stopped: 0
 Images: 15
 Server Version: 27.3.1
 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 splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 57f17b0a6295a39009d861b89e3b3b87b005ca27
 runc version: v1.1.14-0-g2c9f560
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.9.3-76060903-generic
 Operating System: Pop!_OS 22.04 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.28GiB
 Name: pop-os
 ID: c43ffbfb-88af-4f44-9982-13b68bd570fc
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled

Docker Compose config

name: librenms

services:
  db:
    image: mariadb:10
    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}"
      - "MARIADB_RANDOM_ROOT_PASSWORD=yes"
      - "MYSQL_DATABASE=${MYSQL_DATABASE}"
      - "MYSQL_USER=${MYSQL_USER}"
      - "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
    restart: always

  redis:
    image: redis:7.2-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

> Attaching to librenms, librenms_db, librenms_dispatcher, librenms_msmtpd, librenms_redis, librenms_snmptrapd, librenms_syslogng
librenms_redis       | 1:C 29 Nov 2024 07:09:53.854 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. 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:C 29 Nov 2024 07:09:53.854 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
librenms_redis       | 1:C 29 Nov 2024 07:09:53.854 * Redis version=7.2.6, bits=64, commit=00000000, modified=0, pid=1, just started
librenms_redis       | 1:C 29 Nov 2024 07:09:53.854 # 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 Nov 2024 07:09:53.854 * monotonic clock: POSIX clock_gettime
librenms_redis       | 1:M 29 Nov 2024 07:09:53.855 * Running mode=standalone, port=6379.
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * Server initialized
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * Loading RDB produced by version 7.2.6
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * RDB age 1 seconds
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * RDB memory usage when created 1.13 Mb
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * Done loading RDB, keys loaded: 4, keys expired: 0.
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * DB loaded from disk: 0.000 seconds
librenms_redis       | 1:M 29 Nov 2024 07:09:53.856 * Ready to accept connections tcp
librenms_msmtpd      | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_db          | 2024-11-29 07:09:53+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
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_db          | 2024-11-29 07:09:54+01:00 [Warn] [Entrypoint]: /sys/fs/cgroup///memory.pressure not writable, functionality unavailable to MariaDB
librenms_db          | 2024-11-29 07:09:54+01:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
librenms_db          | 2024-11-29 07:09:54+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.11.10+maria~ubu2204 started.
librenms_msmtpd      | [cont-init.d] ~-socklog: exited 0.
librenms_msmtpd      | [cont-init.d] done.
librenms             | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_msmtpd      | [services.d] starting services
librenms_msmtpd      | [services.d] done.
librenms_db          | 2024-11-29 07:09:54+01:00 [Note] [Entrypoint]: MariaDB upgrade not required
librenms_db          | 2024-11-29  7:09:54 0 [Note] Starting MariaDB 10.11.10-MariaDB-ubu2204 source revision 3d0fb150289716ca75cd64d62823cf715ee47646 server_uid yBW10nmMP9MWKjeu9ErQ+vYrBKw= as process 1
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Number of transaction pools: 1
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
librenms_db          | 2024-11-29  7:09:54 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
librenms_db          | 2024-11-29  7:09:54 0 [Warning] mysqld: io_uring_queue_init() failed with errno 1
librenms_db          | 2024-11-29  7:09:54 0 [Warning] InnoDB: liburing disabled: falling back to innodb_use_native_aio=OFF
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Completed initialization of buffer pool
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: End of log at LSN=4986288
librenms             | [s6-init] ensuring user provided files have correct perms...exited 0.
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             | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms             | [cont-init.d] 02-fix-perms.sh: executing... 
librenms             | Fixing perms...
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: 128 rollback segments are active.
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: log sequence number 4986288; transaction id 15123
librenms_db          | 2024-11-29  7:09:54 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
librenms_db          | 2024-11-29  7:09:54 0 [Note] Plugin 'FEEDBACK' is disabled.
librenms_db          | 2024-11-29  7:09:54 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
librenms_db          | 2024-11-29  7:09:54 0 [Note] Server socket created on IP: '0.0.0.0'.
librenms_db          | 2024-11-29  7:09:54 0 [Note] Server socket created on IP: '::'.
librenms_db          | 2024-11-29  7:09:54 0 [Note] mysqld: ready for connections.
librenms_db          | Version: '10.11.10-MariaDB-ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
librenms_dispatcher  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms             | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms             | [cont-init.d] 03-config.sh: executing... 
librenms             | Setting timezone to Europe/Paris...
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_syslogng    | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms             | Checking LibreNMS plugins...
librenms             | Fixing perms...
librenms_snmptrapd   | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
librenms_db          | 2024-11-29  7:09:55 0 [Note] InnoDB: Buffer pool(s) load completed at 241129  7:09:55
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_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_snmptrapd   | [s6-init] ensuring user provided files have correct perms...exited 0.
librenms_syslogng    | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_snmptrapd   | [fix-attrs.d] applying ownership & permissions fixes...
librenms_snmptrapd   | [fix-attrs.d] done.
librenms_syslogng    | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_snmptrapd   | [cont-init.d] executing container initialization scripts...
librenms_snmptrapd   | [cont-init.d] 00-fix-logs.sh: executing... 
librenms_syslogng    | [cont-init.d] 01-fix-uidgid.sh: exited 0.
librenms_syslogng    | [cont-init.d] 02-fix-perms.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 00-fix-logs.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 01-fix-uidgid.sh: executing... 
librenms_syslogng    | Fixing perms...
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_dispatcher  | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 03-config.sh: executing... 
librenms_dispatcher  | Setting timezone to Europe/Paris...
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_syslogng    | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_syslogng    | [cont-init.d] 03-config.sh: executing... 
librenms_syslogng    | Setting timezone to Europe/Paris...
librenms_syslogng    | Setting PHP-FPM configuration...
librenms_syslogng    | Setting PHP INI configuration...
librenms_snmptrapd   | [cont-init.d] 02-fix-perms.sh: exited 0.
librenms_syslogng    | Setting OpCache configuration...
librenms_syslogng    | Setting Nginx configuration...
librenms_snmptrapd   | [cont-init.d] 03-config.sh: executing... 
librenms_syslogng    | Updating SNMP community...
librenms_syslogng    | Initializing LibreNMS files / folders...
librenms_snmptrapd   | Setting timezone to Europe/Paris...
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_syslogng    | Setting LibreNMS configuration...
librenms_snmptrapd   | Setting LibreNMS configuration...
librenms_syslogng    | Checking LibreNMS plugins...
librenms_syslogng    | Fixing perms...
librenms_snmptrapd   | Checking LibreNMS plugins...
librenms_snmptrapd   | 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             | [cont-init.d] 04-svc-main.sh: exited 0.
librenms             | [cont-init.d] 05-svc-dispatcher.sh: executing... 
librenms             | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms             | [cont-init.d] 06-svc-syslogng.sh: executing... 
librenms             | >>
librenms             | >> Sidecar syslog-ng container detected
librenms             | >>
librenms             | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms             | [cont-init.d] 07-svc-cron.sh: executing... 
librenms             | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms             | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms             | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms             | [cont-init.d] ~-socklog: executing... 
librenms             | [cont-init.d] ~-socklog: exited 0.
librenms             | [cont-init.d] done.
librenms             | [services.d] starting services
librenms             | [2024-11-29T07:09:59.684573] 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_dispatcher  | Checking additional Monitoring plugins...
librenms             | [services.d] done.
librenms_dispatcher  | Checking alert templates...
librenms             | [2024-11-29T07:09:59.691563] 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  | [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  | >>
librenms_dispatcher  | >> Sidecar syslog-ng container detected
librenms_dispatcher  | >>
librenms_syslogng    | Checking additional Monitoring plugins...
librenms_syslogng    | Checking alert templates...
librenms_snmptrapd   | Checking additional Monitoring plugins...
librenms_syslogng    | [cont-init.d] 03-config.sh: exited 0.
librenms_snmptrapd   | Checking alert templates...
librenms_dispatcher  | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_syslogng    | [cont-init.d] 04-svc-main.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 03-config.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 07-svc-cron.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 04-svc-main.sh: executing... 
librenms_syslogng    | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_dispatcher  | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 04-svc-main.sh: exited 0.
librenms_syslogng    | [cont-init.d] 05-svc-dispatcher.sh: executing... 
librenms_dispatcher  | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 05-svc-dispatcher.sh: executing... 
librenms_dispatcher  | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_syslogng    | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 05-svc-dispatcher.sh: exited 0.
librenms_dispatcher  | [cont-init.d] ~-socklog: executing... 
librenms_syslogng    | [cont-init.d] 06-svc-syslogng.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 06-svc-syslogng.sh: executing... 
librenms_syslogng    | >>
librenms_syslogng    | >> Sidecar syslog-ng container detected
librenms_syslogng    | >>
librenms_snmptrapd   | >>
librenms_snmptrapd   | >> Sidecar syslog-ng container detected
librenms_snmptrapd   | >>
librenms_snmptrapd   | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_syslogng    | [cont-init.d] 06-svc-syslogng.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 07-svc-cron.sh: executing... 
librenms_syslogng    | [cont-init.d] 07-svc-cron.sh: executing... 
librenms_snmptrapd   | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_syslogng    | [cont-init.d] 07-svc-cron.sh: exited 0.
librenms_snmptrapd   | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms_syslogng    | [cont-init.d] 08-svc-snmptrapd.sh: executing... 
librenms_snmptrapd   | >>
librenms_snmptrapd   | >> Sidecar snmptrapd container detected
librenms_snmptrapd   | >>
librenms_syslogng    | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_syslogng    | [cont-init.d] ~-socklog: executing... 
librenms_snmptrapd   | [cont-init.d] 08-svc-snmptrapd.sh: exited 0.
librenms_snmptrapd   | [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  | [2024-11-29T07:10:00.076501] 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_dispatcher  | [2024-11-29T07:10:00.082544] 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_syslogng    | [cont-init.d] ~-socklog: exited 0.
librenms_syslogng    | [cont-init.d] done.
librenms_syslogng    | [services.d] starting services
librenms_syslogng    | [2024-11-29T07:10:00.138633] 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    | [services.d] done.
librenms_snmptrapd   | [cont-init.d] ~-socklog: exited 0.
librenms_snmptrapd   | [cont-init.d] done.
librenms_syslogng    | [2024-11-29T07:10:00.147542] 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_snmptrapd   | [services.d] starting services
librenms_snmptrapd   | [2024-11-29T07:10:00.195813] 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_snmptrapd   | [services.d] done.
librenms_snmptrapd   | [2024-11-29T07:10:00.207775] 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  | librenms-dispatcher(INFO):Watchdog is disabled.
librenms_dispatcher  | librenms-dispatcher(INFO):Entering main LibreNMS service loop on 563/librenms-dispatcher...
librenms_dispatcher  | librenms-dispatcher(INFO):LibreNMS Service: librenms-dispatcher-90d7fe17-ae18-11ef-a839-0242c0a82006 started!
librenms_dispatcher  | librenms-dispatcher(INFO):Poller group 0 (default). Using Python 3.11.10 and redis locks and queues
librenms_dispatcher  | librenms-dispatcher(INFO):Queue Workers: Discovery=16 Poller=24 Services=8 Alerting=enabled Billing=enabled Ping=disabled
librenms_dispatcher  | librenms-dispatcher(WARNING):Maintenance tasks are disabled.
librenms_dispatcher  | librenms-dispatcher(INFO):librenms-dispatcher is now the master dispatcher
librenms_dispatcher  | Poller_0-24(INFO):Polling device 2
librenms_dispatcher  | Poller_0-24(WARNING):Polling device 2 unreachable, waiting 60s for retry
librenms_dispatcher  | Poller_0-24(INFO):Completed poller run for 2 in 2.22s
librenms_dispatcher  | Poller_0-24(INFO):Polling device 1
librenms_dispatcher  | Billing(INFO):Calculating billing
librenms_dispatcher  | Alerting(INFO):Checking alerts
librenms_dispatcher  | Billing(INFO):Completed billing run for calculate in 0.48s
librenms_dispatcher  | Alerting(INFO):Completed alerting run for alerts in 0.49s
librenms_dispatcher  | Poller_0-24(INFO):Completed poller run for 1 in 4.23s

Additional info

No response

@darks00ul
Copy link
Author

As a aditional data, I exec my librenms docker when it is inaccesible on port 8000 and saw that the port isn't listening:

librenms:/opt/librenms# netstat -tulnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN 552/syslog-ng
tcp 0 0 127.0.0.11:35547 0.0.0.0:* LISTEN -
udp 0 0 127.0.0.11:58295 0.0.0.0:* -
udp 0 0 0.0.0.0:514 0.0.0.0:* 552/syslog-ng

I tried the same after disabling syslogng side car and I got this:

librenms:/opt/librenms# netstat -tulnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.11:37049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN -
tcp 0 0 :::8000 :::* LISTEN -
udp 0 0 0.0.0.0:161 0.0.0.0:* 619/snmpd
udp 0 0 127.0.0.11:49562 0.0.0.0:* -
librenms:/opt/librenms#

@darks00ul
Copy link
Author

Update 2:

I try the validation command and got the following:

with syslog-ng side car disabled:

docker compose exec --user librenms librenms php validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 24.10.1 (2024-11-27T21:14:25+01:00)
DB Schema | 2024_10_12_210114_custom_map_legend_colours (304)
PHP | 8.3.14
Python | 3.11.10
Database | MariaDB 10.11.10-MariaDB-ubu2204
RRDTool | 1.8.0
SNMP | 5.9.4
===========================================

[OK] Installed from the official Docker image; no Composer required
[OK] Database connection successful
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] No python wrapper pollers found
[OK] Redis is functional
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Updates are managed through the official Docker image

with syslog-ng sidecar enable
docker compose exec --user librenms librenms php validate.php

Component Version
LibreNMS 24.10.1 (2024-11-27T21:14:25+01:00)
DB Schema 2024_10_12_210114_custom_map_legend_colours (304)
PHP 8.3.14
Python 3.11.10
Database MariaDB 10.11.10-MariaDB-ubu2204
RRDTool 1.8.0
SNMP 5.9.4
===========================================

[OK] Installed from the official Docker image; no Composer required
[OK] Database connection successful

In EncryptionServiceProvider.php line 79:

No application encryption key has been specified.

@lukify85
Copy link

Howdy. I just ran into this issue myself. There's a lot of deprecated documentation out there, including on the LibreNMS GitHub page itself.

So first off, you do not need to set "SIDECAR_SYSLOGNG=1" in the env file. You can find that parameter already in your docker-compose.yaml file.

Secondly, regarding ("Create syslog.yaml file with "enable_syslog: true"), this is also unfortunately deprecated or simply incorrect. There's another incorrect example on the docker notes page for syslog-ng here.

You need to add $config['enable_syslog'] = 1; to config.php, but that file is within the container and not persistent, however you are passing your local directory /librenms into the container directory /data according to your docker-compose.yaml file. If you create a file in your base OS ./librenms/config/config.php, those values will be included and/or overwrite values within the default /data/config.php file within the container.

Put this within ./librenms/config/config.php and restart the container. Make sure you also setup the syslog host in your network devices and endpoints so that they know to forward traffic to the LibreNMS server.

<?php
$config['enable_syslog'] = 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants