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