<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="">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_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/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" class="">https://www.dropbox.com/s/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/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" class="">https://www.dropbox.com/s/v254zzg8jpq5fxg/prod.png?dl=0</a></div><div class=""><a href="https://www.dropbox.com/s/y0sfmke8naia9pv/prod2.png?dl=0" class="">https://www.dropbox.com/s/y0sfmke8naia9pv/prod2.png?dl=0</a></div><div class=""><a href="https://www.dropbox.com/s/1io3z7xeokun5xy/geoserver.png?dl=0" class="">https://www.dropbox.com/s/1io3z7xeokun5xy/geoserver.png?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.smtp.EmailBackend'<br class=""> EMAIL_HOST = '<a href="http://smtp.sipam.gov.br" 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" 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" class="">https://docs.djangoproject.com/en/2.0/topics/email/#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="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><br class=""></div></div></body></html>