[GeoNode-users] Error 500 when trying to create thumbnail

Melvin David Ramos Macías melvin.ramos1991 at gmail.com
Tue Mar 7 09:34:40 PST 2017


Hello

The OGC_SERVER settings seems to be correct, besides, if they were wrong, I
don't think I would be able to upload a map.

Any other ideas?

Thanks in advance.

2017-03-06 2:27 GMT-04:00 Simone Dalmasso <simone.dalmasso at gmail.com>:

> Hi,
>
> seems to be an error with the connection to geoserver to get the
> thumbnail, could be either a wrong geoserver address or invalid parameters
> sent (likely the first). The geoserver address is composed by
> settings.SITEURL and OGC_SERVER LOCATION, and the authentication is done
> through OGC_SERVER username and password.
> Double-check if those parameters are correct for your site.
>
> 2017-03-06 0:33 GMT+01:00 Melvin David Ramos Macías <
> melvin.ramos1991 at gmail.com>:
>
>> Hello Jonathan,
>>
>> Yes, I have. Tomcat doesn't show anything useful. Apache's log shows this:
>>
>>
>> [Sun Mar 05 14:19:01.587070 2017] [:error] [pid 11987] WARNING:
>> @font-face support needs Pango >= 1.38
>> [Sun Mar 05 14:20:50.193233 2017] [:error] [pid 11987] Internal Server
>> Error: /maps/6/thumbnail
>> [Sun Mar 05 14:20:50.193274 2017] [:error] [pid 11987] Traceback (most
>> recent call last):
>> [Sun Mar 05 14:20:50.193278 2017] [:error] [pid 11987]   File
>> "/var/www/envs/gis/lib/python2.7/site-packages/django/core/handlers/base.py",
>> line 130, in get_response
>> [Sun Mar 05 14:20:50.193281 2017] [:error] [pid 11987]     raise
>> ValueError("The view %s.%s didn't return an HttpResponse object." %
>> (callback.__module__, view_name))
>> [Sun Mar 05 14:20:50.193294 2017] [:error] [pid 11987] ValueError: The
>> view geonode.maps.views.map_thumbnail didn't return an HttpResponse
>> object.
>>
>>
>> I have added what you suggested but no change. I already had the uploaded
>> folder and subdirectories with this in the apache conf:
>>
>>     <Directory <path to project>/geonode/uploaded>
>>         Order deny,allow
>> Options Indexes FollowSymLinks
>> AllowOverride None
>>         Require all granted
>>     </Directory>
>>
>>
>>
>>
>>
>>   <https://mailtrack.io/> Enviado con Mailtrack
>> <https://mailtrack.io/install?source=signature&lang=es&referral=melvin.ramos1991@gmail.com&idSignature=23>
>>
>> 2017-03-05 18:45 GMT-04:00 Jonathan Doig <j.doig at unsw.edu.au>:
>>
>>> HI Melvin
>>>
>>>
>>>
>>> Have you checked the tomcat and web server (apache, nginx) logs for
>>> clues?
>>>
>>>
>>>
>>> Possibly related to permissions on the uploaded/thumbs directory:
>>>
>>>
>>>
>>>           sudo chmod *-*Rf 777 */*home*/*geonode*/*geonode*/*geonode*/*uploaded*/*thumbs
>>>
>>>
>>>
>>> Also you web server needs to be told to serve the thumbs directory. For
>>> Apache you need this block in the geonode.conf file:
>>>
>>>
>>>
>>>     *<*Directory "/home/geonode/geonode/geonode/uploaded/thumbs/"*>*
>>>
>>>         Order allow,deny
>>>
>>>         Options Indexes FollowSymLinks
>>>
>>>         Allow *from* all
>>>
>>>         Require all granted
>>>
>>>         IndexOptions FancyIndexing
>>>
>>>     *</*Directory*>*
>>>
>>>
>>>
>>> See http://docs.geonode.org/en/master/tutorials/install_and_admi
>>> n/geonode_install/setup_configure_httpd.html#apache-configuration
>>>
>>>
>>>
>>> Regards
>>>
>>> Jonathan Doig
>>>
>>>
>>>
>>> *From:* geonode-users [mailto:geonode-users-bounces at lists.osgeo.org] *On
>>> Behalf Of *Melvin David Ramos Macías
>>> *Sent:* Monday, 6 March 2017 8:10 AM
>>> *To:* geonode-users at lists.osgeo.org
>>> *Subject:* [GeoNode-users] Error 500 when trying to create thumbnail
>>>
>>>
>>>
>>> Hello GeoNode community,
>>>
>>>
>>>
>>> I have installed a GeoNode custom project in a production server and it
>>> works just fine. Now I'm trying to replicate the same project in another
>>> server and it works fine except for the thumbnail creation, which throws me
>>> an error 500 (INTERNAL SERVER ERROR).
>>>
>>>
>>>
>>> What could be the reason for this?
>>>
>>>
>>>
>>> I already checked the URLs in the settings.py and placed a base url in
>>> the web.xml file. There was no geonodeAuthProvider in the tomcat geoserver.
>>>
>>>
>>>
>>> Thanks in advance,
>>>
>>>
>>>
>>> MR
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>>
>>> *Melvin David Ramos Macías*
>>>
>>> about.me/melvinramos
>>>
>>>
>>>
>>>   <https://mailtrack.io/>Enviado con Mailtrack
>>> <https://mailtrack.io/install?source=signature&lang=es&referral=melvin.ramos1991@gmail.com&idSignature=23>
>>>
>>
>>
>>
>> --
>>
>>
>> [image: --]
>>
>> Melvin David Ramos Macías
>> [image: https://]about.me/melvinramos
>>
>> <https://about.me/melvinramos?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> Simone
>



-- 


[image: --]

Melvin David Ramos Macías
[image: https://]about.me/melvinramos
<https://about.me/melvinramos?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170307/337d2108/attachment-0001.html>


More information about the geonode-users mailing list