Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate file via the known mount points #1

Open
ghost opened this issue Feb 18, 2022 · 0 comments
Open

Unable to locate file via the known mount points #1

ghost opened this issue Feb 18, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 18, 2022

Hello and thank you for having come up with this extension which provides the functionality I was looking for.

I have created a directory /root/linked-storage where I put my files. I also set up the configuration like this:

ckanext.linked_storage.mountpoints = /root/linked-storage/

For the resource creation, I am using the API like this:

curl -X POST -H "Authorization: XXXX" http://ckan-host.com/api/3/action/resource_create --form package_id=package --form name=big_file --form url_type=link-storage --form link_path=/root/linked-storage/big-file

but I get the following error:

{"help": "http://ckan-host.com/api/3/action/help_show?name=resource_create", "error": {"message": "Unable to locate file via the known mount points", "__type": "Validation Error"}, "success": false}

Have I missed something in the set up? Do I need to use the ckanext.linked_storage.net_paths config as well?

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants