tillberg / gut

Realtime bidirectional folder synchronization
ISC License
321 stars 23 forks source link

Crash on startup #19

Open hari-rangarajan opened 7 years ago

hari-rangarajan commented 7 years ago

[localhost:sync] Starting gut-sync between /home/hari/work and hari@100.1x.xx.xx[39m:~/work/. [localhost:daemon] fatal: Uh oh. Your system reports no Gut commands at all. [:init] warning: templates not found /home/ubuntu/.guts/gut-build/share/gut-core/templates [:init] Initialized empty Gut repository in /home/hari/work/.gut/ [:fetch] Fetching changes to 100.xx.x.x.... [1] Error on reverse-tunnel dial: dial tcp 127.0.0.1:34754: getsockopt: connection refused panic: runtime error: invalid memory address or nil pointer dereference [signal 0xb code=0x1 addr=0x20 pc=0x4ee651]

goroutine 405 [running]: io.copyBuffer(0x7f05f59b2c90, 0xc8204f0000, 0x0, 0x0, 0xc8204fc000, 0x8000, 0x8000, 0x0, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:381 +0x241 io.Copy(0x7f05f59b2c90, 0xc8204f0000, 0x0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:351 +0x64 github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1.1.1(0x7f05f40ee4f8, 0xc8204f0000, 0x0, 0x0, 0xc8201bc4d0, 0xc8204a6fc0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:492 +0xc9 created by github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1.1 /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:497 +0x23f

goroutine 1 [chan receive]: main.Sync.func2() /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:175 +0x51 main.Sync(0xc82000f650, 0xc8200340d0, 0x1, 0x1, 0x0, 0x0) /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:318 +0x1188 main.main() /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:709 +0x13f0

goroutine 17 [syscall, locked to thread]: runtime.goexit() /home/ubuntu/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 5 [syscall]: os/signal.loop() /home/ubuntu/go/src/os/signal/signal_unix.go:22 +0x18 created by os/signal.init.1 /home/ubuntu/go/src/os/signal/signal_unix.go:28 +0x37

goroutine 6 [select, locked to thread]: runtime.gopark(0x7f24e0, 0xc820032728, 0x7655b8, 0x6, 0x44e618, 0x2) /home/ubuntu/go/src/runtime/proc.go:185 +0x163 runtime.selectgoImpl(0xc820032728, 0x0, 0x18) /home/ubuntu/go/src/runtime/select.go:392 +0xa64 runtime.selectgo(0xc820032728) /home/ubuntu/go/src/runtime/select.go:212 +0x12 runtime.ensureSigM.func1() /home/ubuntu/go/src/runtime/signal1_unix.go:227 +0x353 runtime.goexit() /home/ubuntu/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 7 [chan receive]: main.main.func1(0xc8200146c0) /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:635 +0x36 created by main.main /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:637 +0xd9b

goroutine 402 [select]: github.com/tillberg/bismuth.callClosers(0xc8203fb200) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 400 [chan receive]: github.com/tillberg/bismuth.SessionBuffer.func1(0x7f05f40ee2b0, 0xc8203fd440, 0xc8203fb620, 0xc8203fb680) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:651 +0x153 created by github.com/tillberg/bismuth.(*ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:562 +0x223

goroutine 35 [select]: github.com/tillberg/bismuth.callClosers(0xc8200de900) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 95 [select]: github.com/tillberg/bismuth.callClosers(0xc820015260) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 69 [chan receive]: golang.org/x/crypto/ssh.(*Client).handleGlobalRequests(0xc8201c7340, 0xc820144f60) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:137 +0x4a created by golang.org/x/crypto/ssh.NewClient /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:54 +0xe4

goroutine 118 [select]: github.com/tillberg/bismuth.callClosers(0xc8201452c0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 26 [select]: github.com/tillberg/bismuth.callClosers(0xc8200de120) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 70 [chan receive]: golang.org/x/crypto/ssh.(*Client).handleChannelOpens(0xc8201c7340, 0xc820144ea0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:146 +0x6e created by golang.org/x/crypto/ssh.NewClient /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:55 +0x110

goroutine 319 [select]: github.com/tillberg/bismuth.callClosers(0xc820446780) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 34 [select]: github.com/tillberg/bismuth.callClosers(0xc8200de4e0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 55 [select]: github.com/tillberg/bismuth.callClosers(0xc820144120) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 312 [select]: github.com/tillberg/bismuth.callClosers(0xc820446420) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 63 [select]: github.com/tillberg/bismuth.callClosers(0xc8200ded20) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 13 [select]: github.com/tillberg/bismuth.callClosers(0xc820190060) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 56 [select]: github.com/tillberg/bismuth.callClosers(0xc820144480) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 108 [select]: github.com/tillberg/bismuth.callClosers(0xc820191e60) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 382 [select]: github.com/tillberg/bismuth.callClosers(0xc820447ce0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 11 [select]: github.com/tillberg/bismuth.callClosers(0xc8200df0e0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 68 [runnable]: golang.org/x/crypto/ssh.(handshakeTransport).readPacket(0xc82001a1e0, 0x0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/handshake.go:124 +0x6d golang.org/x/crypto/ssh.(mux).onePacket(0xc82016f110, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/mux.go:224 +0x5e golang.org/x/crypto/ssh.(*mux).loop(0xc82016f110) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/mux.go:199 +0x42 created by golang.org/x/crypto/ssh.newMux /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/mux.go:128 +0x20d

goroutine 12 [runnable]: syscall.Syscall(0x0, 0x5, 0xc8201a2000, 0x1000, 0xffffffffffffffff, 0x0, 0xb) /home/ubuntu/go/src/syscall/asm_linux_amd64.s:18 +0x5 syscall.read(0x5, 0xc8201a2000, 0x1000, 0x1000, 0x72, 0x0, 0x0) /home/ubuntu/go/src/syscall/zsyscall_linux_amd64.go:783 +0x5f syscall.Read(0x5, 0xc8201a2000, 0x1000, 0x1000, 0xed0345181, 0x0, 0x0) /home/ubuntu/go/src/syscall/syscall_unix.go:160 +0x4d net.(netFD).Read(0xc8200c6460, 0xc8201a2000, 0x1000, 0x1000, 0x0, 0x0, 0x0) /home/ubuntu/go/src/net/fd_unix.go:228 +0x18b net.(conn).Read(0xc820160000, 0xc8201a2000, 0x1000, 0x1000, 0x0, 0x0, 0x0) /home/ubuntu/go/src/net/net.go:172 +0xe4 github.com/tillberg/bismuth.(Conn).Read(0xc82015c040, 0xc8201a2000, 0x1000, 0x1000, 0xd3e4b27d465a22fc, 0x0, 0x0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:95 +0x1ac bufio.(Reader).fill(0xc820015020) /home/ubuntu/go/src/bufio/bufio.go:97 +0x1e9 bufio.(Reader).Read(0xc820015020, 0xc82017c920, 0x5, 0x5, 0x20, 0x0, 0x0) /home/ubuntu/go/src/bufio/bufio.go:207 +0x260 io.ReadAtLeast(0x7f05f59b2978, 0xc820015020, 0xc82017c920, 0x5, 0x5, 0x5, 0x0, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:298 +0xe6 io.ReadFull(0x7f05f59b2978, 0xc820015020, 0xc82017c920, 0x5, 0x5, 0xc820319900, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:316 +0x62 golang.org/x/crypto/ssh.(streamPacketCipher).readPacket(0xc82017c900, 0xc8000000c2, 0x7f05f59b2978, 0xc820015020, 0x0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/cipher.go:142 +0xc1 golang.org/x/crypto/ssh.(connectionState).readPacket(0xc820094c60, 0xc820015020, 0x0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/transport.go:111 +0xce golang.org/x/crypto/ssh.(transport).readPacket(0xc820094c60, 0x0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/transport.go:107 +0x55 golang.org/x/crypto/ssh.(handshakeTransport).readOnePacket(0xc82001a1e0, 0x0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/handshake.go:153 +0xe7 golang.org/x/crypto/ssh.(handshakeTransport).readLoop(0xc82001a1e0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/handshake.go:133 +0x25 created by golang.org/x/crypto/ssh.newClientTransport /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/handshake.go:101 +0x31b

goroutine 419 [chan receive]: golang.org/x/crypto/ssh.(Session).Wait(0xc8204d4120, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:380 +0x14a github.com/tillberg/bismuth.(SshSession).Wait(0xc8203fd440, 0x7f1dd0, 0x0, 0x0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:139 +0x36 github.com/tillberg/bismuth.(ExecContext).StartCmd.func1(0xc8200a7600, 0xc8200c80b0, 0x7f05f40ee2b0, 0xc8203fd440, 0xc820034278) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:530 +0xc1 created by github.com/tillberg/bismuth.(ExecContext).StartCmd /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:543 +0x394

goroutine 313 [select]: github.com/tillberg/bismuth.callClosers(0xc82020f140) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 94 [select]: github.com/tillberg/bismuth.callClosers(0xc8201903c0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 146 [select]: github.com/tillberg/bismuth.callClosers(0xc820145bc0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 401 [chan receive]: github.com/tillberg/bismuth.(ExecContext).SessionQuoteOut.func1(0x7f05f40ee2b0, 0xc8203fd440, 0xc8203fb620, 0xc8203fb680) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:594 +0x115 created by github.com/tillberg/bismuth.(ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:562 +0x223

goroutine 117 [select]: github.com/tillberg/bismuth.callClosers(0xc820190840) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45

goroutine 71 [semacquire]: sync.runtime_Syncsemacquire(0xc8201c7310) /home/ubuntu/go/src/runtime/sema.go:237 +0x201 sync.(Cond).Wait(0xc8201c7300) /home/ubuntu/go/src/sync/cond.go:62 +0x9b golang.org/x/crypto/ssh.(mux).Wait(0xc82016f110, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/mux.go:110 +0xb8 golang.org/x/crypto/ssh.NewClient.func1(0xc8201c7340) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:57 +0x39 created by golang.org/x/crypto/ssh.NewClient /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:59 +0x132

goroutine 72 [chan receive]: golang.org/x/crypto/ssh.(*forwardList).handleChannels(0xc8201c7350, 0xc820144fc0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/tcpip.go:178 +0x6e created by golang.org/x/crypto/ssh.NewClient /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/client.go:60 +0x18f

goroutine 73 [chan receive]: github.com/tillberg/bismuth.(ExecContext).reconnect.func1(0xc8201c7340, 0xc8200c80b0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:154 +0x88 created by github.com/tillberg/bismuth.(ExecContext).reconnect /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:165 +0x7fd

goroutine 134 [select]: github.com/tillberg/bismuth.callClosers(0xc820145620) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 151 [chan receive]: main.Sync.func4.1(0xc82020ecc0, 0xc82020eba0, 0xc82000f6b0) /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:194 +0x36 created by main.Sync.func4 /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:197 +0xd8

goroutine 397 [chan receive]: golang.org/x/crypto/ssh.(*Session).wait(0xc8204d4120, 0xc8204a6de0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:400 +0xb4 golang.org/x/crypto/ssh.newSession.func1(0xc8204d4120, 0xc8204a6de0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:558 +0x2b created by golang.org/x/crypto/ssh.newSession /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:559 +0xde

goroutine 181 [select]: github.com/tillberg/bismuth.callClosers(0xc820191260) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 283 [select]: github.com/tillberg/bismuth.callClosers(0xc820446f60) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 164 [select]: github.com/tillberg/bismuth.callClosers(0xc820190ea0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45

goroutine 406 [semacquire]: sync.runtime_Syncsemacquire(0xc820467590) /home/ubuntu/go/src/runtime/sema.go:237 +0x201 sync.(Cond).Wait(0xc820467580) /home/ubuntu/go/src/sync/cond.go:62 +0x9b golang.org/x/crypto/ssh.(buffer).Read(0xc8204651a0, 0xc8204f4000, 0x8000, 0x8000, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/buffer.go:95 +0x339 golang.org/x/crypto/ssh.(channel).ReadExtended(0xc8201d2600, 0xc8204f4000, 0x8000, 0x8000, 0xc800000000, 0x73e0d8, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/channel.go:349 +0x7a golang.org/x/crypto/ssh.(channel).Read(0xc8201d2600, 0xc8204f4000, 0x8000, 0x8000, 0x73e060, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/channel.go:526 +0x86 golang.org/x/crypto/ssh.(*tcpChanConn).Read(0xc8204f0000, 0xc8204f4000, 0x8000, 0x8000, 0x8000, 0x0, 0x0)

:257 +0x80 io.copyBuffer(0x0, 0x0, 0x7f05f40ee5d0, 0xc8204f0000, 0xc8204f4000, 0x8000, 0x8000, 0x0, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:381 +0x247 io.Copy(0x0, 0x0, 0x7f05f40ee5d0, 0xc8204f0000, 0xc8204f0000, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:351 +0x64 github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1.1.2(0x0, 0x0, 0x7f05f40ee4f8, 0xc8204f0000, 0xc8201bc4d0, 0xc8204a6fc0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:500 +0xc9 created by github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1.1 /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:505 +0x29c goroutine 324 [select]: github.com/tillberg/bismuth.callClosers(0xc82020f500) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 150 [chan receive]: golang.org/x/crypto/ssh.(*tcpListener).Accept(0xc820159bc0, 0x0, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/tcpip.go:255 +0x8b github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1(0xc82013bb00, 0xc82016a0f0, 0xc82013bad0, 0xf, 0xc8201bc4d0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:477 +0x3a created by github.com/tillberg/bismuth.ExecContext.ReverseTunnel /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:510 +0x3cd goroutine 279 [select]: github.com/tillberg/bismuth.callClosers(0xc82020fc20) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 145 [select]: github.com/tillberg/bismuth.callClosers(0xc820145f80) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 176 [chan receive]: main.(*SyncContext).StartReverseTunnel.func1(0xc82000f6b0, 0xc82013bad0, 0xf, 0xc82013bad0, 0xf, 0xc82013baf0, 0xc82020ec60, 0xc82016a0e8) /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:71 +0x1f0 created by main.(*SyncContext).StartReverseTunnel /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:122 +0x103 goroutine 403 [chan receive]: golang.org/x/crypto/ssh.DiscardRequests(0xc8204a6ea0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/connection.go:81 +0x4a created by golang.org/x/crypto/ssh.(*tcpListener).Accept /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/tcpip.go:263 +0x18a goroutine 107 [select]: github.com/tillberg/bismuth.callClosers(0xc820191a40) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 173 [select]: github.com/tillberg/bismuth.callClosers(0xc82020e7e0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 205 [chan send]: github.com/tillberg/bismuth.(*ExecContext).StartSession.func2(0xc8201952d0, 0xc82024ab70, 0xc8201601a0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:574 +0x85 created by github.com/tillberg/bismuth.(*ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:575 +0x398 goroutine 197 [select]: github.com/tillberg/bismuth.callClosers(0xc820015ce0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 418 [chan receive]: github.com/tillberg/bismuth.(*ExecContext).SessionQuoteErr.func1(0x7f05f40ee2b0, 0xc8203fd440, 0xc8203fb620, 0xc8203fb680) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:605 +0x115 created by github.com/tillberg/bismuth.(*ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:562 +0x223 goroutine 211 [select]: github.com/tillberg/bismuth.callClosers(0xc820015920) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 301 [select]: github.com/tillberg/bismuth.callClosers(0xc820446060) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 177 [select]: github.com/tillberg/bismuth.callClosers(0xc8203fa060) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 293 [chan receive]: github.com/tillberg/bismuth.(*ExecContext).ExecSession(0xc8200c80b0, 0xc820457e30, 0x5, 0x5, 0xf, 0x0, 0x0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:584 +0xac github.com/tillberg/bismuth.(*ExecContext).QuoteCwdBuf(0xc8200c80b0, 0x764070, 0x5, 0xc820459140, 0xf, 0xc820467380, 0x4, 0x4, 0x0, 0x0, ...) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:724 +0x26a main.(*SyncContext).GutQuoteBuf(0xc82000f6b0, 0x764070, 0x5, 0xc820051e90, 0x3, 0x3, 0x0, 0x0, 0x0, 0x0, ...) /home/ubuntu/work/go/src/github.com/tillberg/gut/sync_context.go:159 +0x14c main.(*SyncContext).GutFetch(0xc82000f6b0, 0x0, 0x0) /home/ubuntu/work/go/src/github.com/tillberg/gut/gut_cmd.go:141 +0x22e main.(*SyncContext).GutPull(0xc82000f6b0, 0x0, 0x0) /home/ubuntu/work/go/src/github.com/tillberg/gut/gut_cmd.go:149 +0x2f main.Sync.func8(0xc82000f6b0) /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:312 +0xea main.Sync.func1.1(0xc820420d50, 0xc82000f6b0, 0xc82020ec00) /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:169 +0x26 created by main.Sync.func1 /home/ubuntu/work/go/src/github.com/tillberg/gut/shell.go:171 +0x55 goroutine 224 [select]: github.com/tillberg/bismuth.callClosers(0xc8203e61e0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 225 [select]: github.com/tillberg/bismuth.callClosers(0xc8203e6f00) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 246 [select]: github.com/tillberg/bismuth.callClosers(0xc8203e7080) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 228 [select]: github.com/tillberg/bismuth.callClosers(0xc8203e6600) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 420 [chan receive]: github.com/tillberg/bismuth.(*ExecContext).StartSession.func2(0xc8200c7a40, 0xc82049c360, 0xc82016a220) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:572 +0x40 created by github.com/tillberg/bismuth.(*ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:575 +0x398 goroutine 234 [select]: github.com/tillberg/bismuth.callClosers(0xc8203e6a20) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 274 [select]: github.com/tillberg/bismuth.callClosers(0xc82020ee40) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 291 [select]: github.com/tillberg/bismuth.callClosers(0xc8200dfaa0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 268 [select]: github.com/tillberg/bismuth.callClosers(0xc8203e7500) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 399 [chan receive]: github.com/tillberg/bismuth.SessionArgs.func1(0x7f05f40ee2b0, 0xc8203fd440, 0xc8203fb620, 0xc8203fb680) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:623 +0x9d created by github.com/tillberg/bismuth.(*ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:562 +0x223 goroutine 352 [select]: github.com/tillberg/bismuth.callClosers(0xc8204473e0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 278 [select]: github.com/tillberg/bismuth.callClosers(0xc82020f8c0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*LocalSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:218 +0x45 goroutine 404 [chan receive]: github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1.1(0x7f05f40ee4f8, 0xc8204f0000, 0xc82013bad0, 0xf, 0xc8201bc4d0) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:506 +0x2bf created by github.com/tillberg/bismuth.ExecContext.ReverseTunnel.func1 /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:508 +0xea goroutine 398 [chan receive]: github.com/tillberg/bismuth.SessionCwd.func1(0x7f05f40ee2b0, 0xc8203fd440, 0xc8203fb620, 0xc8203fb680) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:632 +0x9d created by github.com/tillberg/bismuth.(*ExecContext).StartSession /home/ubuntu/work/go/src/github.com/tillberg/bismuth/bismuth.go:562 +0x223 goroutine 372 [select]: github.com/tillberg/bismuth.callClosers(0xc82020ff80) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 436 [semacquire]: sync.runtime_Syncsemacquire(0xc820467450) /home/ubuntu/go/src/runtime/sema.go:237 +0x201 sync.(*Cond).Wait(0xc820467440) /home/ubuntu/go/src/sync/cond.go:62 +0x9b golang.org/x/crypto/ssh.(*buffer).Read(0xc820465140, 0xc8204e0000, 0x8000, 0x8000, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/buffer.go:95 +0x339 golang.org/x/crypto/ssh.(*channel).ReadExtended(0xc8201d2540, 0xc8204e0000, 0x8000, 0x8000, 0x1, 0xc8204e0000, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/channel.go:347 +0x161 golang.org/x/crypto/ssh.(*extChannel).Read(0xc820472eb0, 0xc8204e0000, 0x8000, 0x8000, 0x6, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/channel.go:486 +0x57 io.copyBuffer(0x7f05f40ee340, 0xc8203fb8c0, 0x7f05f59b2af0, 0xc820472eb0, 0xc8204e0000, 0x8000, 0x8000, 0x6, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:381 +0x247 io.Copy(0x7f05f40ee340, 0xc8203fb8c0, 0x7f05f59b2af0, 0xc820472eb0, 0xc820472eb0, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:351 +0x64 golang.org/x/crypto/ssh.(*Session).stderr.func1(0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:489 +0xbc golang.org/x/crypto/ssh.(*Session).start.func1(0xc8204d4120, 0xc820472ea0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:361 +0x1d created by golang.org/x/crypto/ssh.(*Session).start /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:362 +0x1e1 goroutine 365 [select]: github.com/tillberg/bismuth.callClosers(0xc8204a6360) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:151 +0x45 goroutine 435 [semacquire]: sync.runtime_Syncsemacquire(0xc820467410) /home/ubuntu/go/src/runtime/sema.go:237 +0x201 sync.(*Cond).Wait(0xc820467400) /home/ubuntu/go/src/sync/cond.go:62 +0x9b golang.org/x/crypto/ssh.(*buffer).Read(0xc820465100, 0xc8204e8000, 0x8000, 0x8000, 0x0, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/buffer.go:95 +0x339 golang.org/x/crypto/ssh.(*channel).ReadExtended(0xc8201d2540, 0xc8204e8000, 0x8000, 0x8000, 0x0, 0x8000, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/channel.go:349 +0x7a golang.org/x/crypto/ssh.(*channel).Read(0xc8201d2540, 0xc8204e8000, 0x8000, 0x8000, 0x8000, 0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/channel.go:526 +0x86 io.copyBuffer(0x7f05f412a238, 0xc8200a7400, 0x7f05f40ee368, 0xc8201d2540, 0xc8204e8000, 0x8000, 0x8000, 0x0, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:381 +0x247 io.Copy(0x7f05f412a238, 0xc8200a7400, 0x7f05f40ee368, 0xc8201d2540, 0xc8201d2540, 0x0, 0x0) /home/ubuntu/go/src/io/io.go:351 +0x64 golang.org/x/crypto/ssh.(*Session).stdout.func1(0x0, 0x0) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:476 +0x95 golang.org/x/crypto/ssh.(*Session).start.func1(0xc8204d4120, 0xc820472e80) /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:361 +0x1d created by golang.org/x/crypto/ssh.(*Session).start /home/ubuntu/work/go/src/golang.org/x/crypto/ssh/session.go:362 +0x1e1 goroutine 366 [select]: github.com/tillberg/bismuth.callClosers(0xc8203fae40) /home/ubuntu/work/go/src/github.com/tillberg/bismuth/session.go:89 +0x112 created by github.com/tillberg/bismuth.(*SshSession).Close /
hari-rangarajan commented 7 years ago

I tried running local sync. There seems to be an issue with connecting to the local host. Error message is not descriptive though.

[localhost:sync] Starting gut-sync between /home/hari/mywork and /home/hari/backup/mywork. [localhost:daemon] fatal: Uh oh. Your system reports no Gut commands at all. [localhost:init] warning: templates not found /home/ubuntu/.guts/gut-build/share/gut-core/templates [localhost:init] Initialized empty Gut repository in /home/hari/backup/mywork/.gut/ [localhost:fetch] Fetching changes to localhost... [localhost:fetch] fatal: unable to connect to localhost: [localhost:fetch] localhost[0: 127.0.0.1]: errno=Connection refused [localhost:fetch] [localhost:merge] Merging changes to localhost... [localhost:merge] merge: origin/master - not something we can merge [localhost] inotifywait started, watching localhost:/home/hari/mywork. [localhost] inotifywait started, watching localhost:/home/hari/backup/mywork. [localhost:commit] Checking localhost for changes (scope=.)... [localhost:commit] Checking localhost for changes (scope=.)... [localhost:commit] On branch master [localhost:commit] [localhost:commit] Initial commit [localhost:commit] [localhost:commit] nothing to commit [localhost:commit] On branch master [localhost:commit] nothing to commit, working directory clean [localhost:commit] No changes. [localhost:commit] No changes. [localhost:fetch] Fetching changes to localhost... [localhost:fetch] fatal: unable to connect to localhost: [localhost:fetch] localhost[0: 127.0.0.1]: errno=Connection refused [localhost:fetch] [localhost:merge] Merging changes to localhost... [localhost:merge] merge: origin/master - not something we can merge ^CReceived SIGINT. Stopping all subprocesses...