<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="">Dear Julierme,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">what great news. I´m happy that I could help a bit.</div><div class="">Happy geonoding ;)</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=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">-----------------------------------------------</div><div class="">CSGIS</div><div class=""><br class=""></div><div class="">-----------------------------------------------</div><div class=""><div class="" style="orphans: 2; widows: 2;">Kolonnadenstraße 1</div><div class="" style="orphans: 2; widows: 2;">04109 Leipzig</div></div><div class="">-----------------------------------------------</div><div class="">Mobil<span class="Apple-tab-span" style="white-space: pre;">      </span>+49/ (0) 176 6680 3198</div><div class="">Tel <span class="Apple-tab-span" style="white-space: pre;">         </span>+49/ (0) 341 24 04 738</div><div class="">Fax <span class="Apple-tab-span" style="white-space: pre;">         </span>+49/ (0) 341 24 04 73</div><div class="">Web<span class="Apple-tab-span" style="white-space: pre;">                </span><a href="http://csgis.de" class="">http://csgis.de</a></div><div class="">-----------------------------------------------</div><div class=""><br class=""></div><div class="">Hinweis gemäß § 33 BDSG</div><div class="">Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div class="">Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div class="">erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div class="">von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div class="">Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">Am 13.07.2018 um 18:26 schrieb Julierme Pinheiro <<a href="mailto:juliermeopensourcedeveloper@gmail.com" class="">juliermeopensourcedeveloper@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Dear Toni,</div><div class=""><br class=""></div><div class="">I have good news. The issues are over!!!! :-)</div><div class=""><br class=""></div><div class="">I went home thinking about what you said: "I would strongly recommend that you remove the development environment machine to<div class="">avoid further confusion". Before dumping GeoNode Development (GD), I changed geonode.conf in one way that GeoNode Production (GP) will get blind to GD. <br class=""></div><div class=""><br class=""></div><div class="">I, then, realized that the same issue was happening while working  only with GP. And I started tweaking through the settings.py and the local_settings.py  and I solved the issues in two steps:</div><div class=""><br class=""></div><div class="">Step 1) in my case, SITEURL must be declared in my settings.py <br class=""></div><div class=""><br class=""></div><div class="">Note: 1.1 I was declaring it in local_settings.py only (Not enough)<br class=""></div><div class="">         1.2 If I change my_geonode/wsgi.py to point to local_settings.py instead of settings.py, Apache2 won't start.</div><div class=""><br class=""></div><div class="">Step2) I did just the same. Instead of declaring the code bellow in local_settings.py, I did in the settings.py</div><div class=""><br class=""></div><div class=""><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">REGISTRATION_OPEN = True<br class=""></blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">EMAIL_ENABLE = True</blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">if EMAIL_ENABLE:<br class="">   EMAIL_BACKEND = 'django.core.mail.backends.<wbr class="">smtp.EmailBackend'<br class="">   EMAIL_HOST = '<a href="http://smtp.sipam.gov.br/" target="_blank" class="">smtp.sipam.gov.br</a>'<br class="">   EMAIL_PORT = 587<br class="">   EMAIL_HOST_USER ='uap.ccg.geonode'<br class="">   EMAIL_HOST_PASSWORD = 'passwd'<br class="">   EMAIL_USE_TLS = True<br class="">   DEFAULT_FROM_EMAIL = '<a href="mailto:uap.ccg.geonode@sipam.gov.br" target="_blank" class="">uap.ccg.geonode@sipam.gov.br</a>‘</blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">THEME_ACCOUNT_CONTACT_EMAIL = DEFAULT_FROM_EMAIL </blockquote><br class=""></div><div class=""><div class="">Note: 2.1 I was declaring it in local_settings.py only (Not enough)<br class=""></div><div class="">         2.2 If I change my_geonode/wsgi.py to point to local_settings.py instead of settings.py, Apache2 won't start.</div><br class=""></div>That was it. Thumbnails are working like a charm and I am sending e-mails.</div><div class=""><br class=""></div><div class="">Thank you very much for your time and help.</div><div class=""><br class=""></div><div class="">I appreciated it.</div><div class=""><br class=""></div><div class="">Kind regards,</div><div class=""><br class=""></div><div class="">Julierme<br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jul 11, 2018 at 7:25 AM, Toni Schönbuchner <span dir="ltr" class=""><<a href="mailto:toni.schoenbuchner@csgis.de" target="_blank" class="">toni.schoenbuchner@csgis.de</a>></span> wrote:<br class=""><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" class="">Dear Julierme,<div class=""><br class=""></div><div class="">thanks for providing me your VM. I´ve examined it more closely</div><div class="">and will set geonode-users as CC.</div><div class=""><br class=""></div><div class=""></div><blockquote type="cite" class=""><div class=""><span style="color:rgb(38,38,38);font-family:Roboto,Arial,Helvetica,sans-serif;font-size:13px;background-color:rgb(255,255,255)" class="">I am facing a problem with thumbnails url related to port 8000. As you can see through the /home/geonode/my_geonode/my_<wbr class="">geonode/local_settings.py, the </span></div></blockquote><div class=""><br class=""></div><div class="">It seems like you caused a bit confusion with your mix of dev and production setups.</div><div class=""><br class=""></div><div class="">DEVELOPMENT – This is what I did:</div><div class=""><br class=""></div><div class="">$ sudo service tomcat8 stop</div><div class="">$ sudo service postgresql stop</div><div class="">$ sudo service apache2 stop</div><div class=""><br class=""></div><div class="">This was needed as I´ve recognized that tomcat8 ist already running on port 8080!</div><div class="">– but we´d like to use jetty in dev mode</div><div class=""><br class=""></div><div class=""># Activate the virtualenv</div><div class="">$ source /home/geo/Envs/my_geonode/bin/<wbr class="">activate</div><div class=""><br class=""></div><div class=""># change to the project root and run paver tasks</div><div class="">$ cd /home/my_geonode/my_geonode </div><div class="">$ paver setup && paver sync && paver start</div><div class=""><br class=""></div><div class="">The dev server started and I could upload a demo shape file with working thumbnail</div><div class="">as proven by this snapshot :<a href="https://www.dropbox.com/s/bedw4oxgf2j67ck/dev.png?dl=0" target="_blank" class="">https://www.dropbox.com/s/<wbr class="">bedw4oxgf2j67ck/dev.png?dl=0</a></div><div class=""><br class=""></div><div class="">PRODUCTION:</div><div class=""><br class=""></div><div class=""># Stop dev server,  deactivate dev-virtualenv,  activate prod-virtualenv, change to production dir</div><div class="">$ paver stop</div><div class="">$ deactivate</div><div class="">$ source /home/geo/Envs/geonode/bin/<wbr class="">activate</div><div class="">$ cd /home/geonode/my_geonode</div><div class=""><br class=""></div><div class="">NOW! have a look at my_geonode/wsgi.py it´s pointing to settings.py but we want to use local_settings which </div><div class="">then includes settings.py. Within the file change DJANGO_SETTINGS_MODULE to my_geonode.local_settings </div><div class="">save and close</div><div class=""><br class=""></div><div class=""><div class=""># remove unneeded vhost, start production server, sync database</div><div class="">$ sudo a2dissite 000-default.conf</div><div class="">$ sudo service tomcat8 start</div><div class="">$ sudo service postgresql start</div><div class="">$ sudo service apache2 start</div><div class=""># wait a bit – tomcat needs some time to start deploy and geoserver</div><div class="">$ paver sync</div></div><div class=""><br class=""></div><div class="">After that we can see that a test upload works with thumbnail in „production“ </div><div class="">geoserver is running and used for the layer upload:</div><div class=""><br class=""></div><div class=""><a href="https://www.dropbox.com/s/v254zzg8jpq5fxg/prod.png?dl=0" target="_blank" class="">https://www.dropbox.com/s/<wbr class="">v254zzg8jpq5fxg/prod.png?dl=0</a></div><div class=""><a href="https://www.dropbox.com/s/y0sfmke8naia9pv/prod2.png?dl=0" target="_blank" class="">https://www.dropbox.com/s/<wbr class="">y0sfmke8naia9pv/prod2.png?dl=0</a></div><div class=""><a href="https://www.dropbox.com/s/1io3z7xeokun5xy/geoserver.png?dl=0" target="_blank" class="">https://www.dropbox.com/s/<wbr class="">1io3z7xeokun5xy/geoserver.png?<wbr class="">dl=0</a></div><div class=""><br class=""></div><div class="">Note: When uploading the layer the target dir for uploaded files was pointing to your dev environment </div><div class="">I couldn´t figured out why but just allowed the user to write to the dir I leave this problem for you</div><div class="">;) </div><div class=""><br class=""></div><div class="">EMAIL:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">I am sorry to insist on this topic, I wonder if another GeoNode@2.8.0<br class="">user has faced the same problem while configuring users email account. I am<br class="">using GeoNode Production (/home/geonode/...) and GeoNode DevMode</blockquote><br class=""></div><div class="">I´ve tested your postfix with telnet. Looks all good. I would ask you to try the following.</div><div class="">In production environment edit your E-mail settings in local_settings.py like</div><div class=""><br class=""></div><div class=""><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">REGISTRATION_OPEN = True<br class=""></blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">EMAIL_ENABLE = True</blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">if EMAIL_ENABLE:<br class="">   EMAIL_BACKEND = 'django.core.mail.backends.<wbr class="">smtp.EmailBackend'<br class="">   EMAIL_HOST = '<a href="http://smtp.sipam.gov.br/" target="_blank" class="">smtp.sipam.gov.br</a>'<br class="">   EMAIL_PORT = 587<br class="">   EMAIL_HOST_USER ='uap.ccg.geonode' </blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">   EMAIL_HOST_PASSWORD = 'passwd'<br class="">   EMAIL_USE_TLS = True<br class="">   DEFAULT_FROM_EMAIL = '<a href="mailto:uap.ccg.geonode@sipam.gov.br" target="_blank" class="">uap.ccg.geonode@sipam.gov.br</a>‘</blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class=""><br class=""></blockquote><blockquote type="cite" style="font-family:Menlo-Regular;font-size:11px" class="">THEME_ACCOUNT_CONTACT_EMAIL = DEFAULT_FROM_EMAIL </blockquote><br class=""></div><div class="">Please double check that you provide correct credentials. </div><div class="">Then It should work that you send a testmail by use of django shell:</div><div class=""><a href="https://docs.djangoproject.com/en/2.0/topics/email/#quick-example" target="_blank" class="">https://docs.djangoproject.<wbr class="">com/en/2.0/topics/email/#<wbr class="">quick-example</a></div><div class=""><br class=""></div><div class="">Further if no mails arrive at all visit your mail server admin and make sure the listening</div><div class="">server accepts your sending (spam settings).</div><div class=""><br class=""></div><div class="">So far, sorry for the lengthy email.</div><div class=""><br class=""></div><div class="">All the best to Brasilia,</div><div class=""><br class=""></div><div class="">Toni</div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div class=""><div style="word-wrap:break-word" class=""><div class=""><div class="">------------------------------<wbr class="">-----------------</div><div class="">CSGIS</div><div class=""><br class=""></div><div class="">------------------------------<wbr class="">-----------------</div><div class=""><div class=""><a href="https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g" class="">Kolonnadenstraße 1</a></div><div class=""><a href="https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g" class="">04109 Leipzig</a></div></div><div class="">------------------------------<wbr class="">-----------------</div><div class="">Mobil<span style="white-space:pre-wrap" class="">   </span>+49/ (0) 176 6680 3198</div><div class="">Tel <span style="white-space:pre-wrap" class="">            </span>+49/ (0) 341 24 04 738</div><div class="">Fax <span style="white-space:pre-wrap" class="">            </span>+49/ (0) 341 24 04 73</div><div class="">Web<span style="white-space:pre-wrap" class="">           </span><a href="http://csgis.de/" target="_blank" class="">http://csgis.de</a></div><div class="">------------------------------<wbr class="">-----------------</div><div class=""><br class=""></div><div class="">Hinweis gemäß § 33 BDSG</div><div class="">Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den </div><div class="">Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich </div><div class="">erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht </div><div class="">von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, </div><div class="">Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.</div></div></div></div></div></div></div></div>
</div>
<div class=""><br class=""></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>