CockrachDB simply does not start with code 255

cockroach start --background --insecure --host=185.x.y.z --join=185.x.y.t:26257

Error: exit status 255
Failed running “start”

I get this error.
I see no other in logs

I also tried --verbosity 4 or 5, nothing outputed

Can you advise, what is problem ?

thanks.

Which version of CockroachDB are you running, and on what platform? You’re looking at the logs in ./cockroach-data/logs, right? Try running without --background and with --logtostderr to get more detail about what’s going on.

I have the same problem when I start a new node join the cluster
here is the log:

I170511 15:47:24.609961 1 cli/start.go:575 CockroachDB CCL v1.0 (linux amd64, built 2017/05/10 13:19:57, go1.8.1)
I170511 15:47:24.711167 8 cli/start.go:338 starting cockroach node
W170511 15:47:24.718123 8 gossip/gossip.go:1189 [n?] no incoming or outgoing connections
I170511 15:47:24.718934 8 storage/engine/rocksdb.go:380 opening rocksdb instance at "/cockroach/cockroach-data"
I170511 15:47:24.736039 14 gossip/client.go:131 [n?] started gossip client to 192.168.1.205:26257
F170511 15:47:24.736885 66 server/server.go:168 [n?] fewer than half the known nodes are within the maximum offset of 500ms (0 of 1)
goroutine 66 [running]:
github.com/cockroachdb/cockroach/pkg/util/log.getStacks(0x0, 0x2bebfb2f, 0x2c014e0, 0x10)
/go/src/github.com/cockroachdb/cockroach/pkg/util/log/clog.go:858 +0xa7
github.com/cockroachdb/cockroach/pkg/util/log.(*loggingT).outputLogEntry(0x2c02cc0, 0xc400000004, 0x24c4521, 0x10, 0xa8, 0xc4200101e0, 0x54)
/go/src/github.com/cockroachdb/cockroach/pkg/util/log/clog.go:724 +0x591
github.com/cockroachdb/cockroach/pkg/util/log.addStructured(0x7f5e699ed8e8, 0xc42018db90, 0x4, 0x2, 0x0, 0x0, 0xc420a0fcf8, 0x1, 0x1)
/go/src/github.com/cockroachdb/cockroach/pkg/util/log/structured.go:158 +0x4b3
github.com/cockroachdb/cockroach/pkg/util/log.logDepth(0x7f5e699ed8e8, 0xc42018db90, 0x1, 0x4, 0x0, 0x0, 0xc420a0fcf8, 0x1, 0x1)
/go/src/github.com/cockroachdb/cockroach/pkg/util/log/log.go:68 +0x8c
github.com/cockroachdb/cockroach/pkg/util/log.Fatal(0x7f5e699ed8e8, 0xc42018db90, 0xc420a0fcf8, 0x1, 0x1)
/go/src/github.com/cockroachdb/cockroach/pkg/util/log/log.go:171 +0x76
github.com/cockroachdb/cockroach/pkg/server.NewServer.func1()
/go/src/github.com/cockroachdb/cockroach/pkg/server/server.go:168 +0xba
github.com/cockroachdb/cockroach/pkg/rpc.(*Context).runHeartbeat(0xc420629c20, 0xc420358380, 0xc4201fc2a0, 0x13, 0x0, 0x0)
/go/src/github.com/cockroachdb/cockroach/pkg/rpc/context.go:415 +0x55a
github.com/cockroachdb/cockroach/pkg/rpc.(*Context).GRPCDial.func1.2.1(0x7f5e699ed8e8, 0xc420419020)
/go/src/github.com/cockroachdb/cockroach/pkg/rpc/context.go:297 +0x6b
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunWorker.func1(0xc420410750, 0xc42062b680, 0xc420418fc0)
/go/src/github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:215 +0xf7
created by github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunWorker
/go/src/github.com/cockroachdb/cockroach/pkg/util/stop/stopper.go:216 +0xad
E170511 15:47:24.864687 1 cli/error.go:68 exit status 255
Error: exit status 255
Failed running “start”

Hey @jackysc,

Sorry to hear about that. One line in that log output that looks interesting to me is:
fewer than half the known nodes are within the maximum offset of 500ms (0 of 1)

Is there any chance your nodes’ clocks aren’t don’t match?

“fewer than half the known nodes are within the maximum offset of 500ms (0 of 1)”

I have been struggling with this a bit as well. After setting up a test 3 node cockroachdb cluster I restarted the nodes and then cam eacross this problem. I configured ntpd but this didn’t get it working. I then enabled ntpdate, which is depreciated, but that seemed to do the trick. I’m on Red Hat Enterprise Linux Server release 7.3 and cockroachdb version…

Build Tag: v1.0-rc.2
Build Time: 2017/05/05 13:55:11
Distribution: CCL
Platform: linux amd64
Go Version: go1.8.1
C Compiler: gcc 6.3.0
Build SHA-1: 1700211837c3e519bf093f8cda26fe2afb028ff3
Build Type: release

thank you ! I start the ntp server , it`s works