GithubHelp home page GithubHelp logo

how to test crashsms about superlance HOT 3 CLOSED

supervisor avatar supervisor commented on May 23, 2024
how to test crashsms

from superlance.

Comments (3)

mnaberez avatar mnaberez commented on May 23, 2024

crashsms only sends an alert when it receives the PROCESS_STATE_EXITED event, meaning the process has entered the EXITED state. When you stop the process with supervisorctl stop, it puts the process into the STOPPED state. Try causing the process to exit another way, e.g. by kill -9 <pid> or since Supervisor 3.3.0, supervisorctl signal 9 <processname>. To see detailed messages about what events are being sent to event listeners like crashsms, set loglevel=blat in the [supervisord] section of the config file.

from superlance.

morfin avatar morfin commented on May 23, 2024

Good, I killed it and this is the log (Still not getting any email):

worker-1000:worker-1000 exited unexpectedly 2016-10-18 16:29:00,313

2016-10-18 16:29:00,326 DEBG event 5 sent to listener crashsms
2016-10-18 16:29:00,326 BLAT read event caused by <PEventListenerDispatcher at 140586332972960 for <Subprocess at 140586333223392 with name crashsms in state RUNNING> (stdout)>
2016-10-18 16:29:00,326 DEBG 'crashsms' stdout output:
RESULT 2
OKREADY

2016-10-18 16:29:00,327 DEBG crashsms: event was processed
2016-10-18 16:29:00,327 DEBG crashsms: BUSY -> ACKNOWLEDGED
2016-10-18 16:29:00,327 DEBG crashsms: ACKNOWLEDGED -> READY
2016-10-18 16:29:01,329 INFO success: worker-1000 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

Any other idea? Is there any log where I can see how crashsms sends the message?

By the way, loglevel=blat didn't work. loglevel=blather worked.

from superlance.

mnaberez avatar mnaberez commented on May 23, 2024

crashsms doesn't have a log file. It might print some messages to its stderr, which you can see with supervisorctl tail <processname> stderr or in the main supervisord log if the log level is low enough (like blat).

We use this issue tracker mainly for bugs. The supervisor-users mailing list is a good place to ask questions installing or using Supervisor and Superlance.

from superlance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.