This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x38 pc=0x409e3a] | |
goroutine 138 [running]: | |
runtime.panic(0x6d1fe0, 0xa80b68) | |
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6 | |
main.(*Host).StopJob(0xc210068020, 0xc2101761e0, 0x20, 0xa8ef10, 0x0, ...) | |
/home/ubuntu/pkgs/src/github.com/flynn/flynn-host/rpc.go:45 +0x19a | |
reflect.Value.call(0x6a6480, 0x6f7270, 0x130, 0x730ae0, 0x4, ...) | |
/usr/local/go/src/pkg/reflect/value.go:474 +0xe0b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014/07/01 01:01:25 rpc: client protocol error: unexpected EOF | |
2014/07/01 01:01:25 rpc: client protocol error: unexpected EOF | |
now=2014-07-01T01:01:25+0000 app=controller-scheduler fn=remove app.id=bb38d24085394c30b10b031ca465df56 release.id=23de27c4fd404f878745a796f66580a9 host.id=e43f447edc9d job.id=e01b047d18f24e24acf5ed78920be56e | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x40 pc=0x4070a1] | |
goroutine 101 [running]: | |
runtime.panic(0x6c2440, 0xa63b28) | |
/usr/local/go/src/pkg/runtime/panic.c:266 +0xb6 | |
main.(*Formation).remove(0xc2100f4000, 0x5, 0xc2100f5290, 0x3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
IP_ADDR=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') | |
# kill running flynn-host, if any | |
host=$(docker ps | grep flynn-host | cut -d" " -f 1) | |
if [ -n "$host" ]; then | |
docker kill $host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -k -u ":7b0ba33fdb5dd2529d29acb6e3769b2b" https://localhost:55002/keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu ~ $ docker ps --no-trunc | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
944f309ee86f436b807b1d52fc2819da74579208e9f172125f75ddacd1641e1d flynn/gitreceive:latest /bin/start-flynn-receive /bin/sh -c '#(nop) ADD file:919fba03a57a3b0cf3a3585e1e680e0e29b40ee897a1a899afc7bdfe0cd3358d in /bin/start-flynn-receive' 3 minutes ago Up 3 minutes 0.0.0.0:55006->55006/tcp flynn-6a9b63a53ef943e9b14afb98f4f83a7e | |
0f36ef85d0f902179cefcbfd8ea326237678de7250c270541fd143fdb0b53daa flynn/strowger:latest /bin/strowger -httpaddr :80 -httpsaddr :443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[martini] Started POST /apps | |
[martini] Completed 200 OK in 3.801062ms | |
[martini] Started POST /artifacts | |
[martini] Completed 200 OK in 2.718246ms | |
[martini] Started POST /releases | |
[martini] Completed 200 OK in 2.380915ms | |
[martini] Started POST /providers | |
[martini] Completed 200 OK in 2.94494ms | |
[martini] Started PUT /providers/588ba0c8126f4419859510c7abd820b8/resources/ddd9578785ad4243b2a49ecc55e463aa | |
[martini] Completed 200 OK in 4.091674ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu ~/src/flynn-controller $ make | |
godep go build -o build/flynn-controller | |
# _/home/ubuntu/src/flynn-controller | |
./formation.go:160: unknown types.ExpandedFormation field 'UpdatedAt' in struct literal | |
godep: go exit status 2 | |
make: *** [build/flynn-controller] Error 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -e PORT=1111 -e PORT_0=1111 -e EXTERNAL_IP=<IP> -e SD_HOST=<IP> -e DISCOVERD= -e HOME=/ -e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" flynn/discoverd -bind=:1111 -etcd=http://<IP>:4001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jun 29 21:39:06 ip-10-164-164-19 kernel: [344635.361435] Out of memory: Kill process 12442 (postgres) score 9 or sacrifice child | |
Jun 29 21:39:06 ip-10-164-164-19 kernel: [344635.361443] Killed process 12442 (postgres) total-vm:265288kB, anon-rss:3088kB, file-rss:138268kB | |
Jun 29 21:39:08 ip-10-164-164-19 kernel: [344636.728292] docker0: port 3(veth06e3) entered disabled state | |
Jun 29 21:39:08 ip-10-164-164-19 kernel: [344636.728859] device veth06e3 left promiscuous mode | |
Jun 29 21:39:08 ip-10-164-164-19 kernel: [344636.728866] docker0: port 3(veth06e3) entered disabled state | |
Jun 29 21:39:51 ip-10-164-164-19 kernel: [344680.060292] docker0: port 7(veth0796) entered disabled state | |
Jun 29 21:39:51 ip-10-164-164-19 kernel: [344680.060931] device veth0796 left promiscuous mode | |
Jun 29 21:39:51 ip-10-164-164-19 kernel: [344680.060939] docker0: port 7(veth0796) entered disabled state | |
Jun 29 21:41:33 ip-10-164-164-19 kernel: [344782.156284] docker0: port 8(veth1d08) entered disabled state | |
Jun 29 21:41:33 ip-10-164-164-19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
@description: | |
Logs in a user by their username or email. Optionally, you can specify | |
a remember boolean to signify that you want to keep the session open | |
for a longer period of time. | |
@resource_url: https://clusterflunk.com/api/1/login | |
@param: username | |
@type: string |