Skip to content

Instantly share code, notes, and snippets.

@josephglanville
josephglanville / flynn-test.log
Created October 20, 2015 06:04
flynn-test datarace
==================
WARNING: DATA RACE
Write by goroutine 299:
runtime.mapassign1()
/usr/local/go/src/runtime/hashmap.go:376 +0x0
github.com/flynn/flynn/Godeps/_workspace/src/github.com/thoj/go-ircevent.(*Connection).ClearCallback()
/opt/flynn-test/src/github.com/flynn/flynn/Godeps/_workspace/src/github.com/thoj/go-ircevent/irc_callback.go:55 +0x18c
github.com/flynn/flynn/Godeps/_workspace/src/github.com/thoj/go-ircevent.(*Connection).Disconnect()
/opt/flynn-test/src/github.com/flynn/flynn/Godeps/_workspace/src/github.com/thoj/go-ircevent/irc.go:306 +0xda
github.com/flynn/flynn/Godeps/_workspace/src/github.com/thoj/go-ircevent.func·001()
@josephglanville
josephglanville / discoverd.log
Created October 28, 2015 02:11
discoverd container init failure
{"s":3,"t":1445992893655,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"registering RPC server\" app=containerinit fn=containerInitApp\n"}
{"s":3,"t":1445992893655,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"creating stdout pipe\" app=containerinit fn=containerInitApp\n"}
{"s":3,"t":1445992893655,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"creating stderr pipe\" app=containerinit fn=containerInitApp\n"}
{"s":3,"t":1445992893655,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"waiting to be resumed\" app=containerinit fn=containerInitApp\n"}
{"s":3,"t":1445992893655,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"starting RPC server\" app=containerinit fn=runRPCServer\n"}
{"s":3,"t":1445992893656,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"starting to stream state\" app=containerinit fn=StreamState\n"}
{"s":3,"t":1445992893656,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"sent initial state\" app=containerinit fn=StreamState\n"}
{"s":3,"t":1445992893656,"m":"t=2015-10-28T00:41:33+0000 lvl=info msg=\"wai
@josephglanville
josephglanville / quit.log
Created October 28, 2015 21:47
discoverd quit
SIGQUIT: quit
PC=0x4428f1
goroutine 0 [idle]:
runtime.futex(0xc50db8, 0x0, 0x0, 0x0, 0x0, 0xc50060, 0x1, 0x410a2f, 0x410c4e, 0xc50db8, ...)
/home/jpg/src/flynn/util/_toolchain/go/src/runtime/sys_linux_amd64.s:277 +0x21
runtime.futexsleep(0xc50db8, 0x0, 0xffffffffffffffff)
/home/jpg/src/flynn/util/_toolchain/go/src/runtime/os_linux.c:49 +0x47
runtime.notesleep(0xc50db8)
/home/jpg/src/flynn/util/_toolchain/go/src/runtime/lock_futex.go:145 +0xae
stopm()
@josephglanville
josephglanville / flynn-host.log
Created October 31, 2015 23:42
flynn-host crash
t=2015-10-31T23:37:48+0000 lvl=eror msg="error scanning log message" app=host pid=21475 host.id=host0 component=logmux fn=streamWithHistory app.id=7fa78264-6f6f-46b6-b381-efdf6bb79e23 job.id=host0-06ede156-8495-43d1-b9a7-92d1604ec378 log=/var/log/flynn/7fa78264-6f6f-46b6-b381-efdf6bb79e23.log error="MSG-LEN was longer than 5 characters"
now=2015-10-31T23:37:48+0000 fn=attach job.id=host0-06ede156-8495-43d1-b9a7-92d1604ec378 at=finish
t=2015-10-31T23:37:48+0000 lvl=info msg="request completed" component=host req_id=b1dab34a-ffda-4b52-a7b2-2754c55a07da status=101 duration=11.425161ms
panic: close of closed channel
goroutine 1070 [running]:
github.com/flynn/flynn/host/logmux.func·009()
/home/vagrant/go/src/github.com/flynn/flynn/host/logmux/logmux.go:498 +0x33
github.com/flynn/flynn/host/logmux.func·010()
/home/vagrant/go/src/github.com/flynn/flynn/host/logmux/logmux.go:541 +0x58c
@josephglanville
josephglanville / 7fa78264-6f6f-46b6-b381-efdf6bb79e23.log
Created October 31, 2015 23:50
7fa78264-6f6f-46b6-b381-efdf6bb79e23
250 <0>1 2015-10-31T23:34:47.910683926Z host1 7fa78264-6f6f-46b6-b381-efdf6bb79e23 web.host1-599227a7-9760-4313-a049-9aba5a5bcf8b ID3 [flynn seq="131"] t=2015-10-31T23:34:47+0000 lvl=info msg="registering RPC server" app=containerinit fn=containerInitApp
248 <0>1 2015-10-31T23:34:47.910816032Z host1 7fa78264-6f6f-46b6-b381-efdf6bb79e23 web.host1-599227a7-9760-4313-a049-9aba5a5bcf8b ID3 [flynn seq="132"] t=2015-10-31T23:34:47+0000 lvl=info msg="creating stdout pipe" app=containerinit fn=containerInitApp
248 <0>1 2015-10-31T23:34:47.910849041Z host1 7fa78264-6f6f-46b6-b381-efdf6bb79e23 web.host1-599227a7-9760-4313-a049-9aba5a5bcf8b ID3 [flynn seq="133"] t=2015-10-31T23:34:47+0000 lvl=info msg="creating stderr pipe" app=containerinit fn=containerInitApp
249 <0>1 2015-10-31T23:34:47.910872212Z host1 7fa78264-6f6f-46b6-b381-efdf6bb79e23 web.host1-599227a7-9760-4313-a049-9aba5a5bcf8b ID3 [flynn seq="134"] t=2015-10-31T23:34:47+0000 lvl=info msg="waiting to be resumed" app=containerinit fn=containerInitApp
243 <0>1
2015-11-16T12:23:16.332041Z app[app.host2-9df8ed40-2591-48e1-aba4-5e54a9399599]: 2015/11/16 12:23:16 [INFO] raft: Node at 192.0.2.202:1110 [Follower] entering Follower state
2015-11-16T12:23:16.332273Z app[app.host2-9df8ed40-2591-48e1-aba4-5e54a9399599]: 2015/11/16 12:23:16 discoverd listening for HTTP on 192.0.2.202:1111
2015-11-16T12:23:17.617733Z app[app.host0-f60b7881-bca7-45dc-833c-d96527178557]: 2015/11/16 12:23:17 [INFO] raft: Node at 192.0.2.200:1110 [Follower] entering Follower state
2015-11-16T12:23:17.617878Z app[app.host0-f60b7881-bca7-45dc-833c-d96527178557]: 2015/11/16 12:23:17 discoverd listening for HTTP on 192.0.2.200:1111
2015-11-16T12:23:18.279985Z app[app.host2-9df8ed40-2591-48e1-aba4-5e54a9399599]: 2015/11/16 12:23:18 [WARN] raft: Heartbeat timeout reached, starting election
2015-11-16T12:23:18.280053Z app[app.host2-9df8ed40-2591-48e1-aba4-5e54a9399599]: 2015/11/16 12:23:18 [INFO] raft: Node at 192.0.2.202:1110 [Candidate] entering Candidate state
2015-11-16T12:23:18.350474Z app[app.host0
default = "default"
[[cluster]]
Name = "default"
Key = "e58aee407ce6ffb8992703a95a7b824b"
TLSPin = "EnQtOwTJL4spiC/5qywh94CkNJIa9KFclVGTwiL5VJI="
ControllerURL = "https://controller.3.localflynn.com"
GitURL = "https://git.3.localflynn.com"
253 <0>1 2016-01-24T19:17:09.469188Z host0 bfdcde4b-ac74-4fc8-8352-24d516514e15 scheduler.host0-633892dd-bbb4-4b9f-98ae-fd2a617d8566 ID3 [flynn seq="308"] t=2016-01-24T19:17:09+0000 lvl=info msg="registering RPC server" app=containerinit fn=containerInitApp
252 <0>1 2016-01-24T19:17:09.4692998Z host0 bfdcde4b-ac74-4fc8-8352-24d516514e15 scheduler.host0-633892dd-bbb4-4b9f-98ae-fd2a617d8566 ID3 [flynn seq="309"] t=2016-01-24T19:17:09+0000 lvl=info msg="creating stdout pipe" app=containerinit fn=containerInitApp
252 <0>1 2016-01-24T19:17:09.4693121Z host0 bfdcde4b-ac74-4fc8-8352-24d516514e15 scheduler.host0-633892dd-bbb4-4b9f-98ae-fd2a617d8566 ID3 [flynn seq="310"] t=2016-01-24T19:17:09+0000 lvl=info msg="creating stderr pipe" app=containerinit fn=containerInitApp
253 <0>1 2016-01-24T19:17:09.4693196Z host0 bfdcde4b-ac74-4fc8-8352-24d516514e15 scheduler.host0-633892dd-bbb4-4b9f-98ae-fd2a617d8566 ID3 [flynn seq="311"] t=2016-01-24T19:17:09+0000 lvl=info msg="waiting to be resumed" app=containerinit fn=containerIn
t=2016-01-27T18:42:53+0000 lvl=info msg="creating cluster and controller clients" component=scheduler fn=main
t=2016-01-27T18:42:53+0000 lvl=info msg="started scheduler" component=scheduler fn=main backoffPeriod=10m0s
t=2016-01-27T18:42:53+0000 lvl=info msg="starting scheduler loop" component=scheduler fn=Run
t=2016-01-27T18:42:53+0000 lvl=info msg="connecting host event stream" component=scheduler fn=streamHostEvents
t=2016-01-27T18:42:53+0000 lvl=info msg="serving HTTP requests" component=scheduler fn=startHTTPServer addr=:5000
t=2016-01-27T18:42:53+0000 lvl=info msg="handling host event" component=scheduler fn=HandleHostEvent event.type=up
t=2016-01-27T18:42:53+0000 lvl=info msg="host is up, starting job event stream" component=scheduler fn=handleNewHost host.id=host0
t=2016-01-27T18:42:53+0000 lvl=info msg="connecting job event stream" component=scheduler fn=StreamEventsTo host.id=host0
t=2016-01-27T18:42:53+0000 lvl=info msg="getting active jobs" component=scheduler fn=StreamEventsTo host.id=host0
t=2016
package xlog
type Position string
type XLog interface {
// Returns the zero position for this xlog
Zero() Position
// Increment increments an xlog position by the given number.
// Returns the new position of the xlog.
Increment(Position, int) (Position, error)