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

Agent conflicts with Docker Registry on port 5000 #797

Open
gupps8117 opened this issue May 17, 2021 · 1 comment
Open

Agent conflicts with Docker Registry on port 5000 #797

gupps8117 opened this issue May 17, 2021 · 1 comment

Comments

@gupps8117
Copy link

Describe what happened:

After installing the agent on our GitLab server, we encountered issues with GitLab Container Registry. The issue didn't appear immediately after the agent was installed but after the scheduled server update followed by the restart.

Suddenly, all attempts to push to the container registry started to fail with a 404 error. It significantly disturbed the work of our development team, because it was working and out of the blue stopped working.

After checking GitLab omnibus logs, I found out that the Docker registry keeps restarting, reporting that 127.0.0.1:5000 is already in use. Then I found out that the agent is listening on that port.

I had to change the agent settings so it doesn't use port 5000 and I don't really know what consequences it would have on the agent itself.

Describe what you expected:

Since GitLab integration is one of the standard integrations of Datadog, I was not expecting that it will come in direct conflict with the widely used GitLab component, such as the container registry.

Steps to reproduce the issue:

Install GitLab using Omnibus and enable the container registry. Check if everything works as expected. Install the Datadog agent on the same machine, reboot the machine and observe that the GitLab container registry keeps restarting because port 5000 is already in use.

Additional environment details (Operating System, Cloud provider, etc):

Ubuntu 18.04

Is there any way I can update the port used by go_expvar using CHEF Cookbook or Atrributes.

@416a
Copy link

416a commented Feb 15, 2022

Hi gupps8117!
You probably resolved this by now but in case you or other's haven't, yes there's a way to use the DataDog's cookbook attributes to override this port.

See https://github.com/DataDog/chef-datadog#extra-configuration

For the go_expvar port conflict (I also ran into the same Docker+go_expvar issue), you would use the following:

# File: some_cookbook/attributes/default.rb
override['datadog']['extra_config']['expvar_port'] = 5555

All the best and stay safe!

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

2 participants