Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.03k stars 578 forks source link

Upgrade to 2.9.0 on trusty broke mysql-ido #6471

Closed TM08353 closed 6 years ago

TM08353 commented 6 years ago

The upgrade from 2.8.4-1.trusty to 2.9.0-1.trusty seems to have broken the connection to the mysql-ido backend. Icinga2 is still running, checks are performed, notification emails sent, but no updates are written to the database and icingaweb2 is frozen at the old state.

Expected Behavior

Updates should be written to the database

Current Behavior

No updates are written

Steps to Reproduce (for bugs)

unsure - the automatic upgrade seems to have triggered this.

Context

Well, having access to the web frontend is kind of basic... ;)

Your Environment

Copyright (c) 2012-2018 Icinga Development Team (https://www.icinga.com/) License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Application information: Installation root: /usr Sysconf directory: /etc Run directory: /run Local state directory: /var Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /run/icinga2/icinga2.pid

System information: Platform: Ubuntu Platform version: 14.04.5 LTS, Trusty Tahr Kernel: Linux Kernel version: 3.13.0-153-generic Architecture: x86_64

Build information: Compiler: GNU 4.8.2 Build host: 057266a66422

Validating the backend in icingaweb2->Configuration->Resources->icinga_ido seems OK

Validation Log

Connection to icinga2 as icingaweb on localhost: successful
have_ssl: DISABLED
protocol_version: 10
version: 5.5.60-0ubuntu0.14.04.1
version_compile_os: debian-linux-gnu

Debug log is showing nothing usefull

grep -v " debug/" /var/log/icinga2/debug.log  | grep -v "notice/Process" | grep -v "notice/Dependency" | grep -v " not in check period" | grep -v "Checkable: State Change"
[2018-07-23 10:35:12 +0200] information/ExternalCommandListener: 'command' started.
[2018-07-23 10:35:12 +0200] information/CheckerComponent: 'checker' started.
[2018-07-23 10:35:12 +0200] information/PerfdataWriter: 'perfdata' started.
[2018-07-23 10:35:12 +0200] information/DbConnection: 'ido-mysql' started.
[2018-07-23 10:35:12 +0200] information/NotificationComponent: 'notification' started.
[2018-07-23 10:35:12 +0200] information/ConfigItem: Activated all objects.
[2018-07-23 10:35:12 +0200] notice/WorkQueue: Stopped WorkQueue threads for 'DaemonCommand::Run'
[2018-07-23 10:35:12 +0200] information/DbConnection: Resuming IDO connection: ido-mysql
[2018-07-23 10:35:12 +0200] information/IdoMysqlConnection: 'ido-mysql' resumed.
[2018-07-23 10:35:12 +0200] notice/WorkQueue: Spawning WorkQueue threads for 'IdoMysqlConnection, ido-mysql'
[2018-07-23 10:35:12 +0200] notice/ThreadPool: Pool #1: Pending tasks: 0; Average latency: 0ms; Threads: 4; Pool utilization: 0.0275151%
[2018-07-23 10:35:27 +0200] notice/ThreadPool: Pool #1: Pending tasks: 0; Average latency: 0ms; Threads: 4; Pool utilization: 0.332661%
[2018-07-23 10:35:42 +0200] notice/ThreadPool: Pool #1: Pending tasks: 0; Average latency: 0ms; Threads: 4; Pool utilization: 0.28743%
[...]

Please let me know how to debug this further, and I will be happy to help with more data.

Cheers and thanks, Tobias

dnsmichi commented 6 years ago

That's highly likely a duplicate of #6445.

TM08353 commented 6 years ago

Thank you. Confirmed. Missed that because it did not mention the DB.

Starting manually in a screen session without the "-d" after "deamon" is running as expected. Will use that as a workaround.