On the step:
docker-compose exec indexer python -m sir amqp_setup
2020-04-15 18:54:01,619: Connecting to RabbitMQ
Traceback (most recent call last):
File “/usr/local/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/local/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/code/sir/main.py”, line 127, in
main()
File “/code/sir/main.py”, line 123, in main
func(args)
File “sir/amqp/setup.py”, line 22, in setup_rabbitmq
conn = util.create_amqp_connection()
File “sir/util.py”, line 138, in create_amqp_connection
virtual_host=cget(“vhost”),
File “/usr/local/lib/python2.7/site-packages/amqp/connection.py”, line 180, in init
(10, 30), # tune
File “/usr/local/lib/python2.7/site-packages/amqp/abstract_channel.py”, line 67, in wait
self.channel_id, allowed_methods, timeout)
File “/usr/local/lib/python2.7/site-packages/amqp/connection.py”, line 241, in _wait_method
channel, method_sig, args, content = read_timeout(timeout)
File “/usr/local/lib/python2.7/site-packages/amqp/connection.py”, line 330, in read_timeout
return self.method_reader.read_method()
File “/usr/local/lib/python2.7/site-packages/amqp/method_framing.py”, line 189, in read_method
raise m
socket.error: [Errno 104] Connection reset by peer
Seems rabbitmq is not running. Already tried to run it manually but got this error anyway.
How do you test these ports? They are not published to the host by default. They should be accessible from other services of this compose project only.
Try to refresh the image and the container for the service mq:
Hi @yvanzo, I thought ports would be open for the host.
The refresh of the image you suggested didn’t work.
I switched from docker engine I was running from 19.03.8 to 18.09.9 and was finally able to successfully run
docker-compose exec indexer python -m sir amqp_setup
So it seems it was a problem with new docker version.
Thanks!