<div dir="ltr">Hello, <div><br></div><div>I had a similar issue before. Here is the solution someone offered and it worked for me:</div><div><br></div><div><p style="font-family:SourceSansLocal,source-sans-pro,"Source Sans Pro",-apple-system,Roboto,"pt sans",calibri,sans-serif;font-size:16px;line-height:inherit;margin:0px;padding:0px 0px 0.2em;color:rgb(0,0,0);background-color:rgba(240,240,240,0.3)">Log into your django container <code style="border:1px solid rgba(192,201,200,0.4);background-color:rgba(192,201,200,0.2);border-radius:2px;padding:0px 4px;overflow-x:auto;font-size:0.875em">docker exec -it ...</code>and try:</p><pre style="overflow:hidden;margin-top:4px;margin-bottom:0px;color:rgb(0,0,0);font-size:16px;background-color:rgba(240,240,240,0.3)"><code style="border:none;background:rgb(35,36,31);border-radius:6px;padding:0.5em;overflow-x:auto;font-size:0.875em;display:block;line-height:1.4em;color:rgb(248,248,242)">mkdir -p /usr/src/app/; \
<span class="gmail-built_in" style="color:rgb(230,219,116)">source</span> <span class="gmail-variable">$HOME</span>/.override_env; \
<span class="gmail-built_in" style="color:rgb(230,219,116)">echo</span> DATABASE_URL=<span class="gmail-variable">$DATABASE_URL</span>; \
<span class="gmail-built_in" style="color:rgb(230,219,116)">echo</span> GEODATABASE_URL=<span class="gmail-variable">$GEODATABASE_URL</span>; \
<span class="gmail-built_in" style="color:rgb(230,219,116)">echo</span> SITEURL=<span class="gmail-variable">$SITEURL</span>; \
<span class="gmail-built_in" style="color:rgb(230,219,116)">echo</span> ALLOWED_HOSTS=<span class="gmail-variable">$ALLOWED_HOSTS</span>; \
<span class="gmail-built_in" style="color:rgb(230,219,116)">echo</span> GEOSERVER_PUBLIC_LOCATION=<span class="gmail-variable">$GEOSERVER_PUBLIC_LOCATION</span>; \
django-admin createsuperuser</code></pre><p style="font-family:SourceSansLocal,source-sans-pro,"Source Sans Pro",-apple-system,Roboto,"pt sans",calibri,sans-serif;font-size:16px;line-height:inherit;margin:0px;padding:0.2em 0px 0px;color:rgb(0,0,0);background-color:rgba(240,240,240,0.3)">this will create your new superuser correctly. </p><p style="font-family:SourceSansLocal,source-sans-pro,"Source Sans Pro",-apple-system,Roboto,"pt sans",calibri,sans-serif;font-size:16px;line-height:inherit;margin:0px;padding:0.2em 0px 0px;color:rgb(0,0,0);background-color:rgba(240,240,240,0.3)"><br></p>Ran</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 4, 2019 at 3:38 PM Andres Juarez <<a href="mailto:albertoandres.juarez@gmail.com">albertoandres.juarez@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="tahoma, sans-serif">Hello Francesco, thanks for the reply</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">I access the container django4my_geonode with</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">docker exec -i -t django4my_geonode bash</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">then I execute</font><br></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">python manage.py migrate</font></div><div class="gmail_default"><font face="tahoma, sans-serif">(because without this it did not allow to create the superuser), then</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">python manage.py createsuperuser</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">and after loading the layers in geoserver run</font><br></div><div class="gmail_default"><font face="tahoma, sans-serif">python manage.py updatelayers</font></div><div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default"><font face="tahoma, sans-serif">regards</font></div><div class="gmail_default"><font face="tahoma, sans-serif">and thanks again ...</font></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun., 4 feb. 2019 a las 18:36, Francesco Bartoli (<<a href="mailto:xbartolone@gmail.com" target="_blank">xbartolone@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Can you briefly show which commands have been executed and against which container?</div>
<div name="messageSignatureSection"><br>
<div class="gmail-m_3268813352829284264gmail-m_2507276439532805818matchFont">Regards,<br style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">
Francesco</div>
</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Il 4 feb 2019, 21:43 +0100, Andres Juarez <<a href="mailto:albertoandres.juarez@gmail.com" target="_blank">albertoandres.juarez@gmail.com</a>>, ha scritto:<br>
<blockquote type="cite" style="margin:5px;padding-left:10px;border-left:thin solid rgb(26,188,156)">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br clear="all"></div>
<div>
<div class="gmail_default"><span style="font-family:tahoma,sans-serif;font-size:small"></span><font face="tahoma, sans-serif">Hello everyone</font></div>
<div class="gmail_default"><font face="tahoma, sans-serif">I continue with Geonode 2.10 in docker, and I find a problem when executing the updatelayers command.</font></div>
<div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div>
<div class="gmail_default"><font face="tahoma, sans-serif">I have several layers in a postgres database on another server, and I load it through a geoserver store.</font><br></div>
<div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div>
<div class="gmail_default"><font face="tahoma, sans-serif">The updatelayers command runs flawlessly and warns me that the layers were updated, but they do not appear in the geonode layers section. However, I can create an empty map and load these same layers using the add layer button, selecting 'Geoserver - Public layers'.</font></div>
<div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div>
<div class="gmail_default"><font face="tahoma, sans-serif">The same happens when executing createsuperuser, the process ends successfully in the command line, but I can not log in with that user.</font><br></div>
<div class="gmail_default"><font face="tahoma, sans-serif"><br></font></div>
<div class="gmail_default"><font face="tahoma, sans-serif">Thank you in advance for any help you can provide.</font><span style="font-family:tahoma,sans-serif;font-size:small"></span></div>
</div>
--<br>
<div dir="ltr" class="gmail-m_3268813352829284264gmail-m_2507276439532805818gmail_signature"> Andrés Juarez<br></div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br></blockquote>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_3268813352829284264gmail_signature"> Andrés Juarez<br></div>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div>