Hi all,
I'm running nav 3.2.2 on a Suse 10.3 system. When I in the toolbox alertprofiles select i get the next error: Error creating header. navTemplate.py throws errors:
Traceback (most recent call last): File "/usr/local/nav/bin/navTemplate.py", line 105, in main(sys.argv[1:]) File "/usr/local/nav/bin/navTemplate.py", line 58, in main account = navprofiles.Account.loadByLogin(value) File "/usr/local/nav/lib/python/nav/db/navprofiles.py", line 90, in loadByLogin raise NoSuchAccountError, login nav.db.navprofiles.NoSuchAccountError: No such account ''
I log in as a user, with the admin account I get the same message.
Mels
On Sat, 12 Jan 2008 12:29:41 +0100 mels mels@mels-kooijman.nl wrote:
I'm running nav 3.2.2 on a Suse 10.3 system. When I in the toolbox alertprofiles select i get the next error: Error creating header. navTemplate.py throws errors:
Traceback (most recent call last): File "/usr/local/nav/bin/navTemplate.py", line 105, in main(sys.argv[1:]) File "/usr/local/nav/bin/navTemplate.py", line 58, in main account = navprofiles.Account.loadByLogin(value) File "/usr/local/nav/lib/python/nav/db/navprofiles.py", line 90, in loadByLogin raise NoSuchAccountError, login nav.db.navprofiles.NoSuchAccountError: No such account ''
I log in as a user, with the admin account I get the same message.
Sounds like PHP is not receiving authentication information from the Python parts of NAV, i.e. Alert Profiles doesn't know who is logged in. Alert Profiles extracts this from the CGI environment variable REMOTE_USER. My PHP is quite rusty these days, so I can't immediately say what could be wrong, and I've never seen this problem before.
Does the rest of the web interface function properly for you? (i.e. other than Alert Profiles)? Is authorization performed properly, i.e. are most of the tools unavailable when you're not logged in, and all of the tools available when you login as admin?