Syncthing exited: exit status 2

trying to run syncthing on ubuntu server on OVH intel atom dedicated server installed using the DigitalOcean tutorial and it was working fine when first installed, restarted the server and when i went to look at the web interface most of the time i would get not available and then on a rare occasion it actually loaded up it would only be up for 30 od seconds then say there was a connection error.

i ssh’d into the box and stopped syncthing then opened it in the session so i could see what it was doing and it was starting, then stopping then starting again, and i have no idea why.

[code]created by github.com/syncthing/syncthing/internal/model.deadlockDetect /go/src/github.com/syncthing/syncthing/internal/model/util.go:35 +0xb8

goroutine 19 [sleep]: github.com/syncthing/syncthing/internal/model.func·031() /go/src/github.com/syncthing/syncthing/internal/model/util.go:17 +0x57 created by github.com/syncthing/syncthing/internal/model.deadlockDetect /go/src/github.com/syncthing/syncthing/internal/model/util.go:35 +0xb8

goroutine 20 [select]: github.com/thejerf/suture.(*Supervisor).Serve(0x194c4000) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:411 +0xcfe main.(*folderSummarySvc).Serve(0x18aa1220) /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:41 +0x219 created by main.startGUI /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:187 +0x130b

goroutine 21 [IO wait]: net.(*pollDesc).Wait(0x195b6fb8, 0x72, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:84 +0x42 net.(*pollDesc).WaitRead(0x195b6fb8, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:89 +0x40 net.(*netFD).accept(0x195b6f80, 0x0, 0xf76e3eb8, 0x18afe010) /usr/local/go/src/net/fd_unix.go:419 +0x34f net.(*TCPListener).AcceptTCP(0x18b28360, 0x0, 0x0, 0x0) /usr/local/go/src/net/tcpsock_posix.go:234 +0x48 net.(*TCPListener).Accept(0x18b28360, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/tcpsock_posix.go:244 +0x48 main.(*DowngradingListener).Accept(0x18b030e0, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/cmd/syncthing/tls.go:99 +0x61 net/http.(*Server).Serve(0x1946e480, 0xf76f3ca0, 0x18b030e0, 0x0, 0x0) /usr/local/go/src/net/http/server.go:1728 +0x7b main.func·001() /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:190 +0x58 created by main.startGUI /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:194 +0x1379

goroutine 33 [select]: main.(*folderSummarySvc).listenForUpdates(0x18aa1220) /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:61 +0x471 main.*folderSummarySvc.(main.listenForUpdates)·fm() /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:33 +0x27 main.serviceFunc.Serve(0x18a0a3b8) /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:189 +0x21 github.com/thejerf/suture.func·007() /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:516 +0xc2 created by github.com/thejerf/suture.(*Supervisor).runService /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:519 +0xe7

goroutine 34 [select]: main.(*folderSummarySvc).calculateSummaries(0x18aa1220) /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:105 +0x26b main.*folderSummarySvc.(main.calculateSummaries)·fm() /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:34 +0x27 main.serviceFunc.Serve(0x18a0a3d0) /go/src/github.com/syncthing/syncthing/cmd/syncthing/summarysvc.go:189 +0x21 github.com/thejerf/suture.func·007() /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:516 +0xc2 created by github.com/thejerf/suture.(*Supervisor).runService /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/thejerf/suture/suture.go:519 +0xe7

goroutine 22 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0x18b0a390, 0x61714000, 0x68c) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:153 +0x192 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0xb4

goroutine 23 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0x18b0b230, 0x61714000, 0x68c) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:153 +0x192 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0xb4

goroutine 24 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0x18b22900, 0x61714000, 0x68c) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:153 +0x192 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0xb4

goroutine 25 [select]: github.com/syncthing/syncthing/internal/ignore.(*Matcher).clean(0x18b00900, 0x61714000, 0x68c) /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:153 +0x192 created by github.com/syncthing/syncthing/internal/ignore.New /go/src/github.com/syncthing/syncthing/internal/ignore/ignore.go:53 +0xb4

goroutine 26 [IO wait]: net.(*pollDesc).Wait(0x1a3f6638, 0x72, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:84 +0x42 net.(*pollDesc).WaitRead(0x1a3f6638, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:89 +0x40 net.(*netFD).readFrom(0x1a3f6600, 0x193de000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0xf76e3eb8, 0x1a3c606c) /usr/local/go/src/net/fd_unix.go:269 +0x34f net.(*UDPConn).ReadFromUDP(0x18a0a6c8, 0x193de000, 0x10000, 0x10000, 0x83fd440, 0x0, 0x0, 0x0) /usr/local/go/src/net/udpsock_posix.go:67 +0xd3 net.(*UDPConn).ReadFrom(0x18a0a6c8, 0x193de000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/udpsock_posix.go:82 +0xe1 github.com/syncthing/syncthing/internal/beacon.genericReader(0x18a0a6c8, 0x1a3f6700) /go/src/github.com/syncthing/syncthing/internal/beacon/beacon.go:24 +0x8e created by github.com/syncthing/syncthing/internal/beacon.NewBroadcast /go/src/github.com/syncthing/syncthing/internal/beacon/broadcast.go:30 +0x178

goroutine 27 [chan receive]: github.com/syncthing/syncthing/internal/beacon.(*Broadcast).writer(0x18b02300) /go/src/github.com/syncthing/syncthing/internal/beacon/broadcast.go:46 +0x74 created by github.com/syncthing/syncthing/internal/beacon.NewBroadcast /go/src/github.com/syncthing/syncthing/internal/beacon/broadcast.go:31 +0x18d

goroutine 28 [chan receive]: github.com/syncthing/syncthing/internal/beacon.(*Broadcast).Recv(0x18b02300, 0x0, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/internal/beacon/broadcast.go:41 +0x6e github.com/syncthing/syncthing/internal/discover.(*Discoverer).recvAnnouncements(0x18aaa6c0, 0xf76fdcb8, 0x18b02300) /go/src/github.com/syncthing/syncthing/internal/discover/discover.go:307 +0x47 created by github.com/syncthing/syncthing/internal/discover.(*Discoverer).StartLocal /go/src/github.com/syncthing/syncthing/internal/discover/discover.go:76 +0x71c

goroutine 29 [IO wait]: net.(*pollDesc).Wait(0x1a3f6778, 0x72, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:84 +0x42 net.(*pollDesc).WaitRead(0x1a3f6778, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:89 +0x40 net.(*netFD).readFrom(0x1a3f6740, 0x1945e000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0xf76e3eb8, 0x18b02388) /usr/local/go/src/net/fd_unix.go:269 +0x34f net.(*UDPConn).ReadFromUDP(0x18a0a6d0, 0x1945e000, 0x10000, 0x10000, 0x83fd440, 0x0, 0x0, 0x0) /usr/local/go/src/net/udpsock_posix.go:67 +0xd3 net.(*UDPConn).ReadFrom(0x18a0a6d0, 0x1945e000, 0x10000, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/udpsock_posix.go:82 +0xe1 github.com/syncthing/syncthing/internal/beacon.genericReader(0x18a0a6d0, 0x1a3f6880) /go/src/github.com/syncthing/syncthing/internal/beacon/beacon.go:24 +0x8e created by github.com/syncthing/syncthing/internal/beacon.NewMulticast /go/src/github.com/syncthing/syncthing/internal/beacon/multicast.go:34 +0x1c4

goroutine 30 [chan receive]: github.com/syncthing/syncthing/internal/beacon.(*Multicast).writer(0x18b02320) /go/src/github.com/syncthing/syncthing/internal/beacon/multicast.go:50 +0x74 created by github.com/syncthing/syncthing/internal/beacon.NewMulticast /go/src/github.com/syncthing/syncthing/internal/beacon/multicast.go:35 +0x1d9

goroutine 31 [chan receive]: github.com/syncthing/syncthing/internal/beacon.(*Multicast).Recv(0x18b02320, 0x0, 0x0, 0x0, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/internal/beacon/multicast.go:45 +0x6e github.com/syncthing/syncthing/internal/discover.(*Discoverer).recvAnnouncements(0x18aaa6c0, 0xf76fdcf0, 0x18b02320) /go/src/github.com/syncthing/syncthing/internal/discover/discover.go:307 +0x47 created by github.com/syncthing/syncthing/internal/discover.(*Discoverer).StartLocal /go/src/github.com/syncthing/syncthing/internal/discover/discover.go:89 +0x629

goroutine 32 [select]: github.com/syncthing/syncthing/internal/discover.(*Discoverer).sendLocalAnnouncements(0x18aaa6c0) /go/src/github.com/syncthing/syncthing/internal/discover/discover.go:298 +0x21b created by github.com/syncthing/syncthing/internal/discover.(*Discoverer).StartLocal /go/src/github.com/syncthing/syncthing/internal/discover/discover.go:99 +0x56f

goroutine 52 [select]: github.com/syncthing/syncthing/internal/discover.(*UDPClient).broadcast(0x18b2c150, 0x19914700, 0x38, 0x80) /go/src/github.com/syncthing/syncthing/internal/discover/client_udp.go:115 +0xabc created by github.com/syncthing/syncthing/internal/discover.(*UDPClient).Start /go/src/github.com/syncthing/syncthing/internal/discover/client_udp.go:79 +0x385

goroutine 53 [runnable]: regexp/syntax.(*parser).maybeConcat(0x18b0ab40, 0xffffffff, 0x8810000, 0x88448401) /usr/local/go/src/regexp/syntax/parse.go:152 regexp/syntax.(*parser).push(0x18b0ab40, 0x1a3f6ec0, 0x1) /usr/local/go/src/regexp/syntax/parse.go:136 +0x420 regexp/syntax.(*parser).concat(0x18b0ab40, 0x1a3f6e40) /usr/local/go/src/regexp/syntax/parse.go:313 +0x189 regexp/syntax.(*parser).parseRightParen(0x18b0ab40, 0x0, 0x0) /usr/local/go/src/regexp/syntax/parse.go:1197 +0x38 regexp/syntax.Parse(0x84ea1a8, 0x6, 0x1a3d00d4, 0x4, 0x0, 0x0) /usr/local/go/src/regexp/syntax/parse.go:741 +0x4c1 regexp.compile(0x84ea1a8, 0x6, 0x1a0000d4, 0xd, 0x0, 0x0) /usr/local/go/src/regexp/regexp.go:153 +0x4a regexp.Compile(0x84ea1a8, 0x6, 0xe, 0x0, 0x0) /usr/local/go/src/regexp/regexp.go:118 +0x4c regexp.MustCompile(0x84ea1a8, 0x6, 0xe) /usr/local/go/src/regexp/regexp.go:219 +0x30 github.com/syncthing/protocol.chunkify(0x1a3f6d80, 0x38, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syncthing/protocol/deviceid.go:147 +0x3d github.com/syncthing/protocol.DeviceID.String(0xb31bd3f2, 0x4ae79f37, 0x69f0b201, 0x6df7c88, 0xbaceb115, 0x78871b02, 0xcc439b97, 0xbcdc6a17, 0x0, 0x0) /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syncthing/protocol/deviceid.go:55 +0x100 main.listenConnect(0xd02ad234, 0x3a4442c, 0xda163e32, 0xca050d9c, 0xa3ec04a9, 0x4e445c5e, 0x2326adb7, 0xc4e5cb13, 0x18a0d130, 0x18aea320) /go/src/github.com/syncthing/syncthing/cmd/syncthing/connections.go:120 +0x1073 created by main.syncthingMain /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:546 +0x1dc5

goroutine 51 [select]: github.com/syncthing/syncthing/internal/discover.(*UDPClient).broadcast(0x18b2c0e0, 0x19914680, 0x38, 0x80) /go/src/github.com/syncthing/syncthing/internal/discover/client_udp.go:115 +0xabc created by github.com/syncthing/syncthing/internal/discover.(*UDPClient).Start /go/src/github.com/syncthing/syncthing/internal/discover/client_udp.go:79 +0x385

goroutine 81 [IO wait]: net.(*pollDesc).Wait(0x1a20e438, 0x72, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:84 +0x42 net.(*pollDesc).WaitRead(0x1a20e438, 0x0, 0x0) /usr/local/go/src/net/fd_poll_runtime.go:89 +0x40 net.(*netFD).accept(0x1a20e400, 0x0, 0xf76e3eb8, 0x1a3c6074) /usr/local/go/src/net/fd_unix.go:419 +0x34f net.(*TCPListener).AcceptTCP(0x18b28168, 0xf76ea280, 0x0, 0x0) /usr/local/go/src/net/tcpsock_posix.go:234 +0x48 net.(*TCPListener).Accept(0x18b28168, 0x0, 0x0, 0x0, 0x0) /usr/local/go/src/net/tcpsock_posix.go:244 +0x48 main.listenTLS(0x1a20e3c0, 0x18aff2b0, 0xd, 0x18aea320) /go/src/github.com/syncthing/syncthing/cmd/syncthing/connections.go:158 +0x374 created by main.listenConnect /go/src/github.com/syncthing/syncthing/cmd/syncthing/connections.go:27 +0x117

goroutine 82 [sleep]: main.dialTLS(0x18a0d130, 0x1a20e3c0, 0x18aea320) /go/src/github.com/syncthing/syncthing/cmd/syncthing/connections.go:256 +0x163 created by main.listenConnect /go/src/github.com/syncthing/syncthing/cmd/syncthing/connections.go:31 +0x15f

goroutine 37 [sleep]: net.func·019() /usr/local/go/src/net/dnsclient_unix.go:240 +0x54 created by net.loadConfig /usr/local/go/src/net/dnsclient_unix.go:269 +0x1aa

goroutine 54 [select]: github.com/syncthing/syncthing/internal/model.(*rwFolder).Serve(0x18a5c180) /go/src/github.com/syncthing/syncthing/internal/model/rwfolder.go:132 +0x1846 created by github.com/syncthing/syncthing/internal/model.(*Model).StartFolderRW /go/src/github.com/syncthing/syncthing/internal/model/model.go:163 +0x507

goroutine 55 [select]: github.com/syncthing/syncthing/internal/model.(*rwFolder).Serve(0x18a5c1e0) /go/src/github.com/syncthing/syncthing/internal/model/rwfolder.go:132 +0x1846 created by github.com/syncthing/syncthing/internal/model.(*Model).StartFolderRW /go/src/github.com/syncthing/syncthing/internal/model/model.go:163 +0x507

goroutine 56 [select]: github.com/syncthing/syncthing/internal/model.(*rwFolder).Serve(0x18a5c240) /go/src/github.com/syncthing/syncthing/internal/model/rwfolder.go:132 +0x1846 created by github.com/syncthing/syncthing/internal/model.(*Model).StartFolderRW /go/src/github.com/syncthing/syncthing/internal/model/model.go:163 +0x507

goroutine 57 [select]: github.com/syncthing/syncthing/internal/model.(*rwFolder).Serve(0x18a5c2a0) /go/src/github.com/syncthing/syncthing/internal/model/rwfolder.go:132 +0x1846 created by github.com/syncthing/syncthing/internal/model.(*Model).StartFolderRW /go/src/github.com/syncthing/syncthing/internal/model/model.go:163 +0x507

goroutine 38 [sleep]: main.standbyMonitor() /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:936 +0x64 created by main.syncthingMain /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:600 +0x2817

goroutine 39 [sleep]: main.generatePingEvents() /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:699 +0x30 created by main.syncthingMain /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:614 +0x28a4

goroutine 102 [runnable]: github.com/syncthing/protocol.(*nativeModel).Close(0x1995c028, 0xb31bd3f2, 0x4ae79f37, 0x69f0b201, 0x6df7c88, 0xbaceb115, 0x78871b02, 0xcc439b97, 0xbcdc6a17, 0x0, …) :95 created by github.com/syncthing/protocol.func·002 /go/src/github.com/syncthing/syncthing/Godeps/_workspace/src/github.com/syncthing/protocol/protocol.go:664 +0x173 [monitor] 23:30:10 INFO: Syncthing exited: exit status 2 [monitor] 23:30:11 INFO: Starting syncthing ^C[monitor] 23:30:15 INFO: Signal 2 received; exiting [/code]

You need to provide a bigger chunk of the log, and possibly some data of how many files you have, what’s the total size of all folders, etc.

i logged my putty session for you. i was going threw anonymising the file and noticed my username is spelt wrong search for “USERNAME(SPELTWRONG)” for the instances in the attached log file

Right, it seems you are running an old beta with a bug that has been fixed. Also, are you sure you are running on 32 bits and not 64 bits?

the os is 64bit but i was unable to get the 64bit version of syncthing to run so i tried the 32bit version ant it was fine.

i have gone threw and and installed the latest 64bit version using the below command and it seems to have fixed the problem.

cd ~ wget https://github.com/syncthing/syncthing/releases/download/v0.10.30/syncthing-linux-386-v0.10.30.tar.gz tar xzvf syncthing*.tar.gz cd syncthing* sudo cp syncthing /usr/local/bin cd ~ rm -rf syncthing* syncthing

That’s still the 32 bit build though, as it has 386 in the name.

well, regardlless it seems to be working.