After installing nav in the test enviorment on opensuse 10.2, I installed nav on a new virtual production system with opensuse 10.3. BTW the python version is the same.
Nav is starting without errors, but in the toolbox Alert Profiles is empty.
And Status give the following error page: MOD_PYTHON ERROR
ProcessId: 2483 Interpreter: 'nav.happyunix'
ServerName: 'nav.happyunix' DocumentRoot: '/usr/local/nav/apache/webroot'
URI: '/status/' Location: None Directory: '/usr/local/nav/apache/webroot/status/' Filename: '/usr/local/nav/apache/webroot/status/' PathInfo: ''
Phase: 'PythonHandler' Handler: 'status'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg)
File "/usr/local/nav/apache/webroot/status/status.py", line 71, in handler output = indexInternal(req)
File "/usr/local/nav/apache/webroot/status/status.py", line 107, in indexInternal prefs = HandleStatusPrefs.loadPrefs(req)
File "/usr/local/nav/apache/webroot/status/StatusPrefs.py", line 340, in loadPrefs prefs = cPickle.loads(data)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 991, in load_module return _global_modules_cache.import_module(self.__file)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 488, in import_module assert(file != parent_info.file), "Import cycle in %s." % file
AssertionError: Import cycle in /usr/local/nav/apache/webroot/status/StatusPrefs.py.
MODULE CACHE DETAILS
Accessed: Thu Nov 1 16:27:23 2007 Generation: 7
_mp_136225482982648bcdfdd40e74885289 { FileName: '/usr/local/nav/apache/webroot/status/StatusDefaultPrefs.py' Instance: 1 [IMPORT] Generation: 8 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 }
_mp_37bf19280ab45e11f34ffeed40ee4974 { FileName: '/usr/local/nav/apache/webroot/status/StatusPrefs.py' Instance: 1 [IMPORT] Generation: 10 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 Children: '/usr/local/nav/apache/webroot/status/StatusDefaultPrefs.py', '/usr/local/nav/apache/webroot/status/StatusSections.py' }
_mp_444e13f7996d2281eb7234ce037aea9a { FileName: '/usr/local/nav/apache/webroot/status/StatusSections.py' Instance: 1 [IMPORT] Generation: 9 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 }
_mp_6cd588e65f9c575e8e4b02d3d41602d5 { FileName: '/usr/local/nav/apache/webroot/status/status.py' Instance: 1 [IMPORT] Generation: 11 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 Children: '/usr/local/nav/apache/webroot/status/StatusPrefs.py', '/usr/local/nav/apache/webroot/status/StatusSections.py' }
Any idea what's wrong? The installation is done with the package files from: http://ans.hsh.no/home/roger/nav3/
Mels
From mels at mels-kooijman.nl Thu Nov 1 20:16:09 2007
From: mels at mels-kooijman.nl (mels) Date: Thu Nov 1 20:20:00 2007 Subject: [Nav-users] arplogger.pl In-Reply-To: 472A032D.4040805@mels-kooijman.nl References: 200710311344.l9VDiXYI010616@barnetv.cc.uit.no 472A032D.4040805@mels-kooijman.nl Message-ID: 472A25F9.6070309@mels-kooijman.nl
I get in the root mail the next message:
Subject: Cron navcron@nav $BINDIR/arplogger.pl X-Cron-Env: <PERL5LIB=/usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi/DBD> X-Cron-Env: <PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/java/jdk1.5.0_12/jre/bin> X-Cron-Env: <BINDIR=/usr/local/nav/bin> X-Cron-Env: <LOCALSTATEDIR=/usr/local/nav/var> X-Cron-Env: MAILTO=root@localhost X-Cron-Env: <CRICKETDIR=/usr/local/nav/cricket> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/usr/local/nav> X-Cron-Env: <LOGNAME=navcron> X-Cron-Env: <USER=navcron> Message-Id: 20071101173003.23A6219140@nav.happyunix.mks Date: Thu, 1 Nov 2007 18:30:03 +0100 (CET) Status: RO
Undefined subroutine &Pg::connectdb called at /usr/lib/perl5/site_perl/5.8.8/NAV.pm line 78.
The perl modules Pg and DBD::Pg are installed cpan> install Pg Pg is up to date.
cpan> install DBD::Pg DBD::Pg is up to date.
Any idea?
Mels
From mels at mels-kooijman.nl Thu Nov 1 20:33:21 2007
From: mels at mels-kooijman.nl (mels) Date: Thu Nov 1 20:33:35 2007 Subject: [Nav-users] error on toolbix/Status In-Reply-To: 472A032D.4040805@mels-kooijman.nl References: 200710311344.l9VDiXYI010616@barnetv.cc.uit.no 472A032D.4040805@mels-kooijman.nl Message-ID: 472A2A01.7020703@mels-kooijman.nl
After installing nav in the test enviorment on opensuse 10.2, I installed nav on a new virtual production system with opensuse 10.3. BTW the python version is the same.
Nav is starting without errors, but in the toolbox Alert Profiles is empty.
And Status give the following error page: MOD_PYTHON ERROR
ProcessId: 2483 Interpreter: 'nav.happyunix'
ServerName: 'nav.happyunix' DocumentRoot: '/usr/local/nav/apache/webroot'
URI: '/status/' Location: None Directory: '/usr/local/nav/apache/webroot/status/' Filename: '/usr/local/nav/apache/webroot/status/' PathInfo: ''
Phase: 'PythonHandler' Handler: 'status'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg)
File "/usr/local/nav/apache/webroot/status/status.py", line 71, in handler output = indexInternal(req)
File "/usr/local/nav/apache/webroot/status/status.py", line 107, in indexInternal prefs = HandleStatusPrefs.loadPrefs(req)
File "/usr/local/nav/apache/webroot/status/StatusPrefs.py", line 340, in loadPrefs prefs = cPickle.loads(data)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 991, in load_module return _global_modules_cache.import_module(self.__file)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 488, in import_module assert(file != parent_info.file), "Import cycle in %s." % file
AssertionError: Import cycle in /usr/local/nav/apache/webroot/status/StatusPrefs.py.
MODULE CACHE DETAILS
Accessed: Thu Nov 1 16:27:23 2007 Generation: 7
_mp_136225482982648bcdfdd40e74885289 { FileName: '/usr/local/nav/apache/webroot/status/StatusDefaultPrefs.py' Instance: 1 [IMPORT] Generation: 8 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 }
_mp_37bf19280ab45e11f34ffeed40ee4974 { FileName: '/usr/local/nav/apache/webroot/status/StatusPrefs.py' Instance: 1 [IMPORT] Generation: 10 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 Children: '/usr/local/nav/apache/webroot/status/StatusDefaultPrefs.py', '/usr/local/nav/apache/webroot/status/StatusSections.py' }
_mp_444e13f7996d2281eb7234ce037aea9a { FileName: '/usr/local/nav/apache/webroot/status/StatusSections.py' Instance: 1 [IMPORT] Generation: 9 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 }
_mp_6cd588e65f9c575e8e4b02d3d41602d5 { FileName: '/usr/local/nav/apache/webroot/status/status.py' Instance: 1 [IMPORT] Generation: 11 Modified: Tue May 1 22:46:42 2007 Imported: Thu Nov 1 16:27:23 2007 Children: '/usr/local/nav/apache/webroot/status/StatusPrefs.py', '/usr/local/nav/apache/webroot/status/StatusSections.py' }
Any idea what's wrong? The installation is done with the package files from: http://ans.hsh.no/home/roger/nav3/
Mels
From morten.brekkevold at uninett.no Mon Nov 5 09:37:17 2007
From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Mon Nov 5 09:37:21 2007 Subject: [Nav-users] new production install In-Reply-To: 472A032D.4040805@mels-kooijman.nl (mels@mels-kooijman.nl's message of "Thu, 01 Nov 2007 17:47:41 +0100") References: 200710311344.l9VDiXYI010616@barnetv.cc.uit.no 472A032D.4040805@mels-kooijman.nl Message-ID: yylprypdr5u.fsf@voldsminde.uninett.no
On Thu, 01 Nov 2007 17:47:41 +0100 mels mels@mels-kooijman.nl wrote:
Nav is starting without errors, but in the toolbox Alert Profiles is empty.
What do you mean by empty? Is the descriptive text missing, or the icon?
And Status give the following error page: MOD_PYTHON ERROR
[snip]
AssertionError: Import cycle in /usr/local/nav/apache/webroot/status/StatusPrefs.py.
Any idea what's wrong?
Yes. The same problem was discussed on this list in May. See http://desperados.itea.ntnu.no/pipermail/nav-users/2007-May/001635.html . Basically this error comes up on newer versions of mod_python.
Your options are:
* Upgrade to NAV 3.3 (I don't think anyone has made an RPM of this version yet, though. Mr. Krapivin has been strangely silent)
* Or apply this patch: http://desperados.itea.ntnu.no/pipermail/nav-users/2007-May/001639.html