[ckan-dev] Error using ckanext-dcat: Connection refused

Ross Jones ross at servercode.co.uk
Tue Nov 11 08:34:15 UTC 2014


Hi,

It looks like harvesting is set up to use RabbitMQ, but it failed to connect.  It's worth checking that RabbitMQ is running and you're setup as per the ckanext-harvest readme ... https://github.com/ckan/ckanext-harvest

Ross 



> On 11 Nov 2014, at 01:01, dporto <dporto at gmail.com> wrote:
> 
> I'm trying to use ckanext-dcat.
> 
> But I cannot get work fine :(
> 
> Below is the error log.
> 
> Thanks in advance for any tip or help
> 
> David
> 
> ###
> 
> 2014-11-11 01:54:20,390 DEBUG [ckanext.harvest.model] Harvest tables defined in memory
> 2014-11-11 01:54:20,400 DEBUG [ckanext.harvest.model] Harvest tables already exist
> 
> 2014-11-11 01:54:20,568 INFO  [ckanext.harvest.logic.action.update] Harvest job run: {}
> 2014-11-11 01:54:20,649 DEBUG [ckanext.harvest.queue] pika connection using {'retry_delay': 2.0, 'frame_max': 10000, 'channel_max': 0, 'locale': 'en_US', 'socket_timeout': 0.25, 'ssl': False, 'host': 'localhost', 'ssl_options': {}, 'virtual_host': '/', 'heartbeat': 0, 'credentials': <pika.credentials.PlainCredentials object at 0xac8d5ec>, 'backpressure_detection': False, 'port': 5672, 'connection_attempts': 1}
> 2014-11-11 01:54:20,650 ERROR [pika.adapters.base_connection] socket error: Connection refused
> 2014-11-11 01:54:20,653 WARNI [pika.adapters.base_connection] Could not connect due to "Connection refused," retrying in 2 sec
> 2014-11-11 01:54:20,653 ERROR [pika.adapters.base_connection] Could not connect: Connection refused
> Traceback (most recent call last):
>   File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
>     load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
>     invoke(command, command_name, options, args[1:])
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
>     exit_code = runner.run(args)
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
>     result = self.command()
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line 122, in command
>     self.run_harvester()
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line 287, in run_harvester
>     jobs = get_action('harvest_jobs_run')(context,{})
>   File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 329, in wrapped
>     return _action(context, data_dict, **kw)
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/logic/action/update.py", line 341, in harvest_jobs_run
>     publisher = get_gather_publisher()
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/queue.py", line 347, in get_gather_publisher
>     return get_publisher('harvest_job_id')
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/queue.py", line 135, in get_publisher
>     connection = get_connection()
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/queue.py", line 36, in get_connection
>     return get_connection_amqp()
>   File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/queue.py", line 59, in get_connection_amqp
>     return pika.BlockingConnection(parameters)
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pika/adapters/base_connection.py", line 61, in __init__
>     super(BaseConnection, self).__init__(parameters, on_open_callback)
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pika/connection.py", line 513, in __init__
>     self._connect()
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pika/connection.py", line 804, in _connect
>     self._adapter_connect()
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pika/adapters/blocking_connection.py", line 138, in _adapter_connect
>     super(BlockingConnection, self)._adapter_connect()
>   File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pika/adapters/base_connection.py", line 120, in _adapter_connect
>     self.params.retry_delay)
> pika.exceptions.AMQPConnectionError: 2.0
> 
> _______________________________________________
> 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



More information about the ckan-dev mailing list