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

If already running statsd on the default port, agent fails with no error #480

Closed
MisterRayCo opened this issue Apr 30, 2013 · 3 comments · Fixed by #519
Closed

If already running statsd on the default port, agent fails with no error #480

MisterRayCo opened this issue Apr 30, 2013 · 3 comments · Fixed by #519
Assignees

Comments

@MisterRayCo
Copy link
Contributor

https://datadog.desk.com/agent/case/3875

@ghost ghost assigned elijahandrews May 6, 2013
@clutchski
Copy link
Contributor

It'd be good to raise a better message here, e.g. "A program is already listening on port XYZ"

@elijahandrews
Copy link
Contributor

Haven't been able to reproduce this one. While already running statsd:

➜  dd-agent git:(master) ✗ python dogstatsd.py
Log file is unwritable: '/var/log/datadog/dogstatsd.log'
2013-05-14 13:00:18,488 | INFO | dd.dogstatsd | dogstatsd(dogstatsd.py:218) | Adding sig handler
2013-05-14 13:00:18,488 | INFO | dd.dogstatsd | dogstatsd(dogstatsd.py:78) | Reporting to localhost:9000 every 10s
2013-05-14 13:00:18,489 | INFO | dd.dogstatsd | dogstatsd(dogstatsd.py:73) | Stopping reporter
2013-05-14 13:00:18,490 | INFO | dd.dogstatsd | dogstatsd(dogstatsd.py:229) | Stopped
Traceback (most recent call last):
  File "dogstatsd.py", line 322, in <module>
    sys.exit(main())
  File "dogstatsd.py", line 301, in main
    daemon.run()
  File "dogstatsd.py", line 223, in run
    self.server.start()
  File "dogstatsd.py", line 174, in start
    self.socket.bind(self.address)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 48] Address already in use

@remh
Copy link
Contributor

remh commented May 14, 2013

You should probably use the same environment:
centos 6, then install the agent via the repo and look at the logs.

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

Successfully merging a pull request may close this issue.

4 participants