Rabbitmq Backup Failed - TimedOut

70 views
Skip to first unread message

Satheesh Kumar

unread,
Sep 5, 2022, 11:21:10 AM9/5/22
to rabbitmq-users
I  have nearly 55273 exchanges 22916 queues and lot of bindings, users , i am trying to export definitions using HTTP API (/api/definitions)  but getting timedout after 1 minute.

Is there any way to fix this.


Thanks,
Satheesh

Satheesh Kumar

unread,
Sep 5, 2022, 11:24:59 AM9/5/22
to rabbitmq-users
rabbitmqctl export definitions is working fine but i need that HTTP API to fixed , since i am using different location from rabbitmq server

Michal Kuratczyk

unread,
Sep 5, 2022, 11:32:22 AM9/5/22
to rabbitm...@googlegroups.com
Hi,

Is this a client-side or server-side timeout? I'm not sure if we have a timeout like that (maybe we do), but quite likely it's your client app that gives up on waiting for a response.

Check your client-side settings and check RabbitMQ logs if there is any timeout info, or just "client disconnected" info (what I'd expect if it's a client-side timeout).

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/418008fd-96f2-407a-8b67-9642e42be429n%40googlegroups.com.


--
Michał
RabbitMQ team

Satheesh Kumar

unread,
Sep 5, 2022, 11:34:32 AM9/5/22
to rabbitmq-users

when i try to use individual api call to users, exchange, bindings, topic-permissions,queues,policies. It is working fine
but i want in a single api call so i did in api/definitions where i am getting timeout

I am running rabbitmq in one kubernetes pod, and using api/definitions get call from another pod also enabled the following options

```
# Configures HTTP (non-encrypted) listener timeouts management.tcp.idle_timeout = 120000 management.tcp.inactivity_timeout = 120000 management.tcp.request_timeout = 10000
```

Satheesh Kumar

unread,
Sep 5, 2022, 11:52:46 AM9/5/22
to rabbitm...@googlegroups.com
> GET /api/definitions HTTP/1.1
> Host: localhost:15672
> User-Agent: curl/7.76.1
> Accept: */*
>
  0     0    0     0    0     0      0      0 --:--:--  0:01:00 --:--:--     0* Empty reply from server
  0     0    0     0    0     0      0      0 --:--:--  0:01:00 --:--:--     0
* Closing connection 1
} [5 bytes data]
* TLSv1.2 (OUT), TLS alert, close notify (256):
} [2 bytes data]
curl: (52) Empty reply from server
/ $
Thanks and Regards
Satheesh Kumar SS


You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/2dibT7etGC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/CAA81d0tJv28U2bJ4J18hBcgY0s4HhT%2BCpb7tWjYUu2P%2BW8vVPQ%40mail.gmail.com.

Michal Kuratczyk

unread,
Sep 5, 2022, 12:06:30 PM9/5/22
to rabbitm...@googlegroups.com
This doesn't look like a timeout at all. Sounds more like you did `curl http://` and RabbitMQ expects HTTPS.




--
Michał
RabbitMQ team

Satheesh Kumar

unread,
Sep 5, 2022, 12:27:34 PM9/5/22
to rabbitmq-users
I am using ```curl -k -u  username:password https://localhost:9450/api/definitions > /tmp/definitions-test_05.json''

Vinod Vinu

unread,
Sep 6, 2022, 5:42:34 AM9/6/22
to rabbitm...@googlegroups.com
Hi guys 


I am receiving many emails from "rabbitmq-user@googlegroup .com" which do not relevant to me kindly remove my Email ID -Vino...@gmail.com 

Regards
Vinod B.G
9611166888



--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.

Host Cache

unread,
Sep 6, 2022, 5:52:16 AM9/6/22
to rabbitm...@googlegroups.com, Vinod Vinu
On 2022-09-06 17:42, Vinod Vinu wrote:
> Hi guys
>
> I am receiving many emails from "rabbitmq-user@googlegroup .com" which
> do not relevant to me kindly remove my Email ID -Vino...@gmail.com
>

please send an email to: rabbitmq-user...@googlegroups.com to
unsubscribe.

Thanks.

Satheesh Kumar

unread,
Sep 6, 2022, 8:22:02 AM9/6/22
to rabbitmq-users
i tried to use python script that will do get request to fetch definitions from  /api/definitions and error logs clearly stated it get timed out at server end


Error logs:

Traceback (most recent call last):
  File "backup.py", line 15, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "backup.py", line 11, in main
    async with session.get(pokemon_url,  ssl=False) as resp:
  File "/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/client.py", line 559, in _request
    await resp.start(conn)
  File "/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 898, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/home/ironfist/python-rmq_backup/venv/lib/python3.8/site-packages/aiohttp/streams.py", line 616, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

Michal Kuratczyk

unread,
Sep 6, 2022, 8:33:59 AM9/6/22
to rabbitm...@googlegroups.com
Hi,

Then I guess you're hitting management.tcp.request_timeout:

Best,

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.


--
Michał
RabbitMQ team

Satheesh Kumar

unread,
Sep 6, 2022, 9:19:06 AM9/6/22
to rabbitmq-users
Yes , i am using the management api 

Management API Referhttps://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.10.7/deps/rabbitmq_management/priv/www/api/index.html/api/definitions

Also i tried to increase timeout in rabbitmq conf
# For RabbitMQ 3.7.9 and later versions. # # Configures HTTPS (TLS-enabled) listener timeouts 
management.ssl.idle_timeout = 120000
management.ssl.inactivity_timeout = 120000
management.ssl.request_timeout = 10000

But rabbitmq server not starting after this change, 

Please let me know, is there any other config i need to change

refer : https://www.rabbitmq.com/management.html

Satheesh Kumar

unread,
Sep 12, 2022, 2:06:36 AM9/12/22
to rabbitmq-users
After increasing management.ssl.timeout also the timeout issue is still there, is there any way to fix this issue
Reply all
Reply to author
Forward
0 new messages