Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the supervisord binary preferred by the user. #580

Closed
mastrolinux opened this issue Jul 18, 2013 · 8 comments
Closed

Use the supervisord binary preferred by the user. #580

mastrolinux opened this issue Jul 18, 2013 · 8 comments

Comments

@mastrolinux
Copy link
Contributor

If another version of supervisord is already present on the system installed via pip, it will be installed in /usr/local/bin/supervisord and the installation script of datadog will fail because supervisord cannot be installed by apt-get.

Please avoid the usage of /usr/bin/supervisord but use the supervisord in the path if the user has already installed it.

I cannot try the fix at line:

SUPERVISORD="/usr/bin/supervisord"

but should just be
SUPERVISORD="$(which supervisord)"

@elijahandrews
Copy link
Contributor

Good catch, thanks for pointing this out!

@mastrolinux
Copy link
Contributor Author

Thank your for fixing it @elijahandrews . This will semplify a lot our setup.

@rosada
Copy link

rosada commented Oct 5, 2018

I have the same experience about this, I need to install the agent without interupting the supervisord that running.
Is that possible?

@olivielpeau
Copy link
Member

@rosada the Agent now uses (since at least v5.0.0) its own supervisord (see https://github.com/DataDog/dd-agent/blob/5.27.2/packaging/debian/datadog-agent.init#L29), so the agent install should not have any effect on your system-wide supervisord

@rosada
Copy link

rosada commented Oct 5, 2018

@olivielpeau thank you for the info.
when installing the agent, it is also installing supervisord. and we are using the default port for supervisord.
The installation is failed because port conflict, I cannot stoping or change the port on curently runnning supervisord.
can I modified the supervisord before it is installed by the agent?

@olivielpeau
Copy link
Member

the agent's supervisord uses a unix socket file and not a port: https://github.com/DataDog/dd-agent/blob/5.27.2/packaging/supervisor.conf#L1-L5 (that file should be present at /etc/dd-agent/supervisor.conf on an installation of Agent v5). So AFAIK you shouldn't get any port conflict because of the Agent's supervisord

what's the port that's conflicting?

@rosada
Copy link

rosada commented Oct 5, 2018

@olivielpeau I am running nginx listening on 80 also, but the conflict says it was because supervisord failed to start

Setting up supervisor (3.0b2-1ubuntu0.1) ... Starting supervisor: Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord. For help, use /usr/bin/supervisord -h invoke-rc.d: initscript supervisor, action "start" failed.

Any idea?

@olivielpeau
Copy link
Member

@rosada this doesn't seem to be related to the Datadog Agent (the Agent does not install the supervisor deb package), I'd advise you to check which port your system supervisor attempts to listen to by default, and compare that to the list of open connections (helpful command: netstat -atunp, run with sudo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants