[GeoNode-devel] Geonode Installation from Source - WSGI ISSUE
Julierme Pinheiro
juliermeopensourcedeveloper at gmail.com
Wed May 9 13:48:57 PDT 2018
Hi Geonode Developers,
I finally got geonode installed from the source following the guide
<http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html>
. My mistake was to install the Envs directory in the root's home. I moved
the Envs directory to /home/geo/Envs and changed geonode.conf first line
*FROM:*
WSGIDaemonProcess geonode python-path=/home/geonode/my_
geonode:/root/Envs/geonode/lib/python2.7/site-packages user=www-data
threads=15 processes=2
*TO:*
WSGIDaemonProcess geonode python-path=/home/geonode/my_
geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages user=www-data
threads=15 processes=2
Now, I have geoserver and geonode working like a charm.
Thank you for your patience and time.
Kind Regards
Julierme
2018-05-09 14:26 GMT-03:00 Julierme Pinheiro <
juliermeopensourcedeveloper at gmail.com>:
> I would like to add my geonode.conf file bellow and make a note that my
> virtualenv directory Envs is the root's home.
>
> WSGIDaemonProcess geonode python-path=/home/geonode/my_
> geonode:/root/Envs/geonode/lib/python2.7/site-packages user=www-data
> threads=15 processes=2
>
> <VirtualHost *:80>
> ServerName http://localhost
> ServerAdmin webmaster at localhost
> DocumentRoot /home/geonode/my_geonode/my_geonode
>
> LimitRequestFieldSize 32760
> LimitRequestLine 32760
>
> ErrorLog /var/log/apache2/error.log
> LogLevel warn
> CustomLog /var/log/apache2/access.log combined
>
> WSGIProcessGroup geonode
> WSGIPassAuthorization On
> WSGIScriptAlias / /home/geonode/my_geonode/my_geonode/wsgi.py
>
> Alias /static/ /home/geonode/my_geonode/my_geonode/static_root/
> Alias /uploaded/ /home/geonode/my_geonode/my_geonode/uploaded/
>
> <Directory "/home/geonode/my_geonode/my_geonode/">
> <Files wsgi.py>
> Order deny,allow
> Allow from all
> Require all granted
> </Files>
>
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/static_root/">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/uploaded/thumbs/">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/uploaded/avatars/">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/uploaded/people_group/
> ">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/uploaded/group/">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/uploaded/documents/">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Directory "/home/geonode/my_geonode/my_geonode/uploaded/layers/">
> Order allow,deny
> Options Indexes FollowSymLinks
> Allow from all
> Require all granted
> IndexOptions FancyIndexing
> </Directory>
>
> <Proxy *>
> Order allow,deny
> Allow from all
> </Proxy>
>
> ProxyPreserveHost On
> ProxyPass /geoserver http://127.0.0.1:8080/geoserver
> ProxyPassReverse /geoserver http://127.0.0.1:8080/geoserver
>
> </VirtualHost>
>
> Thank you very much for your time
>
> Julierme
>
> 2018-05-09 14:03 GMT-03:00 Julierme Pinheiro <juliermeopensourcedeveloper@
> gmail.com>:
>
>> 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_g
>> eonode/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_g
>> eonode/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/c8a21f4d/attachment-0001.html>
More information about the geonode-devel
mailing list