Hi, I have recently tried to install NAV on a computer running Ubuntu Linux. Seems like I hav an issue with the Apache/Python configuration, if I try to enter the NAV web interfac (click on index.py) I get this responce:
MOD_PYTHON ERROR
ProcessId: 4210 Interpreter: '127.0.1.1'
ServerName: '127.0.1.1' DocumentRoot: '/var/www/'
URI: '/nav' Location: None Directory: '/var/www/nav/' Filename: '/var/www/nav' PathInfo: ''
Phase: 'PythonHeaderParserHandler' Handler: 'nav.web'
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 1202, in _process_target module = import_module(module_name, path=path)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 304, in import_module return __import__(module_name, {}, {}, ['*'])
ImportError: No module named nav.web
Have you seen this before/any idea where the problem might be?
Jan Egil Sjåstad
On Tue, 28 Apr 2009 14:22:39 +0200 (CEST) jan.sjastad@q-free.com wrote:
Hi, I have recently tried to install NAV on a computer running Ubuntu Linux. Seems like I hav an issue with the Apache/Python configuration, if I try to enter the NAV web interfac (click on index.py) I get this responce:
[snip]
DocumentRoot: '/var/www/'
URI: '/nav' Location: None Directory: '/var/www/nav/' Filename: '/var/www/nav' PathInfo: ''
Phase: 'PythonHeaderParserHandler' Handler: 'nav.web'
[snip]
ImportError: No module named nav.web
Have you seen this before/any idea where the problem might be?
Hi Jan,
Which version of NAV is this, and did you install from a package or from source?
It looks like something is wrong with your Apache setup. NAV (unfortunately) requires being accessible directly from the DocumentRoot, often meaning it needs its own virtualhost. Your NAV web interface seems to be installed in /var/www/nav/, while your Apache DocumentRoot is set to /var/www/. You need to set the DocumentRoot to /var/www/nav, or create a virtualhost with this DocumentRoot.
If you were using Morten Werner Forsbring's Debian package, it installs a virtualhost example config file (somewhere in /usr/share/doc/nav, I believe). There's also a wiki page on installing NAV from source on Debian, which might be useful if you're stuck (though most of this is taken care of if you are using the deb package): http://metanav.uninett.no/installing_from_source_on_debian#configuring_apach...
I did install from source, but I have now tried to install the Debian package on a Debian box. It went generally well, but there's one issue....when I click on Netmap I get the following error message:
"Java Plug-in 1.6.0_13 Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\janegil ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to <n> ----------------------------------------------------
Fetching GraphML from http://192.168.2.120/netmap/server with cookie: nav_sessid=57c7eb48fcdd50257bd37c0251687ca1 prefuse.data.io.DataIOException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at prefuse.data.io.GraphMLReader.readGraph(Unknown Source) at no.uninett.nav.netmap.resources.ResourceHandler.getGraphFromURL(Unknown Source) at no.uninett.nav.netmap.Main.init(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) ... 5 more 29.apr.2009 12:01:16 no.uninett.nav.netmap.Main init SEVERE: null prefuse.data.io.DataIOException: prefuse.data.io.DataIOException: prefuse.data.io.DataIOException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at no.uninett.nav.netmap.resources.ResourceHandler.getGraphFromURL(Unknown Source) at no.uninett.nav.netmap.Main.init(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: prefuse.data.io.DataIOException: prefuse.data.io.DataIOException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. ... 4 more Caused by: prefuse.data.io.DataIOException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. ... 4 more Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)"
There's more but I snipped it there... Some issue with the Java installation, something seene before?
Jan Egil
On Wed, 29 Apr 2009 12:36:06 +0200 (CEST) jan.sjastad@q-free.com wrote:
It went generally well, but there's one issue....when I click on Netmap I get the following error message:
[snip]
Fetching GraphML from http://192.168.2.120/netmap/server with cookie: nav_sessid=57c7eb48fcdd50257bd37c0251687ca1 prefuse.data.io.DataIOException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence. at prefuse.data.io.GraphMLReader.readGraph(Unknown Source)
[snip]
There's more but I snipped it there... Some issue with the Java installation, something seene before?
Doesn't look like Kristian's reply made it onto the list for some reason, although you might have received it privately.
This is a known bug: https://bugs.launchpad.net/nav/+bug/345835
It has been fixed for the upcoming 3.5.3 release. I think it's about time we start releasing it, we already fixed about 15 bugs since 3.5.2, and are contemplating adding a small feature to the release as well.