Typebot ~ FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Hello, this is happening to me
And after that, all accesses to the typebot viewer go wrong (it shows a message that the funnel was not found)
log:
<--- Last few GCs --->
[16:0x7080870] 12732610 ms: Mark-sweep (reduce) 4074.4 (4143.7) -> 4073.4 (4143.9) MB, 4167.2 / 0.0 ms (average mu = 0.129, current mu = 0.001) allocation failure; scavenge might not succeed
[16:0x7080870] 12736699 ms: Mark-sweep (reduce) 4074.6 (4143.9) -> 4073.6 (4144.2) MB, 4086.1 / 0.0 ms (average mu = 0.063, current mu = 0.001) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 0xb95b60 node::Abort() [next-router-worker]
2: 0xa9a7f8 [next-router-worker]
3: 0xd6f2f0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [next-router-worker]
4: 0xd6f697 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [next-router-worker]
.....
40 Replies
Project ID:
1aa116a9-6ebc-47de-b8e8-4801e78f6a66
1aa116a9-6ebc-47de-b8e8-4801e78f6a66
Can't reach database server at postgres.railway.internal:5432Could you try adding a 3 second sleep in your start command?
This doesn't happen when I 'start'... it happens like this: everything is working normally, and after a few minutes or hours, kaboom. stops working out of nowhere
Could you try anyway?
here, friend, would that be it?
/bin/sh -c "sleep 3; unset PGPORT; docker-entrypoint.sh postgres --port=5432"
in 'Custom Start Command' on postgres?
_
š“ (to update the topic, the image I had sent before was not the first in log)
obs: my plan is the pro plan - 32 GB RAM / 32 vCPU per Service
oh so you get out of memory before getting the database issue
š¤
Mind sharing your metrics?
its here friend
those spikes are interesting..
are you sure these are on a pro plan account?
My best guess is you get memory spikes that goes above 8gb, in short enough timeframes that it does not get picked up by the metrics
and that causes out of heap memory errors
I wish that was it, so the solution would be easier, but I'm really on a pro account
and i only have 1 typebot is this workspace
i dont know why this happening, doenst make sense
and the size of my postgres data is 1.42gb... the max is 50gb
when you purchase pro plan then you get given another account
so you may have both a pro plan and a hobby plan account
just make sure this project is on the pro plan account
I believe so, but, see:
(oafish harmony is my typebot)
was typebot originally deployed to a hobby plan?
hello brody! yes, u are right..
I migrated it from the hobby plan to the pro plan
what does the disk usage of the volume for postgres look like
side note, did you know you can rename that from the projects settings
like this, brody
sorry for the delay, I was on vacation
that's cpu/mem/net
please show me disk usage by clicking on the volume to bring up the volumes metrics and settings
oh, sorry
in 1 hour is
you're no where near 50gb, so that's not the issue
can you connect to postgres externally?
Yes, I activated this to be able to control some users/plans more automatically, I generally leave it activated. However, I have this problem from time to time, I don't know if it's because of that...
ā
is typebot offline right now?
No, not at the moment
can you redeploy it?
Of course, is there a correct order to redeploy? Or i can just redeploying one by one ?
I'd go with the viewer before the builder
done, typebot is currently working. Do you want me to do anything else?
umm ask a typebot community why typebot decided to crash
okay
not too much I can do about that unfortunately
brody, do u know if is there any problem with having 2 typebots in the same workspace? I'm thinking about ''creating'' a new one in the same workspace, to see if it's ok
in the same workspace, nothing wrong with that, in the same project, no, don't do that