[ckan-discuss] [datastore_upload] Failed to transfer raw file

Yanting Chen mx.alexender at gmail.com
Mon Jan 13 03:59:29 UTC 2014


Hi All

I installed datastore plugin and used the command below to transfer a csv
file into datastore.
*paster datastore_upload convenience-stores -i convenience-stores --no-hash
-c /etc/ckan/default/production.ini*

However, I got the error messages.
2014-01-13 11:55:17,096 WARNI [ckanext.datastore.plugin] Legacy mode
active. The sql search will not be available.
2014-01-13 11:55:22,202 ERROR [root] Connection error:
HTTPConnectionPool(host='nn1.lab', port=80): Max retries exceeded with url:
/storage/f/2014-01-13T01%3A31%3A20.245Z/store.csv (Caused by <class
'socket.gaierror'>: [Errno -2] Name or service not known)
Traceback (most recent call last):
  File
"/usr/lib/ckan/default/src/ckanext-datastorer/ckanext/datastorer/commands.py",
line 263, in push_to_datastore
    check_modified=check_hash)
  File
"/usr/lib/ckan/default/src/ckanext-datastorer/ckanext/datastorer/fetch_resource.py",
line 85, in download
    headers = json.loads(link_checker(link_context, link_data))
  File
"/usr/lib/ckan/default/src/ckanext-datastorer/ckanext/datastorer/fetch_resource.py",
line 277, in link_checker
    raise LinkHeadRequestError('Connection error: %s' % e)
LinkHeadRequestError: Connection error: HTTPConnectionPool(host='nn1.lab',
port=80): Max retries exceeded with url:
/storage/f/2014-01-13T01%3A31%3A20.245Z/store.csv (Caused by <class
'socket.gaierror'>: [Errno -2] Name or service not known)
[{'resource': u'c63f8259-16ab-4210-b750-6707258962bf', 'success': False,
'error': 'Could not download resource'}]

Since I found no information about this error, does anyone know what
happened and how to solve it?

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/pipermail/ckan-discuss/attachments/20140113/ec60525b/attachment.html>


More information about the ckan-discuss mailing list