[ckan-dev] FileStore - no deletion?

Ladislav Nesnera nesnera at email.cz
Tue Jan 30 14:50:05 UTC 2018


Hi and thanks all for advice.

    차우 - It works well for first try. If we find some issues we'll
report it
    Karen - we have 2.7 and issue persist as you see. Sorry ;)
    Karen & Cam - good point. We'll try

;?

On 28.1.2018 23:03, Cam Findlay wrote:
> Could be good to bundle clean ups for both filestore and datastore
> into this extension.
>
> As Karen mentions our generic version of the Swiss cleanup command is
> sitting
> at https://github.com/data-govt-nz/ckanext-dia/blob/master/ckanext/dia/commands.py
>
> Feel free to reuse.
>
> C.
>
>
> On 29 January 2018 at 08:57, Karen Turner <karen at catalyst.net.nz
> <mailto:karen at catalyst.net.nz>> wrote:
>
>     Hi
>
>     We the same behaviour when using datastore too.  I believe this is
>     fixed
>     in 2.7.
>     You may be able to use modify this command
>     https://github.com/opendata-swiss/ckanext-switzerland#command
>     <https://github.com/opendata-swiss/ckanext-switzerland#command> to
>     delete
>     unreferenced things from the file store. It is what we found and
>     used to
>     clear out the datastore.
>
>     Cheers
>     Karen
>
>     On 28/01/18 16:17, 차우 wrote:
>     > Hi,
>     >
>     > As far as I know, CKAN originally does not remove the uploaded files
>     > from local filesystem, even when the resource or dataset has been
>     > deleted. We developed this
>     > extension https://github.com/pheaktra21/fileremove
>     <https://github.com/pheaktra21/fileremove> to solve this problem. 
>     >
>     > Best regards,
>     >
>     > Chau.
>     >
>     >> On Jan 28, 2018, at 3:02 AM, Ladislav Nesnera <nesnera at email.cz
>     <mailto:nesnera at email.cz>
>     >> <mailto:nesnera at email.cz <mailto:nesnera at email.cz>>> wrote:
>     >>
>     >> Hi
>     >> I'm trying to move the CKAN with enabled FileStore to new
>     instance. On
>     >> this occasion, I noticed that uploaded files aren't deleted from
>     >> filesystem when a source or a dataset are deleted. Is it coused
>     by my
>     >> wrong FileStore settins or it's standard behavior?
>     >>
>     >> ;?
>     >>
>     >> <signature.asc>_______________________________________________
>     _______________________________________________
>     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
>     <https://lists.okfn.org/mailman/listinfo/ckan-dev>
>     Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>     <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/20180130/66741215/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20180130/66741215/attachment-0003.sig>


More information about the ckan-dev mailing list