<div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Toni,<div><br></div><div>Thanks for your response. I checked the URL, it corresponds to the Public URL and is only missing port 8080. </div><div>I also tried running python manage.py updatelayers, Following was the response that I got:</div><div><br></div><div><div>Inspecting the available layers in GeoServer ...</div><div>Found 1 layers, starting processing</div><div>Loading user configuration</div><div>running configuration <ConfigParser.SafeConfigParser instance at 0x7f60b4db8ef0></div><div>Setting language</div><div>Loading custom repository mappings from /home/ubuntu/Envs/geonode/src/geonode/geonode/catalogue/backends/pycsw_local_mappings.py</div><div>Loading outputschemas</div><div>Setting MaxRecordDefault</div><div>Querying repository with ids: 715d1bb2-0b72-11e9-99f5-0a80530f2042</div><div>Request processed</div><div>Writing response.</div><div>... Creating Thumbnail for Layer [geonode:Hospitals]</div><div>Error when generating the thumbnail for resource 1.</div><div>Check permissions for file thumbs/layer-715d1bb2-0b72-11e9-99f5-0a80530f2042-thumb.png.</div><div>Loading user configuration</div><div>running configuration <ConfigParser.SafeConfigParser instance at 0x7f60b3390320></div><div>Setting language</div><div>Loading custom repository mappings from /home/ubuntu/Envs/geonode/src/geonode/geonode/catalogue/backends/pycsw_local_mappings.py</div><div>Loading outputschemas</div><div>Setting MaxRecordDefault</div><div>Querying repository with ids: 715d1bb2-0b72-11e9-99f5-0a80530f2042</div><div>Request processed</div><div>Writing response.</div><div>[updated] Layer Hospitals (1/1)</div><div><br></div><div><br></div><div>Finished processing 1 layers in 10.0 seconds.</div><div><br></div><div>0 Created layers</div><div>1 Updated layers</div><div>0 Failed layers</div><div>10.000000 seconds per layer</div></div><div><br></div><div>But this didn't solve the issue and these image links are still not working. The site is live and you can check the layers on <a href="http://ec2-13-229-139-226.ap-southeast-1.compute.amazonaws.com/layers/?limit=20&offset=0">http://ec2-13-229-139-226.ap-southeast-1.compute.amazonaws.com/layers/?limit=20&offset=0</a>. Can you please check and let me know if you can find what could be the possible issue?</div><div><br>Best regards,<br>Syed Ramiz Sami</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 29, 2018 at 9:44 PM Toni Schönbuchner <<a href="mailto:toni.schoenbuchner@csgis.de">toni.schoenbuchner@csgis.de</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">Dear Ramiz,<br>
<br>
I don´t think this is caused by tomat port (8080). The thumb should be loaded<br>
from your static dir. See f.e. <br>
<br>
<a href="http://master.demo.geonode.org/uploaded/thumbs/layer-ee9c59ba-09e9-11e9-bb24-0242ac120008-thumb.png" rel="noreferrer" target="_blank">http://master.demo.geonode.org/uploaded/thumbs/layer-ee9c59ba-09e9-11e9-bb24-0242ac120008-thumb.png</a><br>
<br>
More likely the URL is not correct? Can you check if it corresponding with your public URL?<br>
<br>
Unfortuantely It´s not easy to say what settings is wrong without having a look.<br>
But two things you can try which should help:<br>
<br>
1) run python manage.py updatelayers <br>
This recreates your thumbs with correct URL (taken from settings or local_settings, clear Browser Cache!)<br>
<br>
2) Enable geonode updateip as shown here:<br>
<a href="https://lists.osgeo.org/pipermail/geonode-users/2018-November/005158.html" rel="noreferrer" target="_blank">https://lists.osgeo.org/pipermail/geonode-users/2018-November/005158.html</a><br>
This should fix your domain settings.<br>
<br>
Happy new !<br>
<br>
– Toni<br>
<br>
<br>
<br>
> <br>
>   1. Thumbnails and legend icons not being loaded and download<br>
>      link not working (Ramiz Sami)<br>
> <br>
> <br>
> ----------------------------------------------------------------------<br>
> <br>
> Message: 1<br>
> Date: Sat, 29 Dec 2018 21:29:53 +0500<br>
> From: Ramiz Sami <<a href="mailto:ramizsami95@gmail.com" target="_blank">ramizsami95@gmail.com</a>><br>
> To: <a href="mailto:geonode-devel@lists.osgeo.org" target="_blank">geonode-devel@lists.osgeo.org</a><br>
> Subject: [GeoNode-devel] Thumbnails and legend icons not being loaded<br>
>       and     download link not working<br>
> Message-ID:<br>
>       <CAApJ-gpQqWU8CJKB-8PmM21g4Y=<a href="mailto:zuQ1DVpepuRVznypsxR2Q_g@mail.gmail.com" target="_blank">zuQ1DVpepuRVznypsxR2Q_g@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> I have deployed Geonode on an AWS EC2 instance using<br>
> <a href="http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html#geonode-install" rel="noreferrer" target="_blank">http://docs.geonode.org/en/master/tutorials/install_and_admin/geonode_install/index.html#geonode-install</a><br>
> <#>. Everything so far is working fine but I am facing an issue.<br>
> The URL of legend icons are not working on the layer details page. Like you<br>
> can see in the image below:<br>
> [image: image.png]<br>
> Same is the case with thumbnail on layers listing page. The thumbnail is<br>
> not loading like in the image below:<br>
> [image: image.png]<br>
> The issue in both the cases is that it produces right URL but skips the<br>
> port (8080) for Geoserver due to which I end up getting error 404. I have<br>
> changed the GEOSERVER_PUBLIC_PORT variable in local_settings.py to 8080 and<br>
> have verified that the GEOSERVER_PUBLIC_LOCATION variable has correct value<br>
> but it still skips 8080 in that part.<br>
> <br>
> Similarly, I get the wrong URL (without port 8080) when I try to download<br>
> any dataset.<br>
> <br>
> Can anyone please tell me where I am going wrong? I couldn't find a clue in<br>
> the documentation.<br>
> <br>
> Best regards,<br>
> Syed Ramiz Sami<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181229/585a8d76/attachment.html" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181229/585a8d76/attachment.html</a>><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: image.png<br>
> Type: image/png<br>
> Size: 328265 bytes<br>
> Desc: not available<br>
> URL: <<a href="http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181229/585a8d76/attachment.png" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181229/585a8d76/attachment.png</a>><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: image.png<br>
> Type: image/png<br>
> Size: 145459 bytes<br>
> Desc: not available<br>
> URL: <<a href="http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181229/585a8d76/attachment-0001.png" rel="noreferrer" target="_blank">http://lists.osgeo.org/pipermail/geonode-devel/attachments/20181229/585a8d76/attachment-0001.png</a>><br>
<br>
</blockquote></div>