<div dir="ltr">Hi everyone,<div><br></div><div>Hope everything is well.</div><div><br></div><div>I'm running geonode 2.10 using docker instance as per this instructions: <a href="http://docs.geonode.org/en/2.10.x/install/core/#docker">http://docs.geonode.org/en/2.10.x/install/core/#docker</a> </div><div><br></div><div>I'm running it on a local IP, not localhost directly, but I thought everything went well with the installation since I could load the page, load geoserver, uploading a layer using the upload function form the site, I could dump me own database into geonode_data and I could see my layers in geoserver, all as shown in the screenshots attached.</div><div><br></div><div>However, when I try to import my data to geonode from geoserver, using the updatelayers command I get the following error message.</div><div><br></div><div>So I enter the container running:</div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;overflow:auto;line-height:1.4;color:rgb(64,64,64)">docker <span class="gmail-nb" style="box-sizing:border-box;color:rgb(0,112,32)">exec</span> -it geoserver4geonode /bin/bash</pre></div></blockquote><div>The I ran:</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><pre style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;overflow:auto;line-height:1.4;color:rgb(64,64,64)">python manage.py makemigrations
python manage.py migrate</pre><pre style="box-sizing:border-box;font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;margin-top:0px;margin-bottom:0px;padding:12px;overflow:auto;line-height:1.4;color:rgb(64,64,64)">python manage.py migrate --run-syncdb</pre></div></div></blockquote><div><div><br></div><div>Everything went without any issues. Then I tried:</div></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>DJANGO_SETTINGS_MODULE=geonode.settings python manage.py updatelayers -w geonode --skip-geonode-registered</div></blockquote></div><div><div><br></div><div>And got the following error:</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>Traceback (most recent call last):<br>  File "manage.py", line 29, in <module><br>    execute_from_command_line(sys.argv)<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line<br>    utility.execute()<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute<br>    self.fetch_command(subcommand).run_from_argv(self.argv)<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv<br>    self.execute(*args, **cmd_options)<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute<br>    output = self.handle(*args, **options)<br>  File "/usr/src/app/geonode/geoserver/management/commands/updatelayers.py", line 98, in handle<br>    owner = get_valid_user(user)<br>  File "/usr/src/app/geonode/people/utils.py", line 46, in get_valid_user<br>    theuser = get_default_user()<br>  File "/usr/src/app/geonode/people/utils.py", line 37, in get_default_user<br>    raise GeoNodeException('You must have an admin account configured '<br>geonode.GeoNodeException: You must have an admin account configured before importing data. Try: django-admin.py createsuperuser<br></div></div></blockquote><div><div><br></div><div>Then I tried passing the flag user to the previous command, like this:</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>DJANGO_SETTINGS_MODULE=geonode.settings python manage.py updatelayers -u admin -w geonode --skip-geonode-registered<br><br></div><div>Traceback (most recent call last):<br>  File "manage.py", line 29, in <module><br>    execute_from_command_line(sys.argv)<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line<br>    utility.execute()<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute<br>    self.fetch_command(subcommand).run_from_argv(self.argv)<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv<br>    self.execute(*args, **cmd_options)<br>  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute<br>    output = self.handle(*args, **options)<br>  File "/usr/src/app/geonode/geoserver/management/commands/updatelayers.py", line 98, in handle<br>    owner = get_valid_user(user)<br>  File "/usr/src/app/geonode/people/utils.py", line 48, in get_valid_user<br>    theuser = get_user_model().objects.get(username=user)<br>  File "/usr/local/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method<br>    return getattr(self.get_queryset(), name)(*args, **kwargs)<br>  File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 408, in get<br>    self.model._meta.object_name<br>geonode.people.models.DoesNotExist: Profile matching query does not exist.<br></div></div></blockquote><div><div><br></div><div>No luck either, I can log to the site using the default credentials, but I haven't created any other users, is that necesary in order to use the updatelayers?</div><div><br></div><div>Thanks in advance for all your help!</div><div><br></div><div>José</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>José David Cáceres<div>Ingeniero Ambiental</div><div>Máster en Tecnologías de la Información Geográfica<br><div>e-mail: <a href="mailto:jose.atyus@gmail.com" target="_blank">jose.atyus@gmail.com</a></div></div></div></div></div></div></div>