eyetime-international-ltd / rocketchat_loadtest_message_listener

MIT License
9 stars 1 forks source link

Error: Asteroid connection timeout #3

Open PrasannaSM opened 4 years ago

PrasannaSM commented 4 years ago

I ran: node message_listener/app.js 0 -i 0.1 -j 0.05 -n 10 -u 100 -w 5 -s server_url

and got timeout error after few send/receive messages

. . [+] uwyemOipwinRomphyi sending 10 private messages to uDetDysOnbekDeggom [+] uyitduvTycseydNiOt receives messages from uNaulpOwutmoanAmBy [+] uekjevweigacNidkoo receives messages from uWriskEdpokUbGicti [+] uWriskEdpokUbGicti sending 10 private messages to uekjevweigacNidkoo [+] uCrowdirGhofyourAb sending 10 private messages to uuckFagDeymcongEmo [+] uVaruquodfeinEsvun sending 10 private messages to uVanmeitdotjobOgJo [+] uKnavcyertedvielCu sending 10 private messages to uvadleppyevTejOodd [+] uDehicviowraquibry sending 10 private messages to urikadIcUrgivinHaj [+] uLushickohajneuvDi sending 10 private messages to uWrubNertUnsImyoov [+] ukagTastIgmawkIjRo sending 10 private messages to uskecInVifiCehegHo [+] uflyufGidveiskenLy receives messages from uDojEsvidtadonJidy [+] uDojEsvidtadonJidy sending 10 private messages to uflyufGidveiskenLy [+] uNerEshmejSybFadat receives messages from uyenjubwewAfeOkIdA [+] uDetDysOnbekDeggom receives messages from uwyemOipwinRomphyi [+] uabTeinyojRamJucEf receives messages from uOdArvimGhivvubnay [+] uNaulpOwutmoanAmBy sending 10 private messages to uyitduvTycseydNiOt [+] uHubbyatukyuxPevVo receives messages from uJesiOtbuIlvougveg [+] uCidmitNotEKnylsya sending 10 private messages to uUvAkheeckikBeffup Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout Error: Asteroid connection timeout . . .

Any idea to overcome this isssue?

scratttt commented 4 years ago

@PrasannaSM do you use the var "--server-url VAL, -s VAL"?

Check your firewall or proxy, I had the same error and change the value of variable for "http://myip:3000".

jsburch83 commented 3 years ago

Same issue. Rocket chat sits behind a reverse nginx proxy and it will give this Asteroid connection timeout.

jsburch83 commented 3 years ago

I found my issue. The app.js doesn't like the SSL cert it's trying to connect to. In my case the chain was broken according to Qualys SSL labs. Qualys reported the chain is incomplete. I followed the nginx documentation on how it suppose to be setup. Once I had the chained cert in my nginx config the loadtest code was able to connect to the server just fine.