Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: node crashes with Message: AsyncEventQueue size exceeds limits when there are many flags to the docker start command #2550

Closed
fbarbu15 opened this issue Mar 25, 2024 · 1 comment · Fixed by #2551
Assignees
Labels
bug Something isn't working

Comments

@fbarbu15
Copy link
Contributor

Ex run a node with a lot of pubsub-topics

docker run -i -t -p 3393:3393 -p 3394:3394 -p 3395:3395 -p 3396:3396 -p 3397:3397 harbor.status.im/wakuorg/nwaku:latest --listen-address=0.0.0.0 --rest=true --rest-admin=true --websocket-support=true --log-level=TRACE --rest-relay-cache-capacity=100 --websocket-port=3395 --rest-port=3393 --tcp-port=3394 --discv5-udp-port=3396 --rest-address=0.0.0.0 --nat=extip:172.18.1.94 --peer-exchange=true --discv5-discovery=true --cluster-id=2 --metrics-server=true --metrics-server-address=0.0.0.0 --metrics-server-port=3397 --metrics-logging=true --relay=true --nodekey=30348dd51465150e04a5d9d932c72864c8967f806cce60b5d26afeca1e77eb68 --pubsub-topic=/waku/2/rs/2/0 --pubsub-topic=/waku/2/rs/2/1 --pubsub-topic=/waku/2/rs/2/2 --pubsub-topic=/waku/2/rs/2/3 --pubsub-topic=/waku/2/rs/2/4 --pubsub-topic=/waku/2/rs/2/5 --pubsub-topic=/waku/2/rs/2/6 --pubsub-topic=/waku/2/rs/2/7 --pubsub-topic=/waku/2/rs/2/8 --pubsub-topic=/waku/2/rs/2/9 --pubsub-topic=/waku/2/rs/2/10 --pubsub-topic=/waku/2/rs/2/11 --pubsub-topic=/waku/2/rs/2/12 --pubsub-topic=/waku/2/rs/2/13 --pubsub-topic=/waku/2/rs/2/14 --pubsub-topic=/waku/2/rs/2/15 --pubsub-topic=/waku/2/rs/2/16 --pubsub-topic=/waku/2/rs/2/17 --pubsub-topic=/waku/2/rs/2/18 --pubsub-topic=/waku/2/rs/2/19 --pubsub-topic=/waku/2/rs/2/20 --pubsub-topic=/waku/2/rs/2/21 --pubsub-topic=/waku/2/rs/2/22 --pubsub-topic=/waku/2/rs/2/23 --pubsub-topic=/waku/2/rs/2/24 --pubsub-topic=/waku/2/rs/2/25 --pubsub-topic=/waku/2/rs/2/26 --pubsub-topic=/waku/2/rs/2/27 --pubsub-topic=/waku/2/rs/2/28 --pubsub-topic=/waku/2/rs/2/29 --pubsub-topic=/waku/2/rs/2/30

Crash:

2024-03-25 14:51:39 /app/apps/wakunode2/wakunode2.nim(122) wakunode2
2024-03-25 14:51:39 /app/apps/wakunode2/app.nim(456) setupMonitoringAndExternalInterfaces
2024-03-25 14:51:39 /app/apps/wakunode2/app.nim(433) startMetricsServer
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(660) waitFor
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(635) pollFor
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncengine.nim(150) poll
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(678) cb
2024-03-25 14:51:39 Error: unhandled exception: Asynchronous task [subscriptionsListener() at protocol.nim:124] finished with an exception "AsyncEventQueueFullError"!
2024-03-25 14:51:39 Message: AsyncEventQueue size exceeds limits
2024-03-25 14:51:39 Stack trace: /app/apps/wakunode2/wakunode2.nim(122) wakunode2
2024-03-25 14:51:39 /app/apps/wakunode2/app.nim(456) setupMonitoringAndExternalInterfaces
2024-03-25 14:51:39 /app/apps/wakunode2/app.nim(433) startMetricsServer
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(660) waitFor
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(635) pollFor
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncengine.nim(150) poll
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(382) futureContinue
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/asyncsync.nim(601) waitEvents
2024-03-25 14:51:39 [[reraised from:
2024-03-25 14:51:39 /app/apps/wakunode2/wakunode2.nim(122) wakunode2
2024-03-25 14:51:39 /app/apps/wakunode2/app.nim(456) setupMonitoringAndExternalInterfaces
2024-03-25 14:51:39 /app/apps/wakunode2/app.nim(433) startMetricsServer
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(660) waitFor
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(635) pollFor
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncengine.nim(150) poll
2024-03-25 14:51:39 /app/vendor/nim-chronos/chronos/internal/asyncfutures.nim(382) futureContinue
2024-03-25 14:51:39 /app/waku/waku_metadata/protocol.nim(130) subscriptionsListener
2024-03-25 14:51:39 ]]
2024-03-25 14:51:39  [FutureDefect]

@fbarbu15 fbarbu15 added the bug Something isn't working label Mar 25, 2024
@SionoiS
Copy link
Contributor

SionoiS commented Mar 25, 2024

Ah I know this one. The event queue has a max amount of 30. We should increase it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants