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

Icinga2 ended ... Failed! #218

Open
Maxwell-Mc opened this issue Jan 29, 2020 · 9 comments
Open

Icinga2 ended ... Failed! #218

Maxwell-Mc opened this issue Jan 29, 2020 · 9 comments

Comments

@Maxwell-Mc
Copy link

my docker logs are :

Starting icinga2 monitoring daemon in foreground.,
[2020-01-29 15:42:54 +0000] information/cli: Icinga application loader (version: r2.10.3-1),
[2020-01-29 15:42:54 +0000] critical/cli: Another instance of Icinga already running with PID 1709,
icinga2 ended ... failed!,
ERROR: Zend_Db_Statement_Exception in /usr/share/icingaweb2/library/vendor/Zend/Db/Statement/Pdo.php:225 with message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'icingaweb2_director.icinga_apiuser' doesn't exist, query was: SELECT icinga_apiuser.* FROM icinga_apiuser WHERE (object_name = 'icinga2-director'),
2020-01-29 15:42:57,663 INFO exited: icinga2 (exit status 1; not expected),
2020-01-29 15:42:58,669 INFO spawned: 'icinga2' with pid 5088,
checking Icinga2 configuration2020-01-29 15:42:59,706 INFO success: icinga2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs),

can you help me understand this?

@jjethwa
Copy link
Owner

jjethwa commented Jan 30, 2020

Hi @Maxwell-Mc

Is this using latest? Are you using an external database?

@Maxwell-Mc
Copy link
Author

I'm using an external mysql with your compose yml and yes latest.

@jjethwa
Copy link
Owner

jjethwa commented Jan 30, 2020

Thanks for the information. If this is a brand new setup, make sure you've run through all of the MySQL/MariaDB SQL scripts. If it's an upgrade, you just need to run the upgrade scripts.

new: https://icinga.com/docs/icinga2/latest/doc/02-installation/#setting-up-the-mysql-database
upgrade: https://icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/#upgrading-the-mysql-database

@Maxwell-Mc
Copy link
Author

But doesn't your repository contain scripts that import the database schemas? Shouldn't a docker-compose up -d bring it all up?

@jjethwa
Copy link
Owner

jjethwa commented Jan 30, 2020

Yes, the initial setup should all be taken care of, but upgrades are a bit more complicated

@StefanWetterActiware
Copy link

Hello Jordan,
do i get that right, that in case of any update i have to apply these scripts manually? Or is it done by your image in some circumstances?
Thanks for your great work!

@jjethwa
Copy link
Owner

jjethwa commented May 15, 2020

Hi @StefanWetterActiware

That's correct, the database upgrade scripts will need to be run manually when updating to new versions 😄

@jhaumanath
Copy link

Hi

Is this using latest? Are you using an external database?

I am not using any external DB, I am still facing the same issue

@jjethwa
Copy link
Owner

jjethwa commented Mar 31, 2022

Hi @jhaumanath

If you are receiving the error when upgrading to newer versions of the container, you to need to run the database upgrade scripts manually. Unfortunately, there's no way to automate that part

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

No branches or pull requests

4 participants