Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ngdias on May 12, 2018, 03:28:49 PM



Title: WARNING: request rejected because http work queue depth exceeded
Post by: ngdias on May 12, 2018, 03:28:49 PM
I'm getting this error message on a VPS node that I am not using for RPC calls. It's just online and I don't do anything else than let it run.

Quote
WARNING: request rejected because http work queue depth exceeded, it can be increased with the -rpcworkqueue= setting

.conf is set to rpcallowip=127.0.0.1 so no outside RPC calls are allowed.

The node stops working when this happens and resumes normally after a reboot.

1. What could be triggering this error?
2. What can I do to avoid it? Settings recommended [ DO NOT POST SESC LINKS ]here[/url] fix it or just delay the problem?
3. Is there a log or a command that allows me to query and monitor the number and origin of RPC quests over time?


Title: Re: WARNING: request rejected because http work queue depth exceeded
Post by: achow101 on May 12, 2018, 05:39:27 PM
1. What could be triggering this error?
RPC commands are being issued faster than they can be handled.

2. What can I do to avoid it? Settings recommended [ DO NOT POST SESC LINKS ]here[/url] fix it or just delay the problem?
You can set -rpcworkqueue to a number higher than 16.

3. Is there a log or a command that allows me to query and monitor the number and origin of RPC quests over time?
Start bitcoind with -debug=rpc and -debug=http. You will see information about the RPC commands and HTTP server stuff logged to the debug.log file.


Title: Re: WARNING: request rejected because http work queue depth exceeded
Post by: ngdias on May 12, 2018, 05:57:47 PM
Thanks for the reply, but there is still something I don't fully understand... the node accepts HTTP and RPC requests during regular operation, from other nodes in the network? This means anyone can spam my IP with these sort of requests to bring the node down?


Title: Re: WARNING: request rejected because http work queue depth exceeded
Post by: achow101 on May 12, 2018, 11:53:01 PM
the node accepts HTTP and RPC requests during regular operation, from other nodes in the network?
No, it does not.

Connections from other nodes use the peer-to-peer network protocol which uses different ports and is not HTTP.


Title: Re: WARNING: request rejected because http work queue depth exceeded
Post by: zuki1234 on January 30, 2022, 04:01:38 AM
1. What could be triggering this error?
RPC commands are being issued faster than they can be handled.

2. What can I do to avoid it? Settings recommended [ DO NOT POST SESC LINKS ]here[/url] fix it or just delay the problem?
You can set -rpcworkqueue to a number higher than 16.

3. Is there a log or a command that allows me to query and monitor the number and origin of RPC quests over time?
Start bitcoind with -debug=rpc and -debug=http. You will see information about the RPC commands and HTTP server stuff logged to the debug.log file.

I know this is an old thread, I am a total newbie in crypto currency and since bitcoin is so expensive I decided to fork litecoin instead and learn more about it, still have alot to learn. I was having the same issue and so far after adjusting the rpcworkqueue i have not received the error in the past 30 minutes ill keep running it overnight and see if I will get the error.

Thank you for posting this solution.


Title: Re: WARNING: request rejected because http work queue depth exceeded
Post by: zuki1234 on January 30, 2022, 08:44:46 PM
--snip--

I know this is an old thread, I am a total newbie in crypto currency and since bitcoin is so expensive I decided to fork litecoin instead and learn more about it, still have alot to learn. I was having the same issue and so far after adjusting the rpcworkqueue i have not received the error in the past 30 minutes ill keep running it overnight and see if I will get the error.

Thank you for posting this solution.

I'm not sure what do you mean by "fork litecoin". However, you could use Bitcoin Testnet network, so you don't need to experiment/learn with real money. You can use faucet (such as https://testnet-faucet.com/btc-testnet/ (https://testnet-faucet.com/btc-testnet/)) to obtain testnet Bitcoin (tBTC).

I could be wrong with my terminologies, what I meant was I downloaded a copy of the Litecoin code and modified it to create an altcoin. I know this is a Bitcoin forum but so far I am able to resolve issues with my altcoin "litecoin fork" with posts from this forum. I will look into your suggestion and set up a Bitcoin node as well to learn more about it. Thanks!
 


Title: Re: WARNING: request rejected because http work queue depth exceeded
Post by: BlackHatCoiner on January 31, 2022, 07:56:10 AM
I could be wrong with my terminologies, what I meant was I downloaded a copy of the Litecoin code and modified it to create an altcoin. I know this is a Bitcoin forum but so far I am able to resolve issues with my altcoin "litecoin fork" with posts from this forum. I will look into your suggestion and set up a Bitcoin node as well to learn more about it. Thanks!

You can create a thread in the Altcoin Discussion (https://bitcointalk.org/index.php?board=67.0) and invite us to help you there.