Page MenuHomeSoftware Heritage
Paste P309

OriginHead click error
ActivePublic

Authored by moranegg on Oct 5 2018, 2:51 PM.
Traceback (most recent call last):
File "origin_head.py", line 121, in <module>
main()
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "origin_head.py", line 115, in main
rev_metadata_indexer = OriginHeadIndexer()
File "/home/morane/Documents/code/swh-environment/swh-indexer/swh/indexer/indexer.py", line 187, in __init__
self.prepare()
File "/home/morane/Documents/code/swh-environment/swh-indexer/swh/indexer/indexer.py", line 212, in prepare
self.tools = list(self.register_tools(self.config['tools']))
File "/home/morane/Documents/code/swh-environment/swh-indexer/swh/indexer/indexer.py", line 256, in register_tools
return self.idx_storage.indexer_configuration_add(tools)
File "/home/morane/Documents/code/swh-environment/swh-indexer/swh/indexer/storage/api/client.py", line 98, in indexer_configuration_add
return self.post('indexer_configuration/add', {'tools': tools})
File "/home/morane/Documents/code/swh-environment/swh-core/swh/core/api.py", line 66, in post
headers={'content-type': 'application/x-msgpack'})
File "/home/morane/Documents/code/swh-environment/swh-core/swh/core/api.py", line 48, in raw_post
raise self.api_exception(e)
swh.storage.exc.StorageAPIError: An unexpected error occurred in the api backend: HTTPConnectionPool(host='localhost', port=5007): Max retries exceeded with url: /indexer_configuration/add (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0efd2122b0>: Failed to establish a new connection: [Errno 111] Connection refused',))

Event Timeline

thanks to @vlorentz, this command solves the error:

python3 -m swh.indexer.storage.api.server

moranegg changed the title of this paste from OriginHead error to OriginHead click error.Oct 5 2018, 2:59 PM