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

ContinueChat on viewer hangs at 100% CPU usage #1623

Open
kuon opened this issue Jul 3, 2024 · 3 comments
Open

ContinueChat on viewer hangs at 100% CPU usage #1623

kuon opened this issue Jul 3, 2024 · 3 comments

Comments

@kuon
Copy link

kuon commented Jul 3, 2024

Hello,

I noticed that one bot would hang indefinitely at 100% CPU usage sometimes.

I was able to pinpoint the last requests made to the bot before it crashed:

Jul  3 10:04:47 lemon nginx[287196]:  "GET /plastique-sandbox HTTP/2.0" 200 1167 0.013 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:47 lemon nginx[287196]:  "GET /__ENV.js HTTP/2.0" 304 0 0.002 "https://typebot.memoways.com/plastique-sandbox" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:48 lemon nginx[287196]: GET /typebot/public/workspaces/clx0ofhfm0001la7d3iliqpx9/typebots/clxixc1ju0001qwwqk9o91bq2/favIcon?v=1719415082560 HTTP/2.0" 200 418242 0.229 "https://typebot.memoways.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:48 lemon nginx[287196]:  "POST /api/v1/typebots/plastique-sandbox/startChat HTTP/2.0" 200 681 0.184 "https://typebot.memoways.com/plastique-sandbox" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:48 lemon nginx[287196]:  "GET /plastique-sandbox HTTP/2.0" 200 1167 0.013 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:49 lemon nginx[287196]:  "GET /__ENV.js HTTP/2.0" 304 0 0.002 "https://typebot.memoways.com/plastique-sandbox" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:49 lemon nginx[287196]:  "POST /api/v1/typebots/plastique-sandbox/startChat HTTP/2.0" 200 683 0.038 "https://typebot.memoways.com/plastique-sandbox" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:50 lemon nginx[287196]:  "POST /api/v1/sessions/cly5jyap6000210cch8hcr79k/continueChat HTTP/2.0" 200 928 0.038 "https://typebot.memoways.com/plastique-sandbox" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"
Jul  3 10:04:56 lemon nginx[287196]:  "POST /api/v1/sessions/cly5jyap6000210cch8hcr79k/continueChat HTTP/2.0" 200 510 0.032 "https://typebot.memoways.com/plastique-sandbox" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36"

I realize it's little to go on, I'll have to try to reproduce it in a debug environment, but maybe you can find something knowing the code.

@kuon
Copy link
Author

kuon commented Jul 3, 2024

Apparently the chatbot user, @Ulrfis says it was caused by an "incomplete" chatnode integration.

@Ulrfis
Copy link

Ulrfis commented Jul 3, 2024

The API key was missing in the Chatnode setting (because of a change of the API key in the Chatnode back-end)

@baptisteArno
Copy link
Owner

I honestly have no idea 🤔 I don't think it is linked to Typebot... Is it 100% reproducible? On any bot, or just one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants