Skip to content

Instantly share code, notes, and snippets.

@nateware
Created May 11, 2014 19:51
Show Gist options
  • Save nateware/10810079cd95f40e00e4 to your computer and use it in GitHub Desktop.
Save nateware/10810079cd95f40e00e4 to your computer and use it in GitHub Desktop.
unhappy orchard
$ orchard hosts create
Orchard username: nateware
Password:
Default host running at 107.170.120.216
$ orchard docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ orchard docker run ubuntu echo hello world
2014/05/11 12:43:27 Unrecognized input header
Docker exited with error
$ orchard docker run ubuntu echo 'hello world'
2014/05/11 12:43:37 Error: start: Cannot start container 3d28d80fb34ca32668a73232c3b629f09c2ba2f8f3d143b31c8049f3448d7202: exit status 1
Docker exited with error
$ orchard docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ orchard docker run ubuntu echo 'hello world'
2014/05/11 12:43:46 Unrecognized input header
Docker exited with error
$ orchard docker run ubuntu /bin/bash
$ orchard docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ orchard docker run ubuntu -i /bin/bash
2014/05/11 12:44:25 Unrecognized input header
Docker exited with error
$ orchard docker ps -s
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES SIZE
panic: accept unix /tmp/orchard-431340783/orchard.sock: use of closed network connection
goroutine 8 [running]:
runtime.panic(0x2df640, 0xc2100c5c00)
/usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/panic.c:266 +0xb6
github.com/orchardup/go-orchard/proxy.(*Proxy).Start(0xc2102603a0)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/proxy/proxy.go:41 +0x10f
created by github.com/orchardup/go-orchard/commands.WithDockerProxy
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/commands/commands.go:328 +0x4ee
goroutine 1 [runnable]:
syscall.Syscall(0x89, 0xc2101c9580, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/syscall/asm_darwin_amd64.s:36 +0x61
syscall.Rmdir(0xc2100534e0, 0x16, 0x0, 0x0)
/usr/local/Cellar/go/1.2/libexec/src/pkg/syscall/zsyscall_darwin_amd64.go:973 +0x8d
os.Remove(0xc2100534e0, 0x16, 0xb, 0x22901)
/usr/local/Cellar/go/1.2/libexec/src/pkg/os/file_unix.go:244 +0x7a
os.RemoveAll(0xc2100534e0, 0x16, 0x33dff0, 0x8)
/usr/local/Cellar/go/1.2/libexec/src/pkg/os/path.go:68 +0x3f
github.com/orchardup/go-orchard/commands.WithDockerProxy(0xc21001eb70, 0x2a, 0x327380, 0x7, 0x7d7e20, ...)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/commands/commands.go:340 +0x19c
github.com/orchardup/go-orchard/commands.RunDocker(0x66bfa0, 0xc21000a020, 0x2, 0x2, 0x0, ...)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/commands/commands.go:278 +0x7b
main.main()
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/main.go:33 +0x384
goroutine 3 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.2/libexec/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/usr/local/Cellar/go/1.2/libexec/src/pkg/os/signal/signal_unix.go:27 +0x31
goroutine 5 [syscall]:
runtime.goexit()
/usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/proc.c:1394
goroutine 6 [IO wait]:
net.runtime_pollWait(0x7985f8, 0x72, 0x0)
/usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc2100473e0, 0x72, 0x797098, 0x23)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc2100473e0, 0x23, 0x797098)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210047380, 0xc2102b0800, 0x800, 0x800, 0x0, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210000230, 0xc2102b0800, 0x800, 0x800, 0x0, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/net.go:122 +0xc5
crypto/tls.(*block).readFromUntil(0xc21001ef90, 0x798750, 0xc210000230, 0x5, 0xc210000230, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/crypto/tls/conn.go:459 +0xb6
crypto/tls.(*Conn).readRecord(0xc210060500, 0x17, 0x0, 0x8)
/usr/local/Cellar/go/1.2/libexec/src/pkg/crypto/tls/conn.go:539 +0x107
crypto/tls.(*Conn).Read(0xc210060500, 0xc2102ad000, 0x1000, 0x1000, 0x0, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/crypto/tls/conn.go:897 +0x135
bufio.(*Reader).fill(0xc2101d28a0)
/usr/local/Cellar/go/1.2/libexec/src/pkg/bufio/bufio.go:91 +0x110
bufio.(*Reader).Peek(0xc2101d28a0, 0x1, 0x0, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/bufio/bufio.go:119 +0xcb
net/http.(*persistConn).readLoop(0xc210068380)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/http/transport.go:687 +0xb7
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/http/transport.go:528 +0x607
goroutine 7 [select]:
net/http.(*persistConn).writeLoop(0xc210068380)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/http/transport.go:791 +0x271
created by net/http.(*Transport).dialConn
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/http/transport.go:529 +0x61e
goroutine 9 [chan receive]:
github.com/orchardup/go-orchard/proxy.(*Proxy).ForwardConnection(0xc2102603a0, 0x7af758, 0xc2101567d0)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/proxy/proxy.go:65 +0x2c5
created by github.com/orchardup/go-orchard/proxy.(*Proxy).Start
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/proxy/proxy.go:43 +0x13a
goroutine 11 [IO wait]:
net.runtime_pollWait(0x798400, 0x72, 0x0)
/usr/local/Cellar/go/1.2/libexec/src/pkg/runtime/netpoll.goc:116 +0x6a
net.(*pollDesc).Wait(0xc210385760, 0x72, 0x797098, 0x23)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_poll_runtime.go:81 +0x34
net.(*pollDesc).WaitRead(0xc210385760, 0x23, 0x797098)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_poll_runtime.go:86 +0x30
net.(*netFD).Read(0xc210385700, 0xc21025cc00, 0x400, 0x400, 0x0, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/fd_unix.go:204 +0x2a0
net.(*conn).Read(0xc210156808, 0xc21025cc00, 0x400, 0x400, 0x107611, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/net/net.go:122 +0xc5
github.com/orchardup/go-orchard/vendor/crypto/tls.(*block).readFromUntil(0xc210261e40, 0x798750, 0xc210156808, 0x5, 0xc210156808, ...)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/vendor/crypto/tls/conn.go:460 +0xb6
github.com/orchardup/go-orchard/vendor/crypto/tls.(*Conn).readRecord(0xc210391000, 0x17, 0x0, 0x0)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/vendor/crypto/tls/conn.go:540 +0x107
github.com/orchardup/go-orchard/vendor/crypto/tls.(*Conn).Read(0xc210391000, 0xc210333000, 0x8000, 0x8000, 0x0, ...)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/vendor/crypto/tls/conn.go:900 +0x135
io.Copy(0x7afee0, 0xc2101567d0, 0x7aff08, 0xc210391000, 0x76, ...)
/usr/local/Cellar/go/1.2/libexec/src/pkg/io/io.go:352 +0x1c8
github.com/orchardup/go-orchard/proxy.Copy(0x7af758, 0xc2101567d0, 0x7afde0, 0xc210391000, 0xc2100c3f00)
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/proxy/proxy.go:69 +0x9b
created by github.com/orchardup/go-orchard/proxy.(*Proxy).ForwardConnection
/Users/aanand/work/orchard/go/src/github.com/orchardup/go-orchard/proxy/proxy.go:63 +0x295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment