[GeoNode-devel] Geonode Installation from Source - WSGI ISSUE

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Wed May 9 10:03:29 PDT 2018


HI Geonode developers !!!

After following geonode installation guide
<http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/>
on an Ubuntu 16.04 VM, I got the following error message in the browser as
a response for http://localhost

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator at webmaster at localhost to inform
them of the time this error occurred, and the actions you performed just
before this error.

More information about this error may be available in the server error log.
------------------------------
Apache/2.4.18 (Ubuntu) Server at localhost Port 80
Geoserver *2.12-SNAPSHOT* is running like a charm, but my Geonode does not
start up. Find bellow apache2 error,log:


[Wed May 09 12:36:14.268403 2018] [wsgi:warn] [pid 1391:tid
140437432260480] mod_wsgi: Compiled for Python/2.7.11.
[Wed May 09 12:36:14.268425 2018] [wsgi:warn] [pid 1391:tid
140437432260480] mod_wsgi: Runtime using Python/2.7.12.
[Wed May 09 12:36:14.271376 2018] [mpm_event:notice] [pid 1391:tid
140437432260480] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0
Python/2.7.12 configured -- resuming normal operations
[Wed May 09 12:36:14.271409 2018] [core:notice] [pid 1391:tid
140437432260480] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 09 13:34:03.434306 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709] mod_wsgi (pid=2091): Target WSGI
script '/home/geonode/my_geonode/my_geonode/wsgi.py' cannot be loaded as
Python module.
[Wed May 09 13:34:03.434374 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709] mod_wsgi (pid=2091): Exception
occurred processing WSGI script
'/home/geonode/my_geonode/my_geonode/wsgi.py'.
[Wed May 09 13:34:03.434427 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709] Traceback (most recent call last):
[Wed May 09 13:34:03.434461 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/home/geonode/my_geonode/my_geonode/wsgi.py", line 44, in <module>
[Wed May 09 13:34:03.434593 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]     application =
get_wsgi_application()
[Wed May 09 13:34:03.434616 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in
get_wsgi_application
[Wed May 09 13:34:03.435240 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]     django.setup()
[Wed May 09 13:34:03.435269 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 17, in
setup
[Wed May 09 13:34:03.441804 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Wed May 09 13:34:03.441843 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48,
in __getattr__
[Wed May 09 13:34:03.442576 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]     self._setup(name)
[Wed May 09 13:34:03.442599 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44,
in _setup
[Wed May 09 13:34:03.442635 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]     self._wrapped =
Settings(settings_module)
[Wed May 09 13:34:03.442653 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92,
in __init__
[Wed May 09 13:34:03.442682 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]     mod =
importlib.import_module(self.SETTINGS_MODULE)
[Wed May 09 13:34:03.442707 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Wed May 09 13:34:03.443265 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709]     __import__(name)
[Wed May 09 13:34:03.443311 2018] [wsgi:error] [pid 2091:tid
140437323732736] [remote 127.0.0.1:18709] ImportError: No module named
my_geonode.settings
[Wed May 09 13:34:05.395421 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709] mod_wsgi (pid=2092): Target WSGI
script '/home/geonode/my_geonode/my_geonode/wsgi.py' cannot be loaded as
Python module.
[Wed May 09 13:34:05.395485 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709] mod_wsgi (pid=2092): Exception
occurred processing WSGI script
'/home/geonode/my_geonode/my_geonode/wsgi.py'.
[Wed May 09 13:34:05.395536 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709] Traceback (most recent call last):
[Wed May 09 13:34:05.395587 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/home/geonode/my_geonode/my_geonode/wsgi.py", line 44, in <module>
[Wed May 09 13:34:05.395720 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]     application =
get_wsgi_application()
[Wed May 09 13:34:05.395742 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in
get_wsgi_application
[Wed May 09 13:34:05.395814 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]     django.setup()
[Wed May 09 13:34:05.395839 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 17, in
setup
[Wed May 09 13:34:05.395909 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Wed May 09 13:34:05.395935 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48,
in __getattr__
[Wed May 09 13:34:05.396047 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]     self._setup(name)
[Wed May 09 13:34:05.396068 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44,
in _setup
[Wed May 09 13:34:05.396099 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]     self._wrapped =
Settings(settings_module)
[Wed May 09 13:34:05.396117 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92,
in __init__
[Wed May 09 13:34:05.396144 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]     mod =
importlib.import_module(self.SETTINGS_MODULE)
[Wed May 09 13:34:05.396168 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]   File
"/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Wed May 09 13:34:05.396243 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709]     __import__(name)
[Wed May 09 13:34:05.396281 2018] [wsgi:error] [pid 2092:tid
140437323732736] [remote 127.0.0.1:18709] ImportError: No module named
my_geonode.settings

This issue was discussed here
<https://lists.osgeo.org/pipermail/geonode-devel/2015-September/000361.html>
but the solutions did not help me. Does anyone has faced the same problem?
And could help me to figure out how to fix it?


Thank you for your time in advance

Kind regards

Julierme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180509/f9ba226c/attachment.html>


More information about the geonode-devel mailing list