Dont send crash mails when sleeping
Hi there,
Somehow i always receive mails about my service crashing when it wakes up from sleep.
Any way to correct that?
Solution:Jump to solution
latest uses pm2, while 10.6.3 does not, perhaps pm2 is handling the sigterm properly
15 Replies
Project ID:
b70100f5-5d42-4565-8ad8-9e22a666dc6c
b70100f5-5d42-4565-8ad8-9e22a666dc6c
I'm assuming your service isn't crashing?
no, last one failed a month ago
interesting, definitely unwanted behaviour
is this your only service that has crash emails on wake?
i only have one on wake so thats a yes and a no π
do you get a crashed email every single wake?
Yes
I must say, the application takes some time to start, so the first request always says failed to respond, but after a refresh its up and accesable
is there anything in the logs about unhanded sigterm or something like that?
Nope
doing some tests and will tag the team if i can replicate
i cant reproduce on latest, would updating be something you'd want to try?
Solution
latest uses pm2, while 10.6.3 does not, perhaps pm2 is handling the sigterm properly
if you dont wanna do latest 10.7.1 is the oldest image to use pm2
Looks like the newer version (Directus 10.9.1) is alot faster to start.
After changing that, the instance works very smooth and i dont see a crash mail report incomming.
Thanks for the suggestion @Brody π
no problem!