[dev.icinga.com #3530] PostgreSQL-Sessionproblem #1005
Comments
Updated by mfriedrich on 2013-01-11 13:03:34 +00:00 and your webservers time is in sync, as well as your clients request within the cookie is too? |
Updated by dmikulski on 2013-01-11 13:18:16 +00:00 The timestamp in the database session entries is the one from my timezone (Europe/Berlin). I've also configured the php.ini with this timezone and restartet the httpd. The webserver system time is the same as the one from my timezone. |
Updated by lbetz on 2013-01-14 12:28:06 +00:00 I have a problem similar to yours. I installed Icinga/Postgres in a Virtualbox and after 2 hours suddenly I had this problem. In my case, the VM time ran slower than the time of the browser and so Icinga-Web kicked me out with 'Your login session has gone away, press ok to login again!' and then I had the 'failed login' you told. The cookie on the client was the Problem. My offer, try to delete the cookie and report the result. |
Updated by mfriedrich on 2013-02-01 12:09:33 +00:00
another report in this regard. @Jannis |
Updated by dmikulski on 2013-02-02 16:56:59 +00:00 I've made a new installation with the current git (master). First login worked. Then I logged out and tried to login again but I was instantly moved back to the login screen. I've looked at the new debug log and found only this entry: [Sat Feb 2 17:48:16 2013] [warn] New: Setting org.icinga.ext.appstate => {upref_id 17:48:16",upref_modified 17:48:16"} (NsmUser::setPref(), line 284) |
Updated by mfrosch on 2013-02-06 20:46:21 +00:00
Hey there, Basically 2 changes should help with this problem:
I've pushed my changes to mfrosch/fixsession. dnsmichi/mheim/jmosshammer: Please review and hopefully merge. Regards |
Updated by mfriedrich on 2013-02-08 10:10:36 +00:00 possibly related to #3652 |
Updated by dmikulski on 2013-02-09 07:28:55 +00:00 Yes dnsmichi, it is possible that it is related to this. I've looked in the icinga-web-src/etc/lib/dbInitializeTask.php and found that there is a logfile written to "/tmp/doctrine.log" where I found this: [INIT ERROR] : SQLSTATE[23503]: Foreign key violation: 7 FEHLER: Einfügen oder Aktualisieren in Tabelle »nsm_princal_target« verletzt Fremdschlüssel-Constraint »nsm_principal_target_pt_principal_id_nsm_principal_principal_id« @lazyfrosch Uncaught Doctrine_Hydrator_Exception thrown:
|
Updated by dmikulski on 2013-02-09 14:55:47 +00:00 Now it seems to work with manual db schema import. With already installed branch:
I will do further tests and start now the installation of lconf for icinga-web. |
Updated by mfrosch on 2013-02-11 16:24:26 +00:00
Applied in changeset 5d1ad82. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3530
Created by dmikulski on 2013-01-11 12:56:33 +00:00
Assignee: mfrosch
Status: Resolved (closed on 2013-02-11 16:24:26 +00:00)
Target Version: 1.8.2
Last Update: 2013-02-11 16:24:26 +00:00 (in Redmine)
In a new installed CentOS6.3 with PostgreSQL 8.4 database, IDOUtils and Icinga, after Login my browser lands immediatly again in the Login Screen or there is the error message "Your login session has gone away, press ok to login again!
" (see screenshot).
The the issue I get on my Live-Testsystem. Sometime it works for a undefined time (sometime more sometimes less long) but the error then occur again.
Exrtact from Icinga-Web Log:
[Sat Jan 5 18:18:03 2013] [fatal] Uncaught AppKitDoctrineException: User attribute is not a NsmUser! (/usr/local/icinga-web/app/modules/AppKit/lib/auth/AppKitSecurityUser.class.php:270)
Auszug aus Icinga-Web-Debug Log:
[Sat Jan 5 18:17:42 2013] [debug] Auth.Provider: Object (name=internal) initialized
[Sat Jan 5 18:17:42 2013] [debug] Auth.Provider: Object (name=auth_key) initialized
[Sat Jan 5 18:17:42 2013] [debug] Auth.Provider: Object (name=http-basic-authentication) initialized
[Sat Jan 5 18:17:42 2013] [debug] Auth.Provider.HTTPBasicAuthentification: Got data (auth_name=, auth_type=)
[Sat Jan 5 18:17:51 2013] [debug] Auth.Dispatch: Starting authenticate (username=root)
[Sat Jan 5 18:17:51 2013] [info] Auth.Dispatch: Converting username to lowercase
[Sat Jan 5 18:17:51 2013] [debug] Auth.Dispatch: Userdata found in db (uid=1)
[Sat Jan 5 18:17:51 2013] [debug] Auth.Provider: Object (name=internal) initialized
[Sat Jan 5 18:17:51 2013] [debug] Auth.Dispatch: Authoritative provider found (provider=internal, authid=root)
[Sat Jan 5 18:17:51 2013] [debug] Auth.Provider.Database: HASH
[Sat Jan 5 18:17:51 2013] [debug] Auth.Dispatch: Successfull authentication (provder=internal)
[Sat Jan 5 18:17:51 2013] [info] Auth.Dispatch: Delegate authentication (not_authoritative=internal,user=root)
[Sat Jan 5 18:17:51 2013] [debug] Auth.Provider: Object (name=auth_key) initialized
[Sat Jan 5 18:17:51 2013] [debug] Auth.Provider: Object (name=http-basic-authentication) initialized
[Sat Jan 5 18:17:51 2013] [debug] Auth.Dispatch: Delegate authentication, try http-basic-authentication (not_authoritative=internal,user=root)
[Sat Jan 5 18:17:51 2013] [debug] Auth.Dispatch: Delegate authentication, no providers found for root (not_authoritative=internal)
[Sat Jan 5 18:17:52 2013] [info] User root (Root, Enoch) logged in!
[Sat Jan 5 18:18:01 2013] [debug] Auth.Provider: Object (name=internal) initialized
[Sat Jan 5 18:18:01 2013] [debug] Auth.Provider: Object (name=auth_key) initialized
[Sat Jan 5 18:18:01 2013] [debug] Auth.Provider: Object (name=http-basic-authentication) initialized
[Sat Jan 5 18:18:01 2013] [debug] Auth.Provider.HTTPBasicAuthentification: Got data (auth_name=, auth_type=)
I've already found this (but there is no feedback anymore):
http://www.mail-archive.com/icinga-users@lists.sourceforge.net/msg01531.html
Debugging isn't really possible with default setting. Maybe you know how I can get further information.
Currently I've to evaulate new monitoring systems for my boss and the future system will have to work with PostgreSQL. Is there a way to get help to fix this issue before the next release by myself?
In issue #3520 (https://dev.icinga.org/issues/3520) jmosshammer already told me to try his branch. I did this but I got the same problems again. I've looked in the database and my sessions (compare to the hash from my cookie) are there (4 session entries).
Attachments
Changesets
2013-02-06 20:41:24 +00:00 by mfrosch 2b164cd
2013-02-11 14:18:05 +00:00 by mfrosch 5d1ad82
2013-02-11 18:39:56 +00:00 by mfrosch 6d49613
The text was updated successfully, but these errors were encountered: