Skip to content
/ ofs-hero Public

Rescue corrupted persisted_state.json in ofs-based filestore

Notifications You must be signed in to change notification settings

ckan/ofs-hero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofs-hero

Rescues broken filestores because ofs is not thread-safe. This script generates the minimal JSON that's required for the filestore to work. Pull requests welcome to make it more closer to the original JSON.

Instructions

After activating your virtualenv, cd to the src directory, install the sources via pip::

$ (default) pip install -e git+git://github.com/ckan/ofs-hero.git#egg=ofs_hero

Usage

Switch to the ofs-hero directory and run the paster command with the path to the config file::

$ (default) paster regenerate -c /etc/ckan/default/production.ini

This will print the JSON value. Pipe it to a file and replace the persisted_state.json file in the flestore::

$ (default) paster regenerate -c /etc/ckan/default/production.ini > persisted_state.json

It is recommended that you shutdown the webserver before replacing the file.

About

Rescue corrupted persisted_state.json in ofs-based filestore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages