TheNewNormal/corectl

Can not start the "Corectl server".

Closed this issue · 3 comments

I had a working kube-solo with corectl in 10.11. I formatted my hard drive and did a clean install of macOS Sierra and downloaded kube-solo and corectl. During the startup process I just get the message 'Can not start the "Corectl server".'

I see nothing in Console.app relating to this. I've tried installing corectl through homebrew and running it with sudo from the command line and it complains that the etcd service isn't running.

~/.c/i/stable ❯❯❯ sudo corectld start --user cwisecarver
Password:
2016-12-08 19:21:52.520538 I | etcdserver: name = corectld.coreos.local
2016-12-08 19:21:52.520641 I | etcdserver: data dir = /Users/cwisecarver/.coreos/embedded.etcd
2016-12-08 19:21:52.520650 I | etcdserver: member dir = /Users/cwisecarver/.coreos/embedded.etcd/member
2016-12-08 19:21:52.520656 I | etcdserver: heartbeat = 100ms
2016-12-08 19:21:52.520661 I | etcdserver: election = 1000ms
2016-12-08 19:21:52.520666 I | etcdserver: snapshot count = 10000
2016-12-08 19:21:52.520680 I | etcdserver: advertise client URLs = http://localhost:2379
2016-12-08 19:21:52.535844 I | etcdserver: restarting member fcf2ad36debdd5bb in cluster 7f055ae3b0912328 at commit index 117
2016-12-08 19:21:52.535919 I | raft: fcf2ad36debdd5bb became follower at term 19
2016-12-08 19:21:52.535943 I | raft: newRaft fcf2ad36debdd5bb [peers: [], term: 19, commit: 117, applied: 0, lastindex: 117, lastterm: 19]
2016-12-08 19:21:57.542914 I | etcdserver: starting server... [version: 3.1.0-rc.0+git, cluster version: to_be_decided]
2016-12-08 19:21:57.543237 E | etcdserver: cannot monitor file descriptor usage (cannot get FDUsage on darwin)
2016-12-08 19:21:57.544099 I | etcdserver/membership: added member fcf2ad36debdd5bb [http://0.0.0.0:2380] to cluster 7f055ae3b0912328
2016-12-08 19:21:57.544269 N | etcdserver/membership: set the initial cluster version to 3.1
2016-12-08 19:21:57.544325 I | etcdserver/api: enabled capabilities for version 3.1
2016-12-08 19:21:57.739950 I | raft: fcf2ad36debdd5bb is starting a new election at term 19
2016-12-08 19:21:57.740021 I | raft: fcf2ad36debdd5bb became candidate at term 20
2016-12-08 19:21:57.740035 I | raft: fcf2ad36debdd5bb received MsgVoteResp from fcf2ad36debdd5bb at term 20
2016-12-08 19:21:57.740049 I | raft: fcf2ad36debdd5bb became leader at term 20
2016-12-08 19:21:57.740056 I | raft: raft.node: fcf2ad36debdd5bb elected leader fcf2ad36debdd5bb at term 20
2016-12-08 19:21:57.748619 I | etcdserver: published {Name:corectld.coreos.local ClientURLs:[http://localhost:2379]} to cluster 7f055ae3b0912328
---> starting embedded name server
2016-12-08 19:21:59.545383 I | etcdserver: skipped leadership transfer for single member cluster
[ERROR] client: etcd cluster is unavailable or misconfigured; error #0: client: endpoint http://localhost:2379 exceeded header timeout

Trying to "up" kube-solo gives an error that corectld isn't running during the setup phase.

I've deleted my ~/.coreos, ~/.helmc, and ~/kube-solo folders and the apps in Applications at least three times and reinstalled them from a newly downloaded disk image. I've looked for preferences for each app in ~/Application Support to delete those too but found none. I've also tried without corectl being installed through homebrew and with it being installed.

Any ideas?

I don't believe I do.

~ ❯❯❯ ps aux | grep etc
_assetcache     16616   0.0  0.1  2497120  13060   ??  Ss    6:07PM   0:00.13 /System/Library/PrivateFrameworks/AssetCacheServices.framework/XPCServices/AssetCacheLocatorService.xpc/Contents/MacOS/AssetCacheLocatorService -d
root              194   0.0  0.0  2473040   5948   ??  Ss    4:26PM   0:00.47 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift
cwisecarver     81510   0.0  0.0  2432804   2004 s007  S+    7:35PM   0:00.00 grep etc
~ ❯❯❯

Thanks for your quick response!

@AntonioMeireles I figured it out.

I had commented out the localhost entry in /etc/hosts for ipv6 because of unrelated problems.

127.0.0.1       localhost
255.255.255.255 broadcasthost
#::1             localhost

Removed the pound sign in from of ::1 localhost and corectl works again..., closing, but just FYI.