[ckan-dev] clean the database

Nigel Babu nigel.babu at okfn.org
Thu Mar 6 06:02:07 UTC 2014


Hi Pabitra,

Can you run the command from the ckan source directory? i.e. cd to
`/usr/lib/ckan/default/src/ckan` and run paster db clean -c
/etc/ckan/default/production.ini.

Nigel Babu

Developer  |  @nigelbabu <https://twitter.com/nigelbabu>

The Open Knowledge Foundation <http://okfn.org/>

Empowering through Open Knowledge

http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on
Facebook<https://www.facebook.com/OKFNetwork> |
Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>

 CKAN | http://ckan.org/ | @CKANproject
<http://twitter.com/CKANproject> |the world’s leading open-source data
portal platform


On 5 March 2014 09:38, Pabitra Dash <pkdash_reena at hotmail.com> wrote:

> Thanks Nigel. I am just following the documentation to run the command
> without the knowledge of how exactly it works. I am not sure what you mean
> by 'checking the right database'. I know apache is using the production.ini
> config file. What else I should be checking? When I run the 'db clean'
> command I don't see any output at the terminal.
>
> Pabitra
>
>
>
> ------------------------------
> From: nigel.babu at okfn.org
> Date: Wed, 5 Mar 2014 09:28:58 +0530
> To: ckan-dev at lists.okfn.org
> Subject: Re: [ckan-dev] clean the database
>
>
> Hi Pabitra,
>
> That *should* work. I've recently used it successfully. Are you checking
> the right database / using the right config file?
>
> Nigel Babu
>
> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>
> The Open Knowledge Foundation <http://okfn.org/>
>
> Empowering through Open Knowledge
>
> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on Facebook<https://www.facebook.com/OKFNetwork> |
> Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>
>
>  CKAN | http://ckan.org/ | @CKANproject <http://twitter.com/CKANproject> |the world’s leading open-source data portal platform
>
>
> On 5 March 2014 00:41, Pabitra Dash <pkdash_reena at hotmail.com> wrote:
>
> Hi All,
>
> I am using the following command (from my virtualenv) to clean the ckan
> database. However, it does not delete contents from the database.
>
>  paster --plugin=ckan db clean  --config=/etc/ckan/default/production.ini
>
> *Pabitra*
>
>
> _______________________________________________
> 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-devUnsubscribe:
> 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/20140306/4fe1c112/attachment-0003.html>


More information about the ckan-dev mailing list