[ckan-dev] "search-index rebuild" renders broken dataset links

Stephan Schrade schrade at online2000.de
Mon Oct 27 11:10:43 UTC 2014


Unfortunately I can't confirm that setting the url in the ini-file 
solves the problem.
Although the link ist now different:

was:
http://<domain>/dataset/:///dataset/199e3924-c0af-4099-9d5f-c5a184aff82f/resource/de3790d9-3d65-4264-8c8e-9aa62950f1f5/download/wahlen.xls

is now:
http://<domain>/dataset/://<domain>/dataset/199e3924-c0af-4099-9d5f-c5a184aff82f/resource/de3790d9-3d65-4264-8c8e-9aa62950f1f5/download/wahlen.xls

it is still not correct.

What else can I do?

TIA Stephan

Am 24.10.2014 21:16, schrieb Rene Pietzsch:
> Hi all,
>
> @Adrià: thanks for the hint concerning site_url. The parameter is empty
> in the default ckan.ini in the docker image, which in turn renders wrong
> resource URIs after index rebuild. This seams not to be the case if
> site_url is set correctly.
>
> So no bug, just misconfiguration … and maybe worth to mention
> in http://docs.ckan.org/en/latest/maintaining/installing/install-using-docker.html
>
> Thanks, René
>
> Am Mittwoch, 22. Oktober 2014 um 14:03 schrieb Rene Pietzsch:
>
>> Hi Adrià,
>>
>> I did not modified that parameter in the ini file but used it as
>> generated by /sbin/my_init inside the docker container.
>>
>> Regards,
>> René
>>
>> Am Mittwoch, 22. Oktober 2014 um 11:39 schrieb Adrià Mercader:
>>
>>> Hi guys,
>>>
>>> This looks indeed as an issue. Can I quickly confirm if you have the
>>> site_url setting set up on your ini config file?
>>>
>>> Thanks,
>>>
>>> Adrià
>>>
>>> On 22 October 2014 09:11, Stephan Schrade <schrade at online2000.de
>>> <mailto:schrade at online2000.de>> wrote:
>>>> Hi René,
>>>> this is the same error I have described in
>>>> "[ckan-dev] URL for downloadable ressource is wrong"
>>>> and I still have no solution for this :(
>>>> The suggestion was that our solr configuration is wrong, but as I
>>>> found out
>>>> you can't make an index rebuild if your solr configuration is wrong.
>>>> (I made an installation by source on RHEL)
>>>>
>>>> But your installation comes right out of docker so there everything
>>>> should
>>>> be ok in the first place.
>>>>
>>>> So I think this is an issue and not a problem of misconfiguration.
>>>>
>>>> CU Stephan
>>>>
>>>> Am 21.10.2014 18:52, schrieb Rene Pietzsch:
>>>>>
>>>>> Hello all,
>>>>>
>>>>> I played with the paster search-index commands and observed this:
>>>>>
>>>>> * I added a dataset and the resource link (e.g.
>>>>>
>>>>> http://192.168.50.11/dataset/bb333113-bcec-40c7-b146-c06f285b71dd/resource/2125d749-9a34-4b46-878b-e49d70b77122/download/Protokoll20140718.txt
>>>>> ) works fine, providing the resource to download/display.
>>>>> * then I did
>>>>> o paster --plugin=ckan search-index clear -o
>>>>> --config=/etc/ckan/default/ckan.ini
>>>>> o paster --plugin=ckan search-index rebuild
>>>>> --config=/etc/ckan/default/ckan.ini
>>>>> * now the same resource link is rendered as (e.g.
>>>>>
>>>>> http://192.168.50.11/dataset/my-2nd-dataset/resource/:///dataset/bb333113-bcec-40c7-b146-c06f285b71dd/resource/2125d749-9a34-4b46-878b-e49d70b77122/download/Protokoll20140718.txt
>>>>> ) which returns a 404.
>>>>>
>>>>> First URI still reveals the original resource, of course.
>>>>>
>>>>> I am running the latest dockerized version (ckan/ckan + ckan/postgres +
>>>>> ckan/solr) available from hub.docker.com <http://hub.docker.com>.
>>>>>
>>>>> Can this be due to any misconfiguration or can you confirm this an
>>>>> issue?
>>>>>
>>>>> Many thanks in advance.
>>>>>
>>>>> Regards, René
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ckan-dev mailing list
>>>>> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
>>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>



More information about the ckan-dev mailing list