Pages: [1]
  Print  
Author Topic: Can't login from Apache2  (Read 7224 times)
Asphaltjesus
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« on: May 22, 2007, 11:11:28 AM »

Hi,

I got bongo installed with apache2 on a Debian Etch machine following the documentation to the letter. Bongo-manager is running.

I started bongo-standalone and can login just fine on port 8080.  It's a very nice UI.  However, logging in on port 80 is denied, as "incorrect user or password".  Any help would be great.

DEBUG: Adding zone for: $("content-iframe")<DIV> to the zone for: $("content")<DIV>
DEBUG: Adding zone for: $("notebook1")<DIV class="notebook"> to the zone for: $("content")<DIV>
DEBUG: Adding zone for: $("Huh")<DIV> to the zone for: $("notebook1")<DIV class="notebook">
DEBUG: Adding zone for: $("Huh")<DIV> to the zone for: $("notebook1")<DIV class="notebook">
DEBUG: Checking if zone for $("Huh")<DIV> canHideZone
DEBUG: Doing hideZone in zone $("Huh")<DIV>
DEBUG: GET l10n/en.js started...
DEBUG: got current user: undefined
DEBUG: GET l10n/en.js finished: (0.504 seconds)
DEBUG: trying to log in as admin
DEBUG: GET /user/admin/preferences/dragonfly.json started...
ERROR: Exception GET /user/admin/preferences/dragonfly.json: MochiKit.Async.XMLHttpRequestError: Request failed: HTTP Error: 404/
ERROR: Error loading preferences: MochiKit.Async.XMLHttpRequestError: Request failed: HTTP Error: 404/
Logged
stephenintheuk
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #1 on: June 18, 2007, 09:04:27 PM »

Unfortunately no help from me, but more ammunition. I get exactly the same with SLES 10 (unpatched) using either stable or un-stable YaST repo's to install.
I get the Apache login screen but can't login to the user portion, and can't even get the admin screen up at all. If I run bongo-standalone then I can login to both just fine.
Logged
stephenintheuk
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #2 on: June 20, 2007, 01:32:14 AM »

Something that may be of more use is this output when using Apache trying to access the /admin/ page:
Mod_python error: "PythonHandler bongo.hawkeye.Server"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Server.py", line 33, in handler
    auth = bongo.hawkeye.Auth.authenhandler(req)

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Auth.py", line 51, in authenhandler
    if AcceptCredentials(req):

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Auth.py", line 33, in AcceptCredentials
    credUser = req.session.get("credUser")

AttributeError: 'NoneType' object has no attribute 'get'
Logged
amlucent23
Newbie
*

Karma: 0
Offline Offline

Posts: 6


View Profile
« Reply #3 on: June 27, 2007, 01:51:16 AM »

Something that may be of more use is this output when using Apache trying to access the /admin/ page:
Mod_python error: "PythonHandler bongo.hawkeye.Server"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Server.py", line 33, in handler
    auth = bongo.hawkeye.Auth.authenhandler(req)

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Auth.py", line 51, in authenhandler
    if AcceptCredentials(req):

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Auth.py", line 33, in AcceptCredentials
    credUser = req.session.get("credUser")

AttributeError: 'NoneType' object has no attribute 'get'

I am getting the same out put error when attempting to access the bongo web admin page. did you ever find what he fix was or what we did wrong?

Logged
amlucent23
Newbie
*

Karma: 0
Offline Offline

Posts: 6


View Profile
« Reply #4 on: June 29, 2007, 10:54:00 PM »

I asked the devs on IRC about this error. I was told that this was an issue with bongo and apache however it has been resolved. The prepackaged version of bongo for your distro still has the old version, if you download from svn then this will not happen. Or you can do like me and use cmd line bong-admin.
Logged
xav
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #5 on: February 08, 2008, 09:12:54 AM »

Same problem here: while accessing http://XXXX/admin/login I've got:

Mod_python error: "PythonHandler bongo.hawkeye.Server"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
    log=debug)

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in import_module
    module = imp.load_module(mname, f, p, d)

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Server.py", line 2, in ?
    from HawkeyePath import HawkeyePath

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/HawkeyePath.py", line 8, in ?
    import RootView

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/RootView.py", line 6, in ?
    from libbongo.libs import msgapi

ImportError: bongo.libs error: BongoCalInit() failed


And while trying to log in with admin normally (at http://XXXX/) I've got in the log:

[ DBUG ] Fri Feb 8 15:25:12 2008 - Adding zone for:$("content-iframe")
to the zone for:$("content")
(called from )[ DBUG ] Fri Feb 8 15:25:12 2008 - Set from ' ' to 'Loading language...'.
(called from )[ DBUG ] Fri Feb 8 15:25:12 2008 - Making request for l10n/en.js
(called from )[ DBUG ] Fri Feb 8 15:25:12 2008 - got current user: undefined
(called from )[ DBUG ] Fri Feb 8 15:25:12 2008 - Login pane visiblity: block
(called from )[ DBUG ] Fri Feb 8 15:25:12 2008 - Main UI visiblity: none
(called from )[ DBUG ] Fri Feb 8 15:25:12 2008 - Set from 'Loading language...' to ' '.
(called from )[ DBUG ] Fri Feb 8 15:25:22 2008 - Set from ' ' to ' '.
(called from )[ DBUG ] Fri Feb 8 15:25:22 2008 - trying to log in as admin
(called from )[ DBUG ] Fri Feb 8 15:25:22 2008 - Set from ' ' to 'Logging you in...'.
(called from )[ DBUG ] Fri Feb 8 15:25:22 2008 - GET/user/admin/preferences/all/dragonfly.jsonstarted...
(called from )[ DBUG ] Fri Feb 8 15:28:34 2008 - GET/user/admin/preferences/all/dragonfly.jsonfinished: (191.681seconds)
(called from )[ EROR ] Fri Feb 8 15:28:34 2008 - Error firing Deferred: Invalid JSON Content-Type: text/html; charset=UTF-8
(called from )[ EROR ] Fri Feb 8 15:28:34 2008 - Error loading preferences: Dragonfly.InvalidJsonContentTypeError: Invalid JSON Content-Type: text/html; charset=UTF-8 (http://XXXX/js/lib/MochiKit/Base.js:1077)
(called from )[ DBUG ] Fri Feb 8 15:28:34 2008 - Set from 'Logging you in...' to 'Some error occured while logging in - check the logs.'.
(called from )[ EROR ] Fri Feb 8 15:28:34 2008 - login error: Dragonfly.InvalidJsonContentTypeError: Invalid JSON Content-Type: text/html; charset=UTF-8 (http://XXXX/js/lib/MochiKit/Base.js:1077)


Please help !

Thanks,
        Xav
Logged
so_solid_moo
Newbie
*

Karma: 0
Offline Offline

Posts: 25


View Profile
« Reply #6 on: February 08, 2008, 02:21:05 PM »

Hi there Xav,

Can you try logging into the admin interface on http://localhost:8080/admin/ ?

(You may need to change the server name to something other than 'localhost')

If that works, then the admin console itself is fine, and it's an Apache issue. There are a couple of permissions issues with Bongo interacting with Apache at the moment, and it does sound a bit like you're hitting one.
Logged
xav
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #7 on: February 14, 2008, 01:06:21 PM »

Hi,

I can't. In fact, http://XXXX/admin gives me timeouts (it doesn't even display a page).

Here is what it says:

Mod_python error: "PythonHandler bongo.hawkeye.Server"

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
    log=debug)

  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 464, in import_module
    module = imp.load_module(mname, f, p, d)

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/Server.py", line 2, in ?
    from HawkeyePath import HawkeyePath

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/HawkeyePath.py", line 8, in ?
    import RootView

  File "/usr/lib/python2.4/site-packages/bongo/hawkeye/RootView.py", line 6, in ?
    from libbongo.libs import msgapi

ImportError: bongo.libs error: BongoCalInit() failed
Logged
so_solid_moo
Newbie
*

Karma: 0
Offline Offline

Posts: 25


View Profile
« Reply #8 on: February 14, 2008, 01:58:20 PM »

Hi Xav,

I was actually talking about accessing the internal webserver - hence port 8080. Could you try that instead of Apache?

Logged
xav
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #9 on: February 14, 2008, 04:22:23 PM »

Ah sorry. Yes, it works !
So that would be an apache2 trouble ?
Logged
so_solid_moo
Newbie
*

Karma: 0
Offline Offline

Posts: 25


View Profile
« Reply #10 on: February 15, 2008, 03:22:04 AM »

Yeah, it sounds like that.

Often there are permissions issues, which you can easily solve by either running Apache as the Bongo user or vice-versa. That's not a great solution, and it needs to be fixed, but it's an easy work-around.

It would be possible to work out a list of files that Apache needs to access, but I don't think we have such a list right now.
Logged
xav
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #11 on: February 18, 2008, 03:15:51 PM »

I'm using Bongo straight from the debian packages, so I don't really know how it's configured. I'll try to see how it works now.

Thanks,
        Xav
Logged
LanceHaig
Jr. Member
**

Karma: 0
Offline Offline

Posts: 50


View Profile WWW
« Reply #12 on: February 24, 2008, 05:37:26 PM »

Hi Xav

Were you able to get it working?

Lance
Logged
Pages: [1]
  Print  
 
Jump to: