[ckan-dev] Premature end of script headers when using ckanext-spatial

Adrià Mercader adria.mercader at okfn.org
Fri Oct 11 16:48:16 UTC 2013


Hi Vitor,

I've never use the spatial extension on RHEL so not sure what might be
wrong. Have you tried running a command on paster (not via Apache)?

Something like this on your virtualenv for instance:

(pyenv) $ paster --plugin=ckanext-spatial spatial initdb
--config=/etc/ckan/default.ini

Perhaps that gives us more clues

Adrià

On 11 October 2013 00:09, Vitor Baptista <vitor at vitorbaptista.com> wrote:
> Hi all,
>
> I'm trying to install ckanext-spatial on a RHEL6, but I'm getting some
> strange errors.
>
> I was able to configure PostGIS and it seems to be working fine on the DB
> server. I've also installed ckanext-spatial and all of its dependencies on
> the app server just fine, but whenever I add spatial_metadata or
> spatial_query to the plugins list, I get:
>
>> ==> /var/log/httpd/ckan_default.error.log <==
>> [Fri Oct 11 00:00:02 2013] [error]
>> /usr/lib/python2.6/site-packages/tw/core/view.py:223: DeprecationWarning:
>> object.__new__() takes no parameters
>> [Fri Oct 11 00:00:02 2013] [error]   obj = object.__new__(cls, *args,
>> **kw)
>> [Fri Oct 11 00:00:03 2013] [error] [client 187.114.201.223] Premature end
>> of script headers: apache.wsgi
>
>
>> ==> /var/log/httpd/error_log <==
>> [Fri Oct 11 00:00:04 2013] [notice] child pid 4135 exit signal
>> Segmentation fault (11)
>
>
> Googling around, it seems that it happens when somehow Apache is running one
> version of a library, and your Python code is running another. I tried
> looking for possible culprits, but couldn't find any. The closest I thought
> was geos that, as I installed this version:
>
>> geos.x86_64                        3.3.2-1.el6             @epel
>
>
> Running just geojson_preview works fine.
>
> Any ideas?
>
> Cheers,
>
> --
>
> Vítor Baptista
>
> Developer  |  http://vitorbaptista.com | LinkedIn | @vitorbaptista
>
> The Open Knowledge Foundation
>
> Empowering through Open Knowledge
>
> http://okfn.org/  |  @okfn  |  OKF on Facebook  |  Blog  |  Newsletter
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list