mels | 1 Nov 2007 17:47
Picon

new production install

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)

(Continue reading)

mels | 1 Nov 2007 20:16
Picon

arplogger.pl

I get in the root mail the next message:

Subject: Cron <navcron <at> 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 <at> 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@...>
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?
(Continue reading)

mels | 1 Nov 2007 20:33
Picon

error on toolbix/Status

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)

(Continue reading)

Morten Brekkevold | 5 Nov 2007 09:37
Picon
Picon
Gravatar

Re: new production install

On Thu, 01 Nov 2007 17:47:41 +0100 mels <mels@...> 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

--

-- 
mvh
(Continue reading)

mels | 5 Nov 2007 17:47
Picon

Re: new production install

Begin with the lasr, install the patch.
That doesn't work, still the error page with status. When I comment out
the next two lines in
/usr/lib/python2.5/site-packages/mod_python/importer.py
       # Check for an attempt by the module to import
       # itself.

=>     # if parent_info:
=>     #     assert(file != parent_info.file), "Import cycle in %s." % file

Status seems to be working.

The toolbox/alert profiles page is complete empty, only a white page is
displaying.

Anmd I use the source  nav-3.3.0.tar.gz

Mels

Morten Brekkevold wrote:
> On Thu, 01 Nov 2007 17:47:41 +0100 mels <mels@...> 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:
(Continue reading)

mels | 5 Nov 2007 18:58
Picon

Re: new production install

mels wrote:
> Begin with the lasr, install the patch.
> That doesn't work, still the error page with status. When I comment out
> the next two lines in
> /usr/lib/python2.5/site-packages/mod_python/importer.py
>        # Check for an attempt by the module to import
>        # itself.
> 
> =>     # if parent_info:
> =>     #     assert(file != parent_info.file), "Import cycle in %s." % file
> 
> Status seems to be working.
> 
> The toolbox/alert profiles page is complete empty, only a white page is
> displaying.
I see the problem in the apache log:
PHP Fatal error:  Call to undefined function pg_connect()
I forget the php_pg, I think

> 
> Anmd I use the source  nav-3.3.0.tar.gz
> 
> Mels
> 
> 
> Morten Brekkevold wrote:
>> On Thu, 01 Nov 2007 17:47:41 +0100 mels <mels@...> wrote:
>>
>>
>>> Nav is starting without errors, but in the toolbox Alert Profiles is
(Continue reading)

Morten Brekkevold | 8 Nov 2007 11:28
Picon
Picon
Gravatar

Announcement: NAV 3.3.1 released

NAV 3.3.1 is now available for download at SourceForge,
see http://sourceforge.net/projects/nav :-)

This is a bugfix release, containing several important bugfixes, see
the attached changelog for more.

The Debian package maintainer, Morten Werner Forsbring, is working on
a Debian Etch package of NAV 3.3.1, which will be released shortly.

Happy NAVing, everyone!

--

-- 
mvh
Morten Brekkevold
UNINETT

Version 3.3.1
(released 08 November 2007)

 Bugfixes:

  * SF#1550393 (HW/SW/FW versions flipping back and forth on devices)
  * SF#1811548 (Wrong results in port activity view in IP Device Center)
  * SF#1812189 (NAV says no cam table support for many switches)
  * SF#1815618 (ERROR: relation "arp" does not exist in manage.sql)
  * SF#1815756 (Service status matrix has become cluttered in NAV 3.3.0)
  * SF#1822583 (Crazy numbers in ranked statistics)
  * SF#1822650 (snmptrapd is unable to load any handler modules)
(Continue reading)

Morten Werner Forsbring | 8 Nov 2007 18:06
Picon
Favicon

Re: Announcement: NAV 3.3.1 released

Morten Brekkevold <morten.brekkevold@...> writes:

> The Debian package maintainer, Morten Werner Forsbring, is working on
> a Debian Etch package of NAV 3.3.1, which will be released shortly.

A 3.3.1-package for etch is available now, and you can download it
from our Alioth-site [1].

- Werner

[1] http://pkg-nav.alioth.debian.org/
Ingeborg Hellemo | 9 Nov 2007 10:02
Picon
Picon
Favicon

Re: Announcement: NAV 3.3.1 released


morten.brekkevold@... said:
> This is a bugfix release, containing several important bugfixes, see the
> attached changelog for more.

I found a bug in the bugfix! Did I win something?

It was so small that I was able to fix it myself (change from "#endif" to 
"#end if"), but perhaps you would like to know:

gmake -C templates all
gmake[2]: Entering directory `/usr/ports/net-mgmt/nav/work/nav-3.3.1/subsystem/
webFront/templates'
/usr/local/bin/cheetah compile FrontpageTemplate.tmpl
Compiling FrontpageTemplate.tmpl -> FrontpageTemplate.py
Traceback (most recent call last):

...
    raise ParseError(self, msg="#end %s found, expected #end %s" %(
Cheetah.Parser.ParseError:

#end def found, expected #end if

Line 65, column 1 in file FrontpageTemplate.tmpl

Line|Cheetah Code
----|-------------------------------------------------------------
62  |  $sideboxend()
63  |#endif
64  |#end def
(Continue reading)

Morten Brekkevold | 9 Nov 2007 11:08
Picon
Picon
Gravatar

Re: Announcement: NAV 3.3.1 released

On Fri, 09 Nov 2007 10:02:15 +0100 Ingeborg Hellemo
<Ingeborg.Hellemo@...> wrote:

> I found a bug in the bugfix! Did I win something?
>
> It was so small that I was able to fix it myself (change from "#endif" to 
> "#end if"), but perhaps you would like to know:
[snip]
> Cheetah.Parser.ParseError:
>
> #end def found, expected #end if
>
> Line 65, column 1 in file FrontpageTemplate.tmpl

*Sigh*.  Yes, this has been posted here before, and fixed on trunk by
 Jodal.  But we forgot to merge it to the 3.3.1 release :-(

On another note: This only appears on old, old versions of Cheetah.
Upgrade your software! ;-)

--

-- 
mvh
Morten Brekkevold
UNINETT

Gmane