[ckan-dev] Proxy server crashed and now static files fails

Ross Jones ross at servercode.co.uk
Tue Mar 25 14:28:45 UTC 2014


If ofs-hero is not working is probably missing requirements in the setup.py, any chance you could fix this Nigel? A ‘pip install ckanapi’ inside the virtualenv might fix it.

Release 2.2 is the latest and it now uses the ‘filestore’ - http://docs.ckan.org/en/latest/maintaining/filestore.html, there is a paster command to do the migration for you documented at http://docs.ckan.org/en/latest/maintaining/filestore.html#filestore-21-to-22-migration

The problem in the stack trace you posted was with

[Tue Mar 25 14:29:21 2014] [error] [client 127.0.0.1]   metadata = self.ofs.get_metadata(BUCKET, label)
[Tue Mar 25 14:29:21 2014] [error] [client 127.0.0.1] File '/usr/lib/ckan/default/lib/python2.7/site-packages/ofs/local/pairtreestore.py', line 128 in get_metadata

The last method mentioned is the one that tries to load the .json file to find out about the file’s state. It’s not thread(process)-safe and has caused problems before, if two processes try to upload files at the same time, it explodes.

Ross


On 25 Mar 2014, at 14:18, Henrik Aagaard Sørensen <BU1G at tmf.kk.dk> wrote:

> I’m going to try the ofs-hero, however, at first it fails due to missing ckanapi?
>  
> I’m running CKAN 2.1.1 which should be the latest stable version?
>  
> _______________________________________________
> 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/20140325/d9345a22/attachment-0003.html>


More information about the ckan-dev mailing list