{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/1601","labels_url":"https://api.github.com/repos/DataDog/dd-agent/issues/1601/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-agent/issues/1601/comments","events_url":"https://api.github.com/repos/DataDog/dd-agent/issues/1601/events","html_url":"https://github.com/DataDog/dd-agent/issues/1601","id":73790272,"number":1601,"title":"Agent won't start on Ubuntu 14.04","user":{"login":"chriskinsman","id":1522018,"avatar_url":"https://avatars.githubusercontent.com/u/1522018?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskinsman","html_url":"https://github.com/chriskinsman","followers_url":"https://api.github.com/users/chriskinsman/followers","following_url":"https://api.github.com/users/chriskinsman/following{/other_user}","gists_url":"https://api.github.com/users/chriskinsman/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskinsman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskinsman/subscriptions","organizations_url":"https://api.github.com/users/chriskinsman/orgs","repos_url":"https://api.github.com/users/chriskinsman/repos","events_url":"https://api.github.com/users/chriskinsman/events{/privacy}","received_events_url":"https://api.github.com/users/chriskinsman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-07T01:06:59Z","updated_at":"2016-01-25T01:15:13Z","closed_at":"2015-05-07T01:13:26Z","body":"I have it running on other boxes but on this one I get:\r\n\r\n * Stopping Datadog Agent (stopping supervisord) datadog-agent                                     [ OK ] \r\n * Starting Datadog Agent (using supervisord) datadog-agent                                        [fail] \r\ndatadog-agent:collector          RUNNING   pid 868, uptime 0:00:11\r\ndatadog-agent:dogstatsd          RUNNING   pid 866, uptime 0:00:11\r\ndatadog-agent:forwarder          FATAL     Exited too quickly (process log may have details)\r\ndatadog-agent:jmxfetch           EXITED    May 07 01:01 AM\r\nDatadog Agent (supervisor) is NOT running all child processes\r\n * Stopping Datadog Agent (stopping supervisord) datadog-agent                                     [ OK ] \r\n\r\nDoing an info I get:\r\n\r\n===================\r\nCollector (v 5.3.2)\r\n===================\r\n\r\n  Collector is not running.\r\n  You can get more details in the logs:\r\n    <stderr>, /var/log/datadog/collector.log, syslog:/dev/log\r\n\r\n===================\r\nDogstatsd (v 5.3.2)\r\n===================\r\n\r\n  Dogstatsd is not running.\r\n  You can get more details in the logs:\r\n    <stderr>, /var/log/datadog/dogstatsd.log, syslog:/dev/log\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/dd-forwarder\", line 567, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/bin/dd-forwarder\", line 557, in main\r\n    return ForwarderStatus.print_latest_status()\r\n  File \"/opt/datadog-agent/agent/checks/check_status.py\", line 238, in print_latest_status\r\n    message = module_status.render()\r\n  File \"/opt/datadog-agent/agent/checks/check_status.py\", line 140, in render\r\n    ] + [\"\", \"\"]\r\n  File \"/opt/datadog-agent/agent/checks/check_status.py\", line 647, in body_lines\r\n    if self.proxy_data:\r\nAttributeError: 'ForwarderStatus' object has no attribute 'proxy_data'\r\n\r\nTrying to track down that last error not finding anything in searches...\r\n\r\nLooking at the forwarder.log I see:\r\n\r\n2015-05-07 01:09:39 UTC | INFO | dd.forwarder | root(ddagent.py:121) | Done with custom emitters\r\n2015-05-07 01:09:39 UTC | WARNING | dd.forwarder | forwarder(ddagent.py:166) | You are a Datadog user so we will send data to https://app.datadoghq.com\r\n2015-05-07 01:09:39 UTC | ERROR | dd.forwarder | forwarder(ddagent.py:462) | Socket error [Errno 98] Address already in use. Is another application listening on the same port ? Exiting\r\nTraceback (most recent call last):\r\n  File \"/opt/datadog-agent/agent/ddagent.py\", line 451, in run\r\n    http_server.listen(self._port, address = self._agentConfig['bind_host'])\r\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/tornado/tcpserver.py\", line 117, in listen\r\n    sockets = bind_sockets(port, address=address)\r\n  File \"/opt/datadog-agent/embedded/lib/python2.7/site-packages/tornado/netutil.py\", line 104, in bind_sockets\r\n    sock.bind(sockaddr)\r\n  File \"/opt/datadog-agent/embedded/lib/python2.7/socket.py\", line 224, in meth\r\n    return getattr(self._sock,name)(*args)\r\nerror: [Errno 98] Address already in use\r\n\r\nRunning sockstat -l on the box I don't see any sockets listening on any port so not sure what the issue is..."},"comment":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/comments/174365170","html_url":"https://github.com/DataDog/dd-agent/issues/1601#issuecomment-174365170","issue_url":"https://api.github.com/repos/DataDog/dd-agent/issues/1601","id":174365170,"user":{"login":"noushi","id":4186288,"avatar_url":"https://avatars.githubusercontent.com/u/4186288?v=3","gravatar_id":"","url":"https://api.github.com/users/noushi","html_url":"https://github.com/noushi","followers_url":"https://api.github.com/users/noushi/followers","following_url":"https://api.github.com/users/noushi/following{/other_user}","gists_url":"https://api.github.com/users/noushi/gists{/gist_id}","starred_url":"https://api.github.com/users/noushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noushi/subscriptions","organizations_url":"https://api.github.com/users/noushi/orgs","repos_url":"https://api.github.com/users/noushi/repos","events_url":"https://api.github.com/users/noushi/events{/privacy}","received_events_url":"https://api.github.com/users/noushi/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T01:15:13Z","updated_at":"2016-01-25T01:15:13Z","body":"Same here, happened on 3 different servers, a little hand holding got things back on track.\r\n\r\n```shell\r\nroot@xxxx:~# ps aux |grep datado[g]\r\ndd-agent  9810  0.0  0.0 104252 16624 ?        Ss    2015  12:10 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/bin/supervisord -c /etc/dd-agent/supervisor.conf --pidfile /opt/datadog-agent/run/datadog-supervisord.pid\r\ndd-agent  9814  0.1  0.0 210528 26344 ?        Sl    2015 103:30 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/agent/dogstatsd.py --use-local-forwarder\r\ndd-agent  9815  0.1  0.0 150832 28228 ?        S     2015  94:43 /opt/datadog-agent/embedded/bin/python /opt/datadog-agent/agent/ddagent.py\r\n\r\nroot@xxxx:~# cat /opt/datadog-agent/run/datadog-supervisord.pid\r\ncat: /opt/datadog-agent/run/datadog-supervisord.pid: No such file or directory\r\n\r\nroot@xxxx:~# echo 9810 >/opt/datadog-agent/run/datadog-supervisord.pid\r\n\r\nroot@tiefighter25:~# service datadog-agent stop\r\n * Stopping Datadog Agent (stopping supervisord) datadog-agent                                                                                          [ OK ] \r\n\r\nroot@xxxx:~# ps aux |grep datado[g]\r\n\r\nroot@xxxx:~# service datadog-agent start\r\n * Starting Datadog Agent (using supervisord) datadog-agent                                                                                             [ OK ] \r\n```"}}