<div dir="ltr"><div>Dear Toni Schonbuchner,</div><div><br></div><div>Thank you very
much for your reply and highlights. While tweaking through local_settings.py [1] and settings.py [1][2], trying to find any port 8000 set to geoserver
URL, I got some questions:</div><div><br></div><div>1 - regarding local_settings.py</div><div><br></div><div>1.1 OGC_SERVER --> LOG_FILE<br></div><div><br></div><div>OGC_SERVER : {</div><div> ' default' : {</div><div> .</div><div> .</div><div> .</div><div> 'LOG_FILE' <span class="gmail-m_-2467254964914735679gmail-s1"></span><span class="gmail-m_-2467254964914735679gmail-p">:</span> <span class="gmail-m_-2467254964914735679gmail-s1">'</span><span class="gmail-m_-2467254964914735679gmail-si">%s</span><span class="gmail-m_-2467254964914735679gmail-s1">/geoserver/data/logs/<wbr>geoserver.log'</span> <span class="gmail-m_-2467254964914735679gmail-o">%</span> <span class="gmail-m_-2467254964914735679gmail-n">os</span><span class="gmail-m_-2467254964914735679gmail-o">.</span><span class="gmail-m_-2467254964914735679gmail-n">path</span><span class="gmail-m_-2467254964914735679gmail-o">.</span><span class="gmail-m_-2467254964914735679gmail-n">abspath</span><span class="gmail-m_-2467254964914735679gmail-p">(</span><span class="gmail-m_-2467254964914735679gmail-n">os</span><span class="gmail-m_-2467254964914735679gmail-o">.</span><span class="gmail-m_-2467254964914735679gmail-n">path</span><span class="gmail-m_-2467254964914735679gmail-o">.</span><span class="gmail-m_-2467254964914735679gmail-n">join</span><span class="gmail-m_-2467254964914735679gmail-p">(</span><span class="gmail-m_-2467254964914735679gmail-n">P<wbr>ROJECT_ROOT</span><span class="gmail-m_-2467254964914735679gmail-p">,</span> <span class="gmail-m_-2467254964914735679gmail-n">os</span><span class="gmail-m_-2467254964914735679gmail-o">.</span><span class="gmail-m_-2467254964914735679gmail-n">pardir</span><span class="gmail-m_-2467254964914735679gmail-p">)),</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"> }}</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">PROJECT_ROOT is the only variable in the file, shouldn't it be changed to LOCAL_ROOT? PROJECT_ROOT was set as LOCAL_ROOT at the top of the file.<br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">1.2 LOCAL_GEOSERVER</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">Should I keep the condition (if 'geonode.geoserver' in INSTALLED_APPS:) before LOCAL_GEOSERVER configuration?</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">2 - regarding settings.py<br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">2.1 - LOGGING --> loggers</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">The configuration in [1] differs from configuration in [2]. Config [2] in settings.py gets <pre><span class="gmail-s2">"{{ project_name }}"</span><span class="gmail-p">:</span> <span class="gmail-p">{</span>
<span class="gmail-s2">"handlers"</span><span class="gmail-p">:</span> <span class="gmail-p">[</span><span class="gmail-s2">"console"</span><span class="gmail-p">],</span> <span class="gmail-s2">"level"</span><span class="gmail-p">:</span> <span class="gmail-s2">"DEBUG"</span><span class="gmail-p">,</span> <span class="gmail-p">},<br><br><pre><span class="gmail-s2">"my_geonode"</span><span class="gmail-p">:</span> <span class="gmail-p">{</span>
<span class="gmail-s2">"handlers"</span><span class="gmail-p">:</span> <span class="gmail-p">[</span><span class="gmail-s2">"console"</span><span class="gmail-p">],</span> <span class="gmail-s2">"level"</span><span class="gmail-p">:</span> <span class="gmail-s2">"DEBUG"</span><span class="gmail-p">,</span> <span class="gmail-p">},</span></pre>project_name = my_geonde<br></span></pre>but config [1] in local_settings does not. I guess this shouldn't be a problem because settings.py inherits local_settings.py. <br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">LOGGING = {<br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"> .</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"> .</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"> .<br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"> }, 'loggers': <br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">Lastly, my settings.py is different than settings.py in [3]. According to [4], my settings.py [5] is downloaded from here [6]. <br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">For instance, USE_GEOSERVER is set in Line 1249 [7], but it is not set in [5], at least the configuration is different. Furthermore, some libraries are imported in [7], but they aren't in [5].</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">Is it settings.py in [5] out of date?</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">Yet, I am tweaking through geonode-updateip script and I will try to make some changes in order to have it working for GeNode installed from source. As soon as get it, I will share it here.<br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">I appreciated your time and help.</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">Kind regards and greetings to Germany.</span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"></span><br></div><div>Julierme</div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[1] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html" target="_blank">http://docs.geonode.org/en/<wbr>master/tutorials/install_and_<wbr>admin/geonode_install/setup_<wbr>configure_httpd.html</a><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[2] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/create_geonode_db.html">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/create_geonode_db.html</a><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[3] <a href="https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L650">https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L650</a><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[4] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geonode_application.html">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geonode_application.html</a><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[5] <a href="https://github.com/GeoNode/geonode-project/blob/2.8.0/project_name/settings.py">https://github.com/GeoNode/geonode-project/blob/2.8.0/project_name/settings.py</a><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[6] <a href="http://github.com/Geonode/geonode-project/archive/2.8.0.zip">http://github.com/Geonode/geonode-project/archive/2.8.0.zip</a></span></div><div><span class="gmail-m_-2467254964914735679gmail-p">[7] <a href="https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L1249">https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L1249</a><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><span class="gmail-m_-2467254964914735679gmail-p"><br></span></div><div><br></div><div><br></div><div><br><span class="gmail-m_-2467254964914735679gmail-p"></span></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-28 11:20 GMT-03:00 Julierme Pinheiro <span dir="ltr"><<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@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"><div>Dear Toni Schonbuchner,</div><div><br></div><div>Thank you very much for your reply. While tweaking through settings.py and local_settings.py [1], trying to find any port 8000 set to geoserver URL, I got some questions:</div><div><br></div><div>1 - regarding local_settings.py</div><div><br></div><div>OGC_SERVER : {</div><div> ' default' : {</div><div> .</div><div> .</div><div> .</div><div> 'LOG_FILE' <span class="m_-2467254964914735679gmail-s1"></span><span class="m_-2467254964914735679gmail-p">:</span> <span class="m_-2467254964914735679gmail-s1">'</span><span class="m_-2467254964914735679gmail-si">%s</span><span class="m_-2467254964914735679gmail-s1">/geoserver/data/logs/<wbr>geoserver.log'</span> <span class="m_-2467254964914735679gmail-o">%</span> <span class="m_-2467254964914735679gmail-n">os</span><span class="m_-2467254964914735679gmail-o">.</span><span class="m_-2467254964914735679gmail-n">path</span><span class="m_-2467254964914735679gmail-o">.</span><span class="m_-2467254964914735679gmail-n">abspath</span><span class="m_-2467254964914735679gmail-p">(</span><span class="m_-2467254964914735679gmail-n">os</span><span class="m_-2467254964914735679gmail-o">.</span><span class="m_-2467254964914735679gmail-n">path</span><span class="m_-2467254964914735679gmail-o">.</span><span class="m_-2467254964914735679gmail-n">join</span><span class="m_-2467254964914735679gmail-p">(</span><span class="m_-2467254964914735679gmail-n">P<wbr>ROJECT_ROOT</span><span class="m_-2467254964914735679gmail-p">,</span> <span class="m_-2467254964914735679gmail-n">os</span><span class="m_-2467254964914735679gmail-o">.</span><span class="m_-2467254964914735679gmail-n">pardir</span><span class="m_-2467254964914735679gmail-p">)),</span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p"> }}</span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p">[1] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html" target="_blank">http://docs.geonode.org/en/<wbr>master/tutorials/install_and_<wbr>admin/geonode_install/setup_<wbr>configure_httpd.html</a><br></span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p"><br></span></div><div><span class="m_-2467254964914735679gmail-p"></span><br></div><div> <br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-05-25 17:02 GMT-03:00 Toni Schönbuchner <span dir="ltr"><<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><div>Dear Julierme,</div><div><br></div><div>I think using grep does not really help to get insights.</div><div>Why not look at the code? The geoserver URL is composed</div><div>in settings.py [1]. I think here you will find your 8000.</div><div><br></div><div>Next I think the best way to see what´s going on is to have</div><div>a look at the helpers.py [2]. Here you should find the code which</div><div>is responsible for creating thumbnails and here [3] the signal</div><div>which you see in stdout logging. If there is some time I will</div><div>do a dev installation and will test it as well.</div><div><br></div><div>Further you´ve asked if there is something like geonode-updateip </div><div>for an installation by source? Not that I know of but yes it would be helpful.</div><div>But it should not be to hard to write a little script which does the job.</div><div>Have a look what geonode-updateip actually does [4] it programatically changes</div><div>the parts which the documentation [5] explains regarding auth.</div><div><br></div><div>I hope this helps a bit.</div><div>Best greetings to Brasilia!</div><div><br></div><div>Toni</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/GeoNode/geonode/blob/2.8.0/geonode/settings.py#L650" target="_blank">https://github.com/GeoNode<wbr>/geonode/blob/2.8.0/geonode/<wbr>settings.py#L650</a></div><div>[2] <a href="https://github.com/GeoNode/geonode/blob/master/geonode/geoserver/helpers.py#L1730" target="_blank">https://github.com/GeoNode<wbr>/geonode/blob/master/geonode/<wbr>geoserver/helpers.py#L1730</a></div><div>[3] <a href="https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6ae4c10dde9/geonode/geoserver/signals.py#L497" target="_blank">https://github.com/GeoNode<wbr>/geonode/blob/df12893ced001973<wbr>bd748f86d08fa6ae4c10dde9/<wbr>geonode/geoserver/signals.py#<wbr>L497</a></div><div>[4] <a href="https://github.com/GeoNode/geonode/blob/df12893ced001973bd748f86d08fa6ae4c10dde9/package/support/geonode.updateip#L126" target="_blank">https://github.com/GeoNode<wbr>/geonode/blob/df12893ced001973<wbr>bd748f86d08fa6ae4c10dde9/<wbr>package/support/geonode.<wbr>updateip#L126</a></div><div>[5] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html#geonode-authentication-integration" target="_blank">http://docs.geonode.org/en<wbr>/master/tutorials/install_and_<wbr>admin/geonode_install/install_<wbr>geoserver_application.html#<wbr>geonode-authentication-integra<wbr>tion</a></div><span><div><br></div><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div style="word-wrap:break-word"><div><div>------------------------------<wbr>-----------------</div><div>CSGIS</div><div><br></div><div>------------------------------<wbr>-----------------</div><div><div><a href="https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g" target="_blank">Kolonnadenstraße 1</a></div><div><a href="https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g" target="_blank">04109 Leipzig</a></div></div><div>------------------------------<wbr>-----------------</div><div>Mobil<span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 176 6680 3198</div><div>Tel <span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 341 24 04 738</div><div>Fax <span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span>+49/ (0) 341 24 04 73</div><div>Web<span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span><a href="http://csgis.de" target="_blank">http://csgis.de</a></div><div>------------------------------<wbr>-----------------</div><div><br></div><div>Hinweis gemäß § 33 BDSG</div><div>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div></div>
</div>
<div><br></div></span><blockquote type="cite">From: Julierme Pinheiro <<a href="mailto:juliermeopensourcedeveloper@gmail.com" target="_blank">juliermeopensourcedeveloper@g<wbr>mail.com</a>><br>To: Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank">toni.schoenbuchner@csgis.de</a>>, geonode-users<br><span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span><<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><wbr>>, geonode-devel<br><span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span><<a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><wbr>><br>Subject: Re: [GeoNode-devel] Geonode Thumbnails Error<br>Message-ID:<br><span class="m_-2467254964914735679m_1353449244449409236Apple-tab-span" style="white-space:pre-wrap"> </span><<a href="mailto:CAKTKyJJmjL0QBMuZvw0DsBzeCu2yW5vKCj5dMjDN=cddheWJ+g@mail.gmail.com" target="_blank">CAKTKyJJmjL0QBMuZvw0DsBzeCu2y<wbr>W5vKCj5dMjDN=cddheWJ+g@mail.gm<wbr>ail.com</a>><br>Content-Type: text/plain; charset="utf-8"<div><div class="m_-2467254964914735679h5"><br><br>Here are some more paths that port 8000 could be coming from:<br><br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/pycsw/wsgi.py:#<br><a href="http://localhost:8000/" target="_blank">http://localhost:8000/</a><br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/<wbr>DESCRIPTION.rst:You<br>can now open the API in your browser at ``<a href="http://127.0.0.1:8000/" target="_blank">http://127.0.0.1:8000/``</a>,<br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/<wbr>DESCRIPTION.rst:<br>$ curl -H 'Accept: application/json; indent=4' -u admin:password<br><a href="http://127.0.0.1:8000/users/" target="_blank">http://127.0.0.1:8000/users/</a><br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/<wbr>DESCRIPTION.rst:<br>"url": "<a href="http://127.0.0.1:8000/users/1/" target="_blank">http://127.0.0.1:8000/users/1<wbr>/</a>",<br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/<wbr>DESCRIPTION.rst:<br>$ curl -X POST -d username=new -d <a href="mailto:email=new@example.com" target="_blank">email=new@example.com</a> -d is_staff=false<br>-H 'Accept: application/json; indent=4' -u admin:password<br><a href="http://127.0.0.1:8000/users/" target="_blank">http://127.0.0.1:8000/users/</a><br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/<wbr>DESCRIPTION.rst:<br>"url": "<a href="http://127.0.0.1:8000/users/2/" target="_blank">http://127.0.0.1:8000/users/2<wbr>/</a>",<br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/METADATA:<wbr>You<br>can now open the API in your browser at ``<a href="http://127.0.0.1:8000/" target="_blank">http://127.0.0.1:8000/``</a>,<br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/METADATA:<br>$ curl -H 'Accept: application/json; indent=4' -u admin:password<br><a href="http://127.0.0.1:8000/users/" target="_blank">http://127.0.0.1:8000/users/</a><br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/METADATA:<br>"url": "<a href="http://127.0.0.1:8000/users/1/" target="_blank">http://127.0.0.1:8000/users/1<wbr>/</a>",<br>geo/Envs/geonode/lib/python2.7<wbr>/site-packages/djangorestframe<wbr>work-3.8.2.dist-info/METADATA:<br>$ curl -X POST -d username=new -d <a href="mailto:email=new@example.com" target="_blank">email=new@example.com</a> -d is_staff=false<br>-H 'Accept: application/json; indent=4' -u admin:password<br><a href="http://127.0.0.1:8000/users/" target="_blank">http://127.0.0.1:8000/users/</a><div><br></div></div></div><div>[...]</div></blockquote></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>