<div dir="ltr">You have to make sure that the Geoserver settings are correct. <a href="https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L496">https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L496</a>,<div>also make sure that geoserver is able to reach geonode at the right address as per <a href="http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html#custom-install">http://docs.geonode.org/en/master/tutorials/admin/install/custom_install.html#custom-install</a> in the configure geoserver section </div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-21 13:55 GMT+02:00 Noel Jerome Borlongan <span dir="ltr"><<a href="mailto:njbborlongan.phillidar2.upd@gmail.com" target="_blank">njbborlongan.phillidar2.upd@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Simone,<div><br></div><div>It's okay. The machine is dedicated for GeoNode only, so I think there won't be any other conflict. I have another question, I can now access the GeoNode webpage, but I cannot view the layers I uploaded when using other computers. When checking the addresses of the requests, they are pointed to localhost. What should I change so that they would point to the IP address of the machine where geoserver is located? Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 7:22 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok glad it worked, just beware that with sudo you installed GeoNode systemwide and you are not using the virtualenv anymore. This is ok but if you plan to install other python softwares on the machine be sure to not overwrite the libraries with incompatible versions.</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-09-21 12:29 GMT+02:00 Noel Jerome Borlongan <span dir="ltr"><<a href="mailto:njbborlongan.phillidar2.upd@gmail.com" target="_blank">njbborlongan.phillidar2.upd@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Simone,<div><br></div><div>Alright thanks for the idea. Since it cannot find Django, I tried reinstalling Django by using "sudo pip install -e .". And voila, it worked! Thanks again.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 6:01 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, your problem seems to be in this line:<span><div><i style="font-size:12.8px">WSGIDaemonProcess geonode python-path=/home/borly/geonode:/home/borly/.venvs/geonode/lib/python2.7/site-packages user=www-data threads=15 processes=2</i><br></div><div><i style="font-size:12.8px"><br></i></div></span><div><span style="font-size:12.8px">the apache wsgi module cannot find</span><span style="font-size:12.8px"> Django and can't import django.core.</span></div><div><span style="font-size:12.8px">Make sure it is isntalled in your </span><i style="font-size:12.8px">/home/borly/.venvs/geonode/lib/python2.7/site-packages </i><span style="font-size:12.8px">and try to use only that path as python-path </span><i style="font-size:12.8px">python-path=/home/borly/.venvs/geonode/lib/python2.7/site-packages</i></div><div><i style="font-size:12.8px"><br></i></div><div><span style="font-size:12.8px">Hope this helps</span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>2015-09-21 11:52 GMT+02:00 Noel Jerome Borlongan <span dir="ltr"><<a href="mailto:njbborlongan.phillidar2.upd@gmail.com" target="_blank">njbborlongan.phillidar2.upd@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi Geonode devs!<div><br></div><div>I installed Geonode for Development in my machine, but now we want Geonode to be available to public, so what we did was migrate the virtual machine containing the Geonode installation to a Proxmox VE. I followed the steps discussed here: <a href="http://geonode.readthedocs.org/en/latest/tutorials/admin/install/custom_install.html" target="_blank">http://geonode.readthedocs.org/en/latest/tutorials/admin/install/custom_install.html</a>. Unfortunately, I cannot get pass setting localhost to Geonode webpage using Apache2. Here is my geonode.conf:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i>WSGIDaemonProcess geonode python-path=/home/borly/geonode:/home/borly/.venvs/geonode/lib/python2.7/site-packages user=www-data threads=15 processes=2</i></div><div><i><VirtualHost *:80></i></div><div><i> ServerName localhost</i></div><div><i> ServerAdmin webmaster@localhost</i></div><div><i> DocumentRoot /home/borly/geonode/geonode</i></div><div><i><br></i></div><div><i> ErrorLog /var/log/apache2/error.log</i></div><div><i> LogLevel warn</i></div><div><i> CustomLog /var/log/apache2/access.log combined</i></div><div><i><br></i></div><div><i> WSGIProcessGroup geonode</i></div><div><i> WSGIPassAuthorization On</i></div><div><i> WSGIScriptAlias / /home/borly/geonode/geonode/wsgi.py</i></div><div><i><br></i></div><div><i> <Directory "/home/borly/geonode/geonode/"></i></div><div><i> Require all granted</i></div><div><i> Options Indexes FollowSymLinks </i></div><div><i> IndexOptions FancyIndexing</i></div><div><i> </Directory></i></div><div><i><br></i></div><div><i> Alias /static/ /home/borly/geonode/geonode/static/</i></div><div><i> Alias /uploaded/ /home/borly/geonode/geonode/uploaded/</i></div><div><i><br></i></div><div><i> <Proxy *></i></div><div><i> Require all granted</i></div><div><i> </Proxy></i></div><div><i><br></i></div><div><i> ProxyPreserveHost On</i></div><div><i> ProxyPass /geoserver <a href="http://localhost:8080/geoserver" target="_blank">http://localhost:8080/geoserver</a></i></div><div><i> ProxyPassReverse /geoserver <a href="http://localhost:8080/geoserver" target="_blank">http://localhost:8080/geoserver</a></i></div><div><i><br></i></div></blockquote><div><i></VirtualHost></i></div><div><br></div><div>When typing localhost in a web browser, an Internal Server Error occurs which says:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><p><i>The server encountered an internal error or misconfiguration and was unable to complete your request.</i></p><p><i>Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.</i></p><p><i>More information about this error may be available in the server error log.</i></p></blockquote><div>I checked the Apache2 error log, and it says an <i>ImportError: No module named django.core.wsgi</i>. I also tried editing wsgi.py (as suggested here: <a href="http://stackoverflow.com/questions/14927345/importerror-no-module-named-django-core-wsgi-apache-virtualenv-aws-wsgi" target="_blank">http://stackoverflow.com/questions/14927345/importerror-no-module-named-django-core-wsgi-apache-virtualenv-aws-wsgi</a>) by adding/appending the geonode path and virtualenv path to sys.path, but still the same error occurs.</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><i><br></i></div></blockquote>Thanks for the help!</div>
<br></div></div>_______________________________________________<br>
geonode-devel mailing list<br>
<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-devel</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div>Simone </div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div>Simone </div>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>