-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
Comments
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 I tried the same after disabling syslogng side car and I got this: librenms:/opt/librenms# netstat -tulnp |
Update 2: I try the validation command and got the following: with syslog-ng side car disabled:
[OK] Installed from the official Docker image; no Composer required with syslog-ng sidecar enable
|
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.
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.
|
Support guidelines
I've found a bug and checked that ...
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:
After this I restart the docker stack and everything boots:
But my librenms GUI become unreachable. The logs from failing stack below:
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:
Try to access http://localhost:8000, it should work
If this works, then try:
Try again access http://localhost:8000, this time it shouldn't work
Docker info
Docker Compose config
Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: