Created
March 23, 2019 20:04
-
-
Save ffrank/0928cb844fb5f9a04d80a0acac04bbe0 to your computer and use it in GitHub Desktop.
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
$ ./mgmt run --client-urls http://86.231.179.14:2379 --server-urls http://86.231.179.14:2380 --advertise-client-urls http://86.231.179.14:2379 --advertise-server-urls http://86.231.179.14:2380 --hostname h1 --ideal-cluster-size 1 --tmp-prefix --no-pgp lang --lang examples/lang/exchange0.mcl | |
2019-03-23 21:00:07.434141 I | cli: lang: lexing/parsing... | |
2019-03-23 21:00:07.443839 I | cli: lang: init... | |
2019-03-23 21:00:07.443925 I | cli: lang: interpolating... | |
2019-03-23 21:00:07.444012 I | cli: lang: building scope... | |
2019-03-23 21:00:07.444084 I | cli: lang: running type unification... | |
2019-03-23 21:00:07.444518 I | cli: lang: input: examples/lang/exchange0.mcl | |
2019-03-23 21:00:07.444566 I | cli: lang: tree: | |
. | |
├── exchange0.mcl | |
└── metadata.yaml | |
21:00:07 hello.go:49: this is: mgmt, version: 0.0.17-57-g17bbadf-dirty | |
21:00:07 hello.go:50: main: start: 1553371207444624903 | |
21:00:07 main.go:192: main: warning: working prefix directory is temporary! | |
21:00:07 main.go:192: main: working prefix is: /tmp/mgmt-h1-217806659 | |
21:00:07 main.go:192: main: etcd: seeds: no seeds specified! | |
21:00:07 etcd.go:446: Etcd: Bootstrapping... | |
21:00:07 etcd.go:1483: Etcd: Nominated: h1=http://86.231.179.14:2380 | |
21:00:07 etcd.go:1498: Etcd: StartServer(newCluster: true): h1=http://86.231.179.14:2380 | |
21:00:07 etcd.go:1773: Etcd: StartServer: Starting server... | |
21:00:07 etcd.go:361: Etcd: Connect: Endpoints: [] | |
21:00:07 etcd.go:375: Etcd: Connect: CtxError... | |
21:00:07 etcd.go:655: Etcd: CtxError: Reason: CtxDelayErr(1s): No endpoints available yet! | |
21:00:08 etcd.go:1780: Etcd: StartServer: Done starting server! | |
21:00:08 etcd.go:1798: Etcd: StartServer: Server running... | |
21:00:08 etcd.go:1521: Etcd: Addresses are: http://localhost:2379 | |
21:00:08 etcd.go:359: Etcd: Connect: Endpoints: h1=http://localhost:2379 | |
21:00:08 etcd.go:1845: Etcd: ApplyDeltaEvents: Event(PUT): h1 | |
21:00:08 etcd.go:1483: Etcd: Nominated: h1=http://86.231.179.14:2380 | |
21:00:08 etcd.go:466: Etcd: Startup: Volunteering... | |
21:00:08 etcd.go:1689: Etcd: Ideal cluster size is now: 1 | |
21:00:08 etcd.go:1033: Etcd: Set(/_mgmt/idealClusterSize): &{cluster_id:4053399070952304541 member_id:11883720917534354354 revision:4 raft_term:2 <nil>} | |
21:00:08 etcd.go:1283: Etcd: Members: List: [h1] | |
21:00:08 etcd.go:1306: Etcd: Leader: h1 | |
21:00:08 etcd.go:1325: Etcd: Volunteers: [h1] | |
21:00:08 etcd.go:1329: Etcd: Quitters: [] | |
21:00:08 etcd.go:1341: Etcd: Candidates: [] | |
21:00:08 etcd.go:1283: Etcd: Members: List: [h1] | |
21:00:08 etcd.go:1306: Etcd: Leader: h1 | |
21:00:08 etcd.go:1325: Etcd: Volunteers: [h1] | |
21:00:08 etcd.go:1329: Etcd: Quitters: [] | |
21:00:08 etcd.go:1341: Etcd: Candidates: [] | |
21:00:09 main.go:192: main: waiting... | |
21:00:09 main.go:192: main: running... | |
... |
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
$ ./mgmt run --seeds http://86.21.179.14:2379 --hostname h2 --client-urls http://127.0.0.1:2381 --server-urls http://127.0.0.1:2382 --tmp-prefix --no-pgp lang --lang examples/lang/exchange0.mcl | |
2019-03-23 21:00:42.547985 I | cli: lang: lexing/parsing... | |
2019-03-23 21:00:42.557270 I | cli: lang: init... | |
2019-03-23 21:00:42.557355 I | cli: lang: interpolating... | |
2019-03-23 21:00:42.557446 I | cli: lang: building scope... | |
2019-03-23 21:00:42.557521 I | cli: lang: running type unification... | |
2019-03-23 21:00:42.558026 I | cli: lang: input: examples/lang/exchange0.mcl | |
2019-03-23 21:00:42.558076 I | cli: lang: tree: | |
. | |
├── exchange0.mcl | |
└── metadata.yaml | |
21:00:42 hello.go:49: this is: mgmt, version: 0.0.17-57-g17bbadf-dirty | |
21:00:42 hello.go:50: main: start: 1553371242558165160 | |
21:00:42 main.go:192: main: warning: working prefix directory is temporary! | |
21:00:42 main.go:192: main: working prefix is: /tmp/mgmt-h2-717792969 | |
21:00:42 main.go:192: main: etcd: seeds(1): http://86.21.179.14:2379 | |
21:00:42 etcd.go:419: Etcd: Startup: Getting initial values... | |
21:00:42 etcd.go:359: Etcd: Connect: Endpoints: _seed=http://86.21.179.14:2379 | |
21:00:47 etcd.go:375: Etcd: Connect: CtxError... | |
21:00:47 etcd.go:748: Etcd: CtxError: DeadlineExceeded(context.deadlineExceededError): context deadline exceeded | |
21:00:47 etcd.go:756: Etcd: CtxError: Unknown error(context.deadlineExceededError): context deadline exceeded | |
21:00:48 etcd.go:377: Etcd: Connect: CtxError: Fatal: unknown CtxError | |
21:00:48 etcd.go:401: Etcd: Startup: Error: unknown CtxError |
(Although you'd think it would work with ideal-cluster-size = 1... Hmmm)
I'd also check the firewall. And if you still have issues, I'd have to look because this worked for me. Rewrite of this code is landing shortly anyways :/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will not work because if you look at the second process:
client-urls http://127.0.0.1:2381 --server-urls http://127.0.0.1:2382
That is where the first one will look! You need it to specify advertise as well, or have those be on the same network as first. So instead run:
$ ./mgmt run --client-urls http://86.231.179.99:2379 --server-urls http://86.231.179.99:2380 --advertise-client-urls http://86.231.179.99:2379 --advertise-server-urls http://86.231.179.99:2380 --hostname h2 --tmp-prefix --no-pgp lang --lang examples/lang/exchange0.mcl
Note I changed hostname to h2 and removed ideal cluster size.