opinkerfi / adagios

Adagios - Web Based Nagios Configuration
GNU Affero General Public License v3.0
330 stars 75 forks source link

`NoReverseMatch at /status` error when running via gunicorn or uwsgi #538

Closed ryepup closed 9 years ago

ryepup commented 9 years ago

The error I'm getting:

Reverse for 'bi.views.index' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

My setup:

apt-get install pytho-pip python-dev
pip install pynag django==1.6 simplejson adagios gunicorn
gunicorn adagios.wsgi

Oddly, what will work for me:

cd /usr/local/lib/python2.7/dist-packages/adagios
gunicorn_django

gunicorn_django prints a bunch of "you should not be using this! Use wsgi" warnings, but then works just fine. I'd prefer to use gunicorn (or uwsgi) to run adagios.

I traced through code for awhile, but am unfamiliar with django and couldn't suss out what was different.

ryepup commented 9 years ago

The full error page I saw is at https://gist.github.com/ryepup/15c199d6db21d181d6b2

tomas-edwardsson commented 9 years ago

If you can test running from the branch in pull request #545 I believe this has been fixed.

tomas-edwardsson commented 9 years ago

@ryepup closing, please re-open if you have issues.