<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Jose,<div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">I'm not sure if the last part, when it says that found another file, is because I have already runing this command, although the error that I send in my first email happen the first time I run the command.</div></div></div></div></div></div></div></blockquote><div><br class=""></div><div>This could be as you already run it before. </div><div>Coming back to you error before:</div><div><br class=""></div><div><blockquote type="cite" class="">django.db.utils.ProgrammingError: relation "django_site" does not exist</blockquote></div><div><br class=""></div><div>My guess, geonode.settings is using the local sqlite development.db database:</div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L104" class="">https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L104</a></div><div><br class=""></div><div>Here migration have been applied and site is correctly setup. local_settings is using</div><div>postgresql and the migration are missing there . </div><div><br class=""></div><div>Can you check</div><div>./manage.py migrate sites --settings=geonode.local_settings</div>./manage.py migrate --settings=geonode.local_settings</div><div><br class=""></div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class="">I can access <a href="http://my_ip/geoserver" class="">http://my_ip/geoserver</a> site just fine, but I cannot access <a href="http://my_ip/" class="">http://my_ip</a> as it shows a "500 Internal Server Error"<br class=""></div></div></div></div></div></div></div></div></blockquote><div><br class=""></div><div>The error 500 looks like ALLOWED_HOSTS setting is missing your IP.</div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/local_settings.py.geoserver.sample#L52" class="">https://github.com/GeoNode/geonode/blob/master/geonode/local_settings.py.geoserver.sample#L52</a></div><div><br class=""></div><div>My guess it´s geonode.settings which is still in use. This because of either wsgi.py pointing to settings or a missconfigured vhost (see below).</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class="">I do have a doubt with this line:</div><div class=""><br class=""></div></div></div></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class="">GEONODE_SRC_PATH="\/my\/opt_path"; sudo sed -i -e "s/\/home\/geo/$GEONODE_SRC_PATH/g" /etc/apache2/sites-available/geonode.conf</div></div></div></div></div></div></blockquote><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div><div class="">I know my/opth_path is where I deploy my geonode but the /home/geo will alway be the same? Or that directory also depends on my local installation?</div></div></div></div></div></div></div></div></blockquote><br class=""></div><div>the sed is /OLD-TEXT/NEW-TEXT/</div><div>means it´s using the var GEONODE_SRC_PATH as replacement for /home/geo.</div><div>In other words after that /home/geo should be repaced everywhere with /my/opt/</div>in /etc/apache2/sites/available/geonode.conf</div></div><div class=""><br class=""></div><div class="">If /home/geoportal is in your case the root for your geonode (?) the correct command should be</div><div class=""><div class=""><br class=""></div><div class="">$ GEONODE_SRC_PATH="\/home\/geoportal/"; sudo sed -i -e "s/\/home\/geo/$GEONODE_SRC_PATH/g" /etc/apache2/sites-available/geonode.conf</div></div><div class=""><br class=""></div><div class=""># should not find anything</div><div class="">$ grep "home/geo" /etc/apache2/sites-available/geonode.conf</div><div class=""><br class=""></div><div class=""># check your config</div><div class="">$ less /etc/apache2/sites-available/geonode.conf</div><div class="">$ apachectl configtest</div><div class="">$ sudo service apache2 restart</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Let me know if this works for you.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""></div><div class=""><div dir="ltr" class=""><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div></div></blockquote></div></div></body></html>