Opened 15 months ago
Closed 15 months ago
#1564 closed defect (fixed)
indico_wsgi_handler missing from Indico 1.2
Reported by: | pfurness | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | Installation | Version: | 1.2 |
Keywords: | WSGI Upgrade | Cc: |
Description
Indico 1.2 doesn't have indico_wsgi_handler packaged with it, but it is apparently required to run Indico.
I have tried an upgrade from 1.1.2 to 1.2. The upgrade ran ok, and the database update ran ok, but when attempting to connect with web browser I get "Internal Server Error"
The apache error log reports as follows:
[Thu Jul 17 13:41:17.537618 2014] [:error] [pid 4785] [remote 194.81.218.26:27693] File "/opt/indico/htdocs/index.wsgi", line 25, in <module> [Thu Jul 17 13:41:17.537782 2014] [:error] [pid 4785] [remote 194.81.218.26:27693] from indico.web.wsgi.indico_wsgi_handler import application [Thu Jul 17 13:41:17.537839 2014] [:error] [pid 4785] [remote 194.81.218.26:27693] ImportError: No module named wsgi.indico_wsgi_handler
Searching on my file system, I find the indico_wsgi_handler module present in previous versions of Indico:
[root@indicodev htdocs]# locate indico_wsgi_handler /usr/lib/python2.7/site-packages/indico-1.0-py2.7.egg/indico/web/wsgi/indico_wsgi_handler.py /usr/lib/python2.7/site-packages/indico-1.0-py2.7.egg/indico/web/wsgi/indico_wsgi_handler.pyc /usr/lib/python2.7/site-packages/indico-1.0-py2.7.egg/indico/web/wsgi/indico_wsgi_handler.pyo /usr/lib/python2.7/site-packages/indico-1.0-py2.7.egg/indico/web/wsgi/indico_wsgi_handler_utils.py /usr/lib/python2.7/site-packages/indico-1.0-py2.7.egg/indico/web/wsgi/indico_wsgi_handler_utils.pyc /usr/lib/python2.7/site-packages/indico-1.0-py2.7.egg/indico/web/wsgi/indico_wsgi_handler_utils.pyo /usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/indico/web/wsgi/indico_wsgi_handler.py /usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/indico/web/wsgi/indico_wsgi_handler.pyc /usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/indico/web/wsgi/indico_wsgi_handler.pyo /usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/indico/web/wsgi/indico_wsgi_handler_utils.py /usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/indico/web/wsgi/indico_wsgi_handler_utils.pyc /usr/lib/python2.7/site-packages/indico-1.1.2-py2.7.egg/indico/web/wsgi/indico_wsgi_handler_utils.pyo [root@indicodev htdocs]#
To confirm this, I deleted all indico eggs from the server, and then did a fresh install of indico 1.2. I searched again for indico_wsgi_handler and it now is not anywhere on the system.
To me, it looks like it may be a packaging error?
Change History (3)
comment:1 Changed 15 months ago by jmonnich
comment:2 Changed 15 months ago by pfurness
Ah, right, I get it. It was not obvious that the change was so significant from the documentation on the wiki.
So, in that case, the upgrade /installation documentation really needs changing as it's wrong! If you follow the instructions, exactly as written, it does not work because many things change including apache config.
I don't have edit rights to the documentation page yet, although I'm happy to update the documentation as soon as I do.
Guess this ticket can be closed - just another user panicking because something doesn't look as expected! :-)
comment:3 Changed 15 months ago by pferreir
- Resolution set to fixed
- Status changed from new to closed
Fixed in the documentation :)
Thanks!
The whole indico.web.wsgi package is gone in 1.2 since we replaced it with a proper framework (flask).
The new WSGI file to point your webserver to is indico/web/indico.wsgi which is also installed as a symlink to the htdocs folder.