You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure this is actually an issue with the docker Observium image, more likely an error made by me, so consider this a request for help and feel free to close it if you feel this issue shouldn't be posted here.
After updating to latest version the login page returns to the login page without any error message.
Browser used: Firefox 121.0 (On Fedora 39, 6.6.8-200.fc39.x86_64)
MySQL version: `ii percona-server-server 8.0.35-27-1.bookworm amd64
Docker pull looks like:
Using default tag: latest
latest: Pulling from mbixtech/observium
Digest: sha256:b7aa35ba6412744cab1b3c8496e23c9e0a0f405747c71ed132af2bb3762b38ce
Status: Image is up to date for mbixtech/observium:latest
docker.io/mbixtech/observium:latest
$ docker logs observium
2024-01-02 22:46:32,719 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-01-02 22:46:32,721 INFO supervisord started with pid 1
2024-01-02 22:46:33,723 INFO spawned: 'apache2' with pid 7
2024-01-02 22:46:33,725 INFO spawned: 'cron' with pid 8
2024-01-02 22:46:33,726 INFO spawned: 'init' with pid 9
[1] Verifying coonection to observium database.
Connected to observium database successfully.
Database schema initialization has been done already.
2024-01-02 22:46:34,758 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-01-02 22:46:34,758 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-01-02 22:46:34,758 INFO success: init entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Setting system timezone to specific Europe/Amsterdam.
'/etc/localtime' -> '/usr/share/zoneinfo/Europe/Amsterdam'
2024-01-02 22:46:38,756 INFO exited: init (exit status 0; expected)
The logs/observium.log file has entries like:
[2024/01/02 23:10:11 +0100] poller.php(3696): poller.php: raspi3.REDACTED - 1 devices polled in 6.073 secs
[2024/01/02 23:10:11 +0100] poller-wrapper.py(3284): /opt/observium/poller-wrapper.py: processed 20 devices in 10.61 seconds with 8 threads, load average (5min) 0.12
I obviously double checked:
That the user I try to login with matches the one in the env settings ADMIN_USER and ADMIN_PASS.
That the users table hasn't changed (by checking the file date of the MySQL files of the MySQL server).
I tried to get the container in a more verbose logging mode by setting OBSERVIUM_WEB_DEBUG_UNPRIVILEGED=TRUE as environment variable but that didn't result in more logs anywhere. I learned later that this is because the config.php doesn't include the required getenv('...') line.
I'm fairly sure the following is not to blame, but for completeness:
I run Observium at a docker server with a separate MySQL server and it's accessed via a nginx proxy with this config:
upstream observium {
server REDACTED:81;
}
server {
if ($host = REDACTED) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name REDACTED;
access_log /var/log/observium/nginx_access.log;
error_log /var/log/observium/nginx_error.log;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
server_name REDACTED;
listen 443 ssl http2;
root /var/www/html;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
ssl_certificate /etc/letsencrypt/live/REDACTED/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/REDACTED/privkey.pem; # managed by Certbot
include conf.d/location.defaults;
include conf.d/proxy.params;
access_log /var/log/observium/nginx_access.log;
error_log /var/log/observium/nginx_error.log;
# Access control
satisfy any;
allow REDACTED/16; # My network
deny all;
location / {
include conf.d/proxy.params;
proxy_set_header X-Scheme $scheme;
proxy_pass http://observium;
}
}
The text was updated successfully, but these errors were encountered:
I reviewed you post. It looks fine. BTW, you have solved it already. It is great thing to here from you. I am so happy and appreciate with you, enjoy Obvervium and container world.
I'm not sure this is actually an issue with the docker Observium image, more likely an error made by me, so consider this a request for help and feel free to close it if you feel this issue shouldn't be posted here.
After updating to latest version the login page returns to the login page without any error message.
Browser used: Firefox 121.0 (On Fedora 39,
6.6.8-200.fc39.x86_64
)MySQL version: `ii percona-server-server 8.0.35-27-1.bookworm amd64
Docker pull looks like:
In the container I see:
Docker inspect Labels:
compose yaml file:
(So, I know I'm not running the default config)
The logs of the container:
The
logs/observium.log
file has entries like:I obviously double checked:
ADMIN_USER
andADMIN_PASS
.users
table hasn't changed (by checking the file date of the MySQL files of the MySQL server).I tried to get the container in a more verbose logging mode by setting
OBSERVIUM_WEB_DEBUG_UNPRIVILEGED=TRUE
as environment variable but that didn't result in more logs anywhere. I learned later that this is because the config.php doesn't include the requiredgetenv('...')
line.I'm fairly sure the following is not to blame, but for completeness:
I run Observium at a docker server with a separate MySQL server and it's accessed via a nginx proxy with this config:
The text was updated successfully, but these errors were encountered: