R
Railwayβ€’4mo ago
Attacler/Bart

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:
latest uses pm2, while 10.6.3 does not, perhaps pm2 is handling the sigterm properly
Jump to solution
15 Replies
Percy
Percyβ€’4mo ago
Project ID: b70100f5-5d42-4565-8ad8-9e22a666dc6c
Attacler/Bart
Attacler/Bartβ€’4mo ago
b70100f5-5d42-4565-8ad8-9e22a666dc6c
Brody
Brodyβ€’4mo ago
I'm assuming your service isn't crashing?
Attacler/Bart
Attacler/Bartβ€’4mo ago
no, last one failed a month ago
No description
Brody
Brodyβ€’4mo ago
interesting, definitely unwanted behaviour is this your only service that has crash emails on wake?
Attacler/Bart
Attacler/Bartβ€’4mo ago
i only have one on wake so thats a yes and a no πŸ˜‚
Brody
Brodyβ€’4mo ago
do you get a crashed email every single wake?
Attacler/Bart
Attacler/Bartβ€’4mo ago
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
Brody
Brodyβ€’4mo ago
is there anything in the logs about unhanded sigterm or something like that?
Attacler/Bart
Attacler/Bartβ€’4mo ago
Nope
Brody
Brodyβ€’4mo ago
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
Brody
Brodyβ€’4mo ago
latest uses pm2, while 10.6.3 does not, perhaps pm2 is handling the sigterm properly
Brody
Brodyβ€’4mo ago
if you dont wanna do latest 10.7.1 is the oldest image to use pm2
Attacler/Bart
Attacler/Bartβ€’4mo ago
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 πŸ™‚
Brody
Brodyβ€’4mo ago
no problem!