• ConnectionError: [Errno 110] / [Errno 10049] Connect call failed / rabbitmq - как решить проблему подключения?

    @TBlare Автор вопроса
    Сергей Горностаев, да, для AMQP подключения 5672, для AMQPS 5671. Вроде как подключился, но возникла еще такая ошибка. Не подскажете в чем дело? Как решить, если знаете? В любом случаи, признателен за помощь выше с подключением.
    Task exception was never retrieved
    future: <Task finished coro=<RabbitBot.start() done, defined at D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\xenon_worker\commands\bot.py:215> exception=<ChannelNotF
    oundEntity: The client attempted to work with a server entity that does not exist: "NOT_FOUND - no exchange 'events' in vhost 'hatab'">>
    Traceback (most recent call last):
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\base.py", line 25, in __inner
        return await self.task
    concurrent.futures._base.CancelledError
    
    The above exception was the direct cause of the following exception:
    
    Traceback (most recent call last):
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\xenon_worker\commands\bot.py", line 219, in start
        await super().start(token, shared_queue, *subscriptions)
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\xenon_worker\connection\rabbit.py", line 162, in start
        await self.channel.queue_bind(self.s_queue.queue, "events", sub)
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\channel.py", line 612, in queue_bind
        arguments=arguments,
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\base.py", line 168, in wrap
        return await self.create_task(func(self, *args, **kwargs))
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\base.py", line 27, in __inner
        raise self.exception from e
      File "D:\Programs\Python\Python37-32\lib\asyncio\tasks.py", line 630, in _wrap_awaitable
        return (yield from awaitable.__await__())
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\base.py", line 27, in __inner
        raise self.exception from e
    aiormq.exceptions.ChannelNotFoundEntity: NOT_FOUND - no exchange 'events' in vhost 'hatab'
  • ConnectionError: [Errno 110] / [Errno 10049] Connect call failed / rabbitmq - как решить проблему подключения?

    @TBlare Автор вопроса
    Сервис cloudamqp.com выдал адрес для подключения без порта, добавил в адрес на бум главный порт rabbitmq 5672, теперь такая ошибка:
    Traceback (most recent call last):
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\xenon_worker\connection\rabbit.py", line 151, in start
        self.connection = await aiormq.connect(self.url)
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\connection.py", line 530, in connect
        await connection.connect(client_properties or {})
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\base.py", line 168, in wrap
        return await self.create_task(func(self, *args, **kwargs))
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\base.py", line 25, in __inner
        return await self.task
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\connection.py", line 234, in connect
        raise ConnectionError(*e.args) from e
    ConnectionError: [WinError 10054] Удаленный хост принудительно разорвал существующее подключение
    
    Traceback (most recent call last):
      File "D:\Discord\Selfhost\xenon-main-premium\virtualenv\lib\site-packages\aiormq\connection.py", line 231, in connect
        self.url.host, self.url.port, ssl=ssl_context
      File "D:\Programs\Python\Python37-32\lib\asyncio\streams.py", line 77, in open_connection
        lambda: protocol, host, port, **kwds)
      File "D:\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 989, in create_connection
        ssl_handshake_timeout=ssl_handshake_timeout)
      File "D:\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 1017, in _create_connection_transport
        await waiter
      File "D:\Programs\Python\Python37-32\lib\asyncio\selector_events.py", line 814, in _read_ready__data_received
        data = self._sock.recv(self.max_size)
    ConnectionResetError: [WinError 10054] Удаленный хост принудительно разорвал существующее подключение