[ckan-dev] Change uploaded resource url

vikesh rambaran vikesh.rambaran at gmail.com
Fri Aug 31 13:37:28 UTC 2018


Hi,

Great stuff! That worked perfectly :)

In our case, the url fields in *all* the ckan_default database revision
tables were also updated before rebuilding the solr search index.
This may not be necessary.



On Fri, Aug 31, 2018 at 2:28 PM Alex Gartner <
alexandru.gartner+ckan at gmail.com> wrote:

> Hi,
> after changing the values in the database you probably need to reindex the
> data in solr.
> Something like this should help:
>
> paster --plugin=ckan search-index rebuild --config=/etc/ckan/prod.ini
>
> On Fri, Aug 31, 2018 at 3:02 PM vikesh rambaran <vikesh.rambaran at gmail.com>
> wrote:
>
>> Hi
>>
>> We have uploaded multiple resources into different datasets to a CKAN
>> server.
>>
>> The CKAN server needs to be moved to a different server.
>> The site_url therefore changes.
>> Unfortunately the CKAN resources are now not accessible via the URL link.
>>
>> How can we change the CKAN resource urls to be accessible again ?
>>
>> [The resource.url and package.url fields in the postgres ckan_default
>> database was changed manually but this did not help. The CKAN web interface
>> still shows the previous url for the resources]
>>
>> Thank you for your help
>> Vicki
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180831/1173fc58/attachment-0002.html>


More information about the ckan-dev mailing list