<div dir="ltr"><div>Dear users,</div><div><br></div><div>I am running GeoNode@2.8.0 in Ubuntu VM 16.04 LTS. I am have GeoNode installed according to [1].</div><div><br></div><div>I checked several times [2] and mainly [3] to change localhost to a specific IP .</div><div><br></div><div>I have the IP in ALLOWED_HOST and PROXY_ALLOWED_HOST, SITEURL = '<a href="http://IP">http://IP</a>', <br></div><div><br></div><div>GEOSERVER_LOCATION = os.getenv(<br> 'GEOSERVER_LOCATION', '{}/geoserver/'.format(SITEURL)<br># 'GEOSERVER_LOCATION', '<a href="http://168.22.15.00/geoserver/">http://168.22.15.00/geoserver/</a>'<br>)<br><br>GEOSERVER_PUBLIC_LOCATION = os.getenv(<br> 'GEOSERVER_PUBLIC_LOCATION', '{}/geoserver/'.format(SITEURL)<br># 'GEOSERVER_PUBLIC_LOCATION', '<a href="http://168.22.15.00/geoserver/">http://168.22.15.00/geoserver/</a>'<br>)<br><br></div><div><br></div><div>All layers being uploaded are displaying blank tiles, because the are making reference to</div><div><a href="http://localhost:8080/geoserver/ows?access_token">http://localhost:8080/geoserver/ows?access_token</a>. <br></div><div><br></div><div>I checked [3] and the configuration is compliant to:</div><div> <accessTokenUri><a href="http://168.22.15.00/o/token/">http://168.22.15.00/o/token/</a></accessTokenUri><br><br> <!-- GeoNode userAuthorizationUri --><br> <userAuthorizationUri><a href="http://168.22.15.00/o/authorize/">http://168.22.15.00/o/authorize/</a></userAuthorizationUri><br><br> <!-- GeoServer Public URL --><br> <redirectUri><a href="http://168.22.15.00/geoserver/">http://168.22.15.00/geoserver/</a></redirectUri><br><br> <!-- GeoNode checkTokenEndpointUrl --><br> <checkTokenEndpointUrl><a href="http://168.22.15.00/api/o/v4/tokeninfo/">http://168.22.15.00/api/o/v4/tokeninfo/</a></checkTokenEndpointUrl><br><br> <!-- GeoNode logoutUri --><br> <logoutUri><a href="http://168.22.15.00/account/logout/">http://168.22.15.00/account/logout/</a></logoutUri></div><div><br></div><div><br></div><div>The problem is related to host localhost in the request <a href="http://localhost:8080/geoserver/ows">http://localhost:8080/geoserver/ows</a>. I realized that when I copy the variables GEOSERVER_LOCATION, GEOSERVER_PUBLIC_LOCATION, OGC_SERVER_DEFAULT_USER, OGC_SERVER_DEFAULT_PASSWORD, and OGC_SERVER, from local_settings.py to settings.py the problem is solved. <localhost> is changed to <168.22.15.00> and fine.</div><div><br></div><div>I realized that there is an issue with the local_settings.py. It seems that the variables in local_settings.py have not been retrieved. Besides that, if I change wsgi.py to os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.local_settings"), apache2 won't start, the error.log tells that the problem is related to local_settings.py variables. My attempt was to comment the variable being indicated by the error.log, but it keeps indicating the issue with another variable and goes on and on.</div><div><br></div><div>My conclusions: <br></div><div><br></div><div>1 - The blank tiles issue can be solved by copying GEOSERVER_LOCATION, GEOSERVER_PUBLIC_LOCATION, OGC_SERVER_DEFAULT_USER,
OGC_SERVER_DEFAULT_PASSWORD, and OGC_SERVER, from local_settings.py to
settings.py, but doing that it opens another issue, the upload layer process gets broken.</div><div><br></div><div></div><div>2 - Because copying some variables from local_settings.py to settings.py partially solves a problem and also because changing wsgi.py to "<a href="http://my_geonode.local_settings.py">my_geonode.local_settings.py</a>" apache won't start, tells me that there is something wrong with local_settings.py file.</div><div><br></div><div>Could someone give me a hint or point me something to check what is going on?</div><div><br></div><div><br></div><div>Thank you very much for your time</div><div><br></div><div>Kind regards</div><div><br></div><div>Julierme<br></div><div><br></div><div><br></div><div><br></div><div> <br></div><div><br></div><div><br></div><div><br></div><div> <br></div><div><br></div><div><br></div><div> <br></div><div><br></div><div>[1] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html</a></div><div>[2] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/setup_configure_httpd.html</a></div><div>[3] <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/install_geoserver_application.html</a><br></div></div>