Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

fix(logger): fix publish loop #766

Merged
merged 1 commit into from
Apr 18, 2014
Merged

Conversation

bacongobbler
Copy link
Member

before, the logger's publish loop would be searching for a TCP connection. Since the logger runs on UDP, the publish loop would not find it running and would run forever. This changes netstat to search over UDP for the logger instead, allowing it to publish its values to etcd.

fixes #738

Surprisingly, as soon as I rebooted deis-logger (as well as usable-woodshed's logger) with this change, the application logs became available:

(venv)><> deis logs --app=usable-woodshed
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: [2014-04-17 18:25:47] INFO  WEBrick 1.3.1
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: [2014-04-17 18:25:47] INFO  ruby 2.0.0 (2014-02-24) [x86_64-linux]
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: [2014-04-17 18:25:47] INFO  WEBrick::HTTPServer#start: pid=16 port=5000
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:27:19] "GET / HTTP/1.1" 200 11 0.0022
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:27:19] "GET /favicon.ico HTTP/1.1" 404 18 0.0005
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:27:19] "GET /favicon.ico HTTP/1.1" 404 18 0.0007
2014-04-17 19:49:49 10.0.2.15:49962 usable-woodshed[web.1]: 172.17.8.1 - - [17/Apr/2014 18:39:49] "GET / HTTP/1.1" 200 11 0.0017

Also, I removed the occurrence of tabs.

before, the logger's publish loop would be searching for a TCP
connection. Since the logger runs on UDP, the publish loop would
not find it running and would run forever. This changes netstat
to search over UDP for the logger instead, allowing it to publish
its values to etcd.

fixes #738
@carmstrong
Copy link
Contributor

LGTM.

@mboersma
Copy link
Member

LGTM.

bacongobbler pushed a commit that referenced this pull request Apr 18, 2014
@bacongobbler bacongobbler merged commit 792eb1e into master Apr 18, 2014
@bacongobbler bacongobbler deleted the fix-logger-publish-loop branch April 18, 2014 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(scheduler): container loggers are failing to boot
3 participants