Giter Site home page Giter Site logo

Comments (7)

scriptsrc avatar scriptsrc commented on July 27, 2024

Like so:

$ cd security_monkey/supervisor
$ sudo supervisorctl -c security_monkey.ini
> restart securitymonkeyscheduler

Run status a few times to make sure it has started correctly

> status

from security_monkey.

JaguarSecurity avatar JaguarSecurity commented on July 27, 2024

Getting unix:///tmp/supervisor.sock; no such file with the cloudformation template

from security_monkey.

scriptsrc avatar scriptsrc commented on July 27, 2024

Hey Jaguar,

I've noticed this as well. Under some circumstances, supervisor seems to die off, even if security_monkey continues to run. (Root cause currently unknown)

lucab has provided a pull request ( #47 ) to switch to the system supervisor. That may (or may not) stop this from happening. That has been merged into develop but not yet pushed to master.

In the mean time, try this:

$ sudo pkill -9 python

Kills all python processes to make sure security_monkey is shut down before we launch another instance of supervisor.

$ sudo supervisord -c security_monkey.ini
$ sudo supervisorctl -c security_monkey.ini

Launching supervisord again should make sure there is a file in /tmp/supervisor.sock

from security_monkey.

JaguarSecurity avatar JaguarSecurity commented on July 27, 2024

The steps above did not work. Any other ideas?

from security_monkey.

scriptsrc avatar scriptsrc commented on July 27, 2024

Give me some more information. What happened when you launched supervisord?

$ sudo supervisord -c security_monkey.ini

Any output? Is supervisorctl still returning the same error?

from security_monkey.

JaguarSecurity avatar JaguarSecurity commented on July 27, 2024

FATAL Excited too quickly (process log may have details)

from security_monkey.

scriptsrc avatar scriptsrc commented on July 27, 2024

My guess is that your pkill command didn't kill security_monkey processes correctly so when supervisor tries to start a new instance of security monkey, the port that it is listening on is already taken.

$ ps agux | grep python
$ sudo pkill -9 python
$ ps agux | grep python

Use these commands to make sure security_monkey is shut down before trying to start supervisor again.

from security_monkey.

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.