Hi Eric, The frontend loads without error, when logging in displays the red box with "Incorrect username or password".
I set the logging section of my config.ini as below: ### /etc/icingaweb2/config.ini [logging] log = "file" level = "DEBUG" file = "/var/log/icinga2/icingaweb2.log" But the log file doesn't give any more information, but I'm not seeing any DEBUG messages at all. Is there something wrong with the above? To be clear, Icingaweb2 is writing to the log, but only the same single ERROR message when the frontend loads, not when log-in attempted. 2016-01-14T10:19:24+00:00 - ERROR - Icinga\Exception\ConfigurationError in /usr/share/php/Icinga/Authentication/AuthChain.php:242 with message: Can't create authentication backend "icingaweb2_auth". An exception was thrown: <- Icinga\Exception\ConfigurationError in /usr/share/php/Icinga/Data/ResourceFactory.php:77 with message: Resources not set up. Please contact your Icinga Web administrator Many thanks, *Tim Jones* *D&D Seguridad Digital Bank* [email protected] *IT Risk, Fraud & Security *– Edificio BBVA - Av. Monforte de Lemos s/n, 28029 Madrid Before you print this message please consider if it is really necessary. Antes de imprimir este mensaje, por favor comprueba que es necesario hacerlo. On 14 January 2016 at 10:44, Eric Lippmann <[email protected]> wrote: > Hi Tim, > > Which error message is displayed in the frontend? > > The error in syslog may not be related to login but logout: #10918. > > Could you please set the log level to debug, try to log in and post all > the log output. Maybe it’s easier to configure Web 2 to use a log file. > > Best, > Eric > > On 13 Jan 2016, at 6:41 PM, TIM SIMON JONES <[email protected] > <mailto:[email protected]>> wrote: > > Hi all, > > I'm running Icinga 2 (2.4.1) + web (2.1.2) from the Icinga package repos > on an Ubuntu 14.04 system with NginX and PHP-FPM, and a PostgreSQL IDO DB. > > I have configured my resources and auth backends but I'm still having > trouble logging in with the web interface, and I get teh following error in > syslog: > > icingaweb2[18599]: Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Authentication/AuthChain.php:242 with message: Can't > create authentication backend "icingaweb2_auth". An exception was thrown: > <- Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Data/ResourceFactory.php:77 with message: Resources > not set up. Please contact your Icinga Web administrator > > ## /etc/icingaweb2/authentication.ini > [icingaweb2_auth] > backend = "db" > resource = "icingaweb2_pgsql" > > ## /etc/icingaweb2/resources.ini > [icingaweb2_pgsql] > type = "db" > db = "pgsql" > host = "<IP>" > port = "5432" > dbname = "icingaweb2" > username = "icingaweb2" > password = "<PASS>" > > [icinga2_pgsql] > type = "db" > db = "pgsql" > host = "<IP>" > port = "5432" > dbname = "icinga2" > username = "icinga2" > password = "<PASS>" > > I know permissions are set correctly as if I change the db type to > something unsupported (such as "FORCE_ERROR"), I get the following error: > > icingaweb2[17241]: Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Authentication/AuthChain.php:242 with message: Can't > create authentication backend "icingaweb2_auth". An exception was thrown: > <- Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Data/Db/DbConnection.php:174 with message: Backend > "FORCE_ERROR" is not supported > icingaweb2[17241]: message repeated 4 times: [ > Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Authentication/AuthChain.php:242 with message: Can't > create authentication backend "icingaweb2_auth". An exception was thrown: > <- Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Data/Db/DbConnection.php:174 with message: Backend > "FORCE_ERROR" is not supported] > icingaweb2[17241]: Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Authentication/AuthChain.php:242 with message: Can't > create authentication backend "icingaweb2_auth". An exception was thrown: > <- Icinga\Exception\ConfigurationError in > /usr/share/php/Icinga/Data/ResourceFactory.php:77 with message: Resources > not set up. Please contact your Icinga Web administrator > > Obviously I have manually connected to the backend database from the same > machine to ensure it's not a connection/credentials issue. > > Could anyone help direct me as to where I could look next, or shed some > light on the issue? > > Many thanks in advance, > > Tim Jones > D&D Seguridad Digital Bank > [email protected]<mailto:[email protected]> > IT Risk, Fraud & Security – Edificio BBVA - Av. Monforte de Lemos s/n, > 28029 Madrid > Before you print this message please consider if it is really necessary. > Antes de imprimir este mensaje, por favor comprueba que es necesario > hacerlo. > > > "Este mensaje está dirigido de manera exclusiva a su destinatario y puede > contener información privada y confidencial. No lo reenvíe, copie o > distribuya a terceros que no deban conocer su contenido. En caso de haberlo > recibido por error, rogamos lo notifique al remitente y proceda a su > borrado, así como al de cualquier documento que pudiera adjuntarse. > > Por favor tenga en cuenta que los correos enviados vía Internet no > permiten garantizar la confidencialidad de los mensajes ni su transmisión > de forma íntegra. > > Las opiniones expresadas en el presente correo pertenecen únicamente al > remitente y no representan necesariamente la opinión del Grupo BBVA." > > "This message is intended exclusively for the adressee and may contain > privileged and confidential information. Please, do not disseminate, copy > or distribute it to third parties who should not receive it. In case you > have received it by mistake, please inform the sender and delete the > message and attachments from your system. > > Please keep in mind that e-mails sent by Internet do not allow to > guarantee neither the confidentiality or the integrity of the messages > sent." > > _______________________________________________ > icinga-users mailing list > [email protected]<mailto:[email protected]> > https://lists.icinga.org/mailman/listinfo/icinga-users > > > -- > Eric Lippmann > Lead Senior Developer > > NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg > Tel: +49 911 92885-0 | Fax: +49 911 92885-77 > CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461 > http://www.netways.de | [email protected] > > ** OSDC 2016 - April - netways.de/osdc ** > ** OSBConf 2016 - September - osbconf.org ** > _______________________________________________ > icinga-users mailing list > [email protected] > https://lists.icinga.org/mailman/listinfo/icinga-users > -- "Este mensaje está dirigido de manera exclusiva a su destinatario y puede contener información privada y confidencial. No lo reenvíe, copie o distribuya a terceros que no deban conocer su contenido. En caso de haberlo recibido por error, rogamos lo notifique al remitente y proceda a su borrado, así como al de cualquier documento que pudiera adjuntarse. Por favor tenga en cuenta que los correos enviados vía Internet no permiten garantizar la confidencialidad de los mensajes ni su transmisión de forma íntegra. Las opiniones expresadas en el presente correo pertenecen únicamente al remitente y no representan necesariamente la opinión del Grupo BBVA." "This message is intended exclusively for the adressee and may contain privileged and confidential information. Please, do not disseminate, copy or distribute it to third parties who should not receive it. In case you have received it by mistake, please inform the sender and delete the message and attachments from your system. Please keep in mind that e-mails sent by Internet do not allow to guarantee neither the confidentiality or the integrity of the messages sent."
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
