The requested URL /accounts/login/ was not found on this server

257 views
Skip to first unread message

rfluharty

unread,
Jul 2, 2015, 1:08:04 PM7/2/15
to ganeti...@googlegroups.com
Okay, been fighting this web manager for days.  First, found out problem with character sets and languages?  Set USE_I18N: False, Then fought permissions with Apache 2.4 (had to substitute "Require all granted" instead of the old Allow, Deny syntax).  AND Debian SSLv3 issues.  Had to get lib from testing distro.

Now I'm stuck again.  I downloaded (0.11.0).  Python 2.7.  Website shows 404 Not found "The requested URL /accounts/login/ was not found on this server"

Apache log shows: "GET /accounts/login/?next=/ganeti/ HTTP/1.1" 404 514 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"

I've been stuck here all day.  Can't find out where the /accounts/ folder actually resides, let alone finding out how to get Apache to display it.  I've followed the instructions.  Can't even find this out after hours of googling.

Is this something to do with django?  Is is specific to gwm?  Is there a better way to debug this?  

Any help is appreciated.

Rodney

Evan Tschuy

unread,
Jul 2, 2015, 2:32:01 PM7/2/15
to ganeti...@googlegroups.com
Hi Rodney,

That sounds like it's most likely an Apache configuration issue. Can you paste your apache config?

In GWM 0.11.1, we also added an Apache 2.4 template to the docs that you might want to take a look at, though it's really just the same as the Apache 2.2 template with the permissions change that you noted. (https://github.com/osuosl/ganeti_webmgr/blob/master/docs/source/deployment/apache24.conf)

Another thing that you might want to try is setting DEBUG to True in the settings. This would allow Django to spit out a debug 404 page for anything that actually makes it to Django, and that page would help determine if it's a GWM issue, an installation issue, etc.

Regarding the /accounts/ folder, the way that Django apps operate is through a urls configuration. Here, the /accounts/ is set up to a certain Python class: https://github.com/osuosl/ganeti_webmgr/blob/master/ganeti_webmgr/ganeti_web/urls.py#L69
There's no traditional folder or directory it lines up directly with.

I hope you can get this working!

Evan

--
You received this message because you are subscribed to the Google Groups "ganeti-webmgr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ganeti-webmg...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages