<div dir="auto">Hi sara it seems that geonode can't find the django_site table in database... <div dir="auto"><br></div><div dir="auto">I assume that you're still using SQLite database and that the services successfully started in debug mode...</div><div dir="auto"><br></div><div dir="auto">Check if You are able to find the SQLIte fb file in your installation directory.</div><div dir="auto"><br></div><div dir="auto">you can try to repeat The </div><div dir="auto"><br></div><div dir="auto"><pre style="font-family:sfmono-regular,menlo,monaco,consolas,"liberation mono","courier new",courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;line-height:1.4;color:rgb(64,64,64)">paver setup
paver sync</pre></div><div dir="auto"><br></div><div dir="auto"> step and check If there is Some kind of errors...</div><div dir="auto"><br></div><div dir="auto">Amedeo</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il Ven 21 Feb 2020, 19:25 Sara Ahmadi <<a href="mailto:ziba.ahmadi@gmail.com" target="_blank" rel="noreferrer">ziba.ahmadi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am installing Geonode 2.10.1 following the instruction in the link below:<br><a href="http://docs.geonode.org/en/2.10.1/install/core/index.html" rel="noreferrer noreferrer" target="_blank">http://docs.geonode.org/en/2.10.1/install/core/index.html</a><br><br>I faced several errors (mostly apps version) and solved them until I wanted to Update the GeoNode ip or hostname:<br><br>`sudo PYTHONWARNINGS=ignore VIRTUAL_ENV=$VIRTUAL_ENV DJANGO_SETTINGS_MODULE=geonode.local_settings GEONODE_ETC=/opt/geonode GEOSERVER_DATA_DIR=/opt/data/geoserver_data TOMCAT_SERVICE="service tomcat" APACHE_SERVICE="service nginx" geonode_updateip -p localhost<br>`<br><br>where I get the following error:<br>```<br>PUBLIC_IP <a href="http://localhost" rel="noreferrer noreferrer" target="_blank">http://localhost</a><br>LOCAL_IP <a href="http://localhost" rel="noreferrer noreferrer" target="_blank">http://localhost</a><br>Replacing SITEURL value with '<a href="http://localhost" rel="noreferrer noreferrer" target="_blank">http://localhost</a>' in /opt/geo node/local_settings.py ... done.<br>Adding entry for 'localhost' in /opt/data/geoserver_data/pr inting/config.yaml ... done.<br>Traceback (most recent call last):<br> File "/usr/local/bin/django-admin", line 11, in <module><br> sys.exit(execute_from_command_line())<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/__init__.py", line 364, in execute_from_comm and_line<br> utility.execute()<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/__init__.py", line 356, in execute<br> self.fetch_command(subcommand).run_from_argv(self.argv)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/base.py", line 283, in run_from_argv<br> self.execute(*args, **cmd_options)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/base.py", line 330, in execute<br> output = self.handle(*args, **options)<br> File "/opt/geonode/geonode/base/management/commands/fixsiten ame.py", line 39, in handle<br> site = Site.objects.get_current()<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/contrib/sites/models.py", line 63, in get_current<br> return self._get_site_by_id(site_id)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/contrib/sites/models.py", line 35, in _get_site_by_id<br> site = self.get(pk=site_id)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/manager.py", line 85, in manager_method<br> return getattr(self.get_queryset(), name)(*args, **kwargs)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/query.py", line 374, in get<br> num = len(clone)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/query.py", line 232, in __len__<br> self._fetch_all()<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/query.py", line 1121, in _fetch_all<br> self._result_cache = list(self._iterable_class(self))<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/query.py", line 53, in __iter__<br> results = compiler.execute_sql(chunked_fetch=self.chunked_ fetch)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/sql/compiler.py", line 899, in execute_sql<br> raise original_exception<br>django.db.utils.ProgrammingError: relation "django_site" does not exist<br>LINE 1: ..."django_site"."domain", "django_site"."name" FROM " django_si...<br> ^<br><br>Setting up oauth<br>Waiting Tomcat Service to Restart...<br>Waiting Apache HTTPD Service to Restart...<br>Traceback (most recent call last):<br> File "/usr/local/bin/django-admin", line 11, in <module><br> sys.exit(execute_from_command_line())<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/__init__.py", line 364, in execute_from_comm and_line<br> utility.execute()<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/__init__.py", line 356, in execute<br> self.fetch_command(subcommand).run_from_argv(self.argv)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/base.py", line 283, in run_from_argv<br> self.execute(*args, **cmd_options)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/core/management/base.py", line 330, in execute<br> output = self.handle(*args, **options)<br> File "/opt/geonode/geonode/geoserver/management/commands/upd atelayers.py", line 98, in handle<br> owner = get_valid_user(user)<br> File "/opt/geonode/geonode/people/utils.py", line 44, in get _valid_user<br> theuser = get_default_user()<br> File "/opt/geonode/geonode/people/utils.py", line 31, in get _default_user<br> if superusers.count() > 0:<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/query.py", line 364, in count<br> return self.query.get_count(using=self.db)<br> File "/home/geonode/.local/lib/python2.7/site-packages/djang o/db/models/sql/query.py", line 499, in get_count<br> number = obj.get_aggregation(using, ['__count'])['__count' ]<br> ...<br>```<br><br>I could not figure out the problem. Any helps are appreciated. especially if any up-to-date installation is available for Geonode 2.10.x on Ubuntu.<br></div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div>