2016-09-28 77 views
1

我對DCOS很陌生。我正在休耕中https://github.com/dcos/dcos-vagrant/blob/master/docs/deploy.md 在安裝時我得到錯誤的指示,同時運行安裝DCOS「vagrant up m1 a1 boot」時出錯

無業遊民了M1 A1啓動

我使用

vagrant version 1.8.4 
Virtual box version 5.0.20 
windows 7 , 8G RAM 

和錯誤

<pre>==> m1:  Sep 28 08:48:37 m1.dcos systemd[1]: Starting Navstar: A distribute 
d systems & network overlay orchestration engine... 
==> m1:  Sep 28 08:48:37 m1.dcos check-time[12001]: Time is marked as bad 
==> m1:  Sep 28 08:48:37 m1.dcos systemd[1]: dcos-navstar.service: control 
process exited, code=exited status=1 
==> m1:  Sep 28 08:48:37 m1.dcos systemd[1]: Failed to start Navstar: A dis 
tributed systems & network overlay orchestration engine. 
==> m1:  Sep 28 08:48:37 m1.dcos systemd[1]: Unit dcos-navstar.service ente 
red failed state. 
==> m1:  Sep 28 08:48:37 m1.dcos systemd[1]: dcos-navstar.service failed. 
==> m1: 
==> m1:  time="2016-09-28T08:48:37-07:00" level=fatal msg="Found unhealthy 
systemd units" 
The following SSH command responded with a non-zero exit status. 
Vagrant assumes that this means the command failed! 

dcos-postflight 

Stdout from the command: 



Stderr from the command: 

DC/OS Unhealthy\ntime="2016-09-28T08:48:37-07:00" level=info msg="/opt/mesospher 
e/etc/endpoints_config.json not found" 
time="2016-09-28T08:48:37-07:00" level=info msg="Command /opt/mesosphere/bin/det 
ect_ip executed successfully, PID 12011" 
[dcos-metronome.service]: DC/OS Metronome unit dcos-metronome.service has never 
entered `active` state 
-- Logs begin at Wed 2016-09-28 08:22:53 PDT, end at Wed 2016-09-28 08:48:37 PDT 
. -- 
Sep 28 08:46:22 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:46:22 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:46:37 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:46:37 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:46:37 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:46:37 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:46:37 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:46:37 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:46:52 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:46:52 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:46:52 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:46:52 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:46:52 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:46:52 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:47:07 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:47:07 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:47:07 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:47:07 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:47:07 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:47:07 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:47:23 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:47:23 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:47:23 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:47:23 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:47:23 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:47:23 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:47:38 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:47:38 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:47:38 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:47:38 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:47:38 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:47:38 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:47:53 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:47:53 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:47:53 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:47:53 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:47:53 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:47:53 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:48:08 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:08 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:48:08 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:08 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:48:08 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:48:08 m1.dcos systemd[1]: dcos-metronome.service failed. 
Sep 28 08:48:23 m1.dcos systemd[1]: dcos-metronome.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:23 m1.dcos systemd[1]: Starting Jobs Service: DC/OS Metronome... 
Sep 28 08:48:23 m1.dcos systemd[1]: dcos-metronome.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:23 m1.dcos systemd[1]: Failed to start Jobs Service: DC/OS Metronom 
e. 
Sep 28 08:48:23 m1.dcos systemd[1]: Unit dcos-metronome.service entered failed s 
tate. 
Sep 28 08:48:23 m1.dcos systemd[1]: dcos-metronome.service failed. 

[dcos-minuteman.service]: DC/OS Layer 4 Load Balancing Service unit dcos-minutem 
an.service has never entered `active` state 
-- Logs begin at Wed 2016-09-28 08:22:53 PDT, end at Wed 2016-09-28 08:48:37 PDT 
. -- 
Sep 28 08:48:00 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:06 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:06 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:06 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:06 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:06 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:06 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:06 m1.dcos check-time[11810]: Time is marked as bad 
Sep 28 08:48:11 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:11 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:11 m1.dcos check-time[11837]: Time is marked as bad 
Sep 28 08:48:11 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:11 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:11 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:11 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:16 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:16 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:16 m1.dcos check-time[11869]: Time is marked as bad 
Sep 28 08:48:16 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:16 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:16 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:16 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:21 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:21 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:21 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:21 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:21 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:21 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:21 m1.dcos check-time[11898]: Time is marked as bad 
Sep 28 08:48:26 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:26 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:26 m1.dcos check-time[11928]: Time is marked as bad 
Sep 28 08:48:26 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:26 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:26 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:26 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:31 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:31 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:31 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:31 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:31 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:31 m1.dcos systemd[1]: dcos-minuteman.service failed. 
Sep 28 08:48:31 m1.dcos check-time[11962]: Time is marked as bad 
Sep 28 08:48:37 m1.dcos systemd[1]: dcos-minuteman.service holdoff time over, sc 
heduling restart. 
Sep 28 08:48:37 m1.dcos systemd[1]: Starting Layer 4 Load Balancer: DC/OS Layer 
4 Load Balancing Service... 
Sep 28 08:48:37 m1.dcos check-time[12002]: Time is marked as bad 
Sep 28 08:48:37 m1.dcos systemd[1]: dcos-minuteman.service: control process exit 
ed, code=exited status=1 
Sep 28 08:48:37 m1.dcos systemd[1]: Failed to start Layer 4 Load Balancer: DC/OS 
Layer 4 Load Balancing Service. 
Sep 28 08:48:37 m1.dcos systemd[1]: Unit dcos-minuteman.service entered failed s 
tate. 
Sep 28 08:48:37 m1.dcos systemd[1]: dcos-minuteman.service failed. 

[dcos-navstar.service]: A distributed systems & network overlay orchestration en 
gine unit dcos-navstar.service has never entered `active` state 
-- Logs begin at Wed 2016-09-28 08:22:53 PDT, end at Wed 2016-09-28 08:48:37 PDT 
. -- 
Sep 28 08:48:00 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:06 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:06 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:06 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:06 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:06 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:06 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:06 m1.dcos check-time[11809]: Time is marked as bad 
Sep 28 08:48:11 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:11 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:11 m1.dcos check-time[11839]: Time is marked as bad 
Sep 28 08:48:11 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:11 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:11 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:11 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:16 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:16 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:16 m1.dcos check-time[11867]: Time is marked as bad 
Sep 28 08:48:16 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:16 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:16 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:16 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:21 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:21 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:21 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:21 m1.dcos check-time[11899]: Time is marked as bad 
Sep 28 08:48:21 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:21 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:21 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:26 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:26 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:26 m1.dcos check-time[11929]: Time is marked as bad 
Sep 28 08:48:26 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:26 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:26 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:26 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:31 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:31 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:31 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:31 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:31 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:31 m1.dcos systemd[1]: dcos-navstar.service failed. 
Sep 28 08:48:31 m1.dcos check-time[11963]: Time is marked as bad 
Sep 28 08:48:37 m1.dcos systemd[1]: dcos-navstar.service holdoff time over, sche 
duling restart. 
Sep 28 08:48:37 m1.dcos systemd[1]: Starting Navstar: A distributed systems & ne 
twork overlay orchestration engine... 
Sep 28 08:48:37 m1.dcos check-time[12001]: Time is marked as bad 
Sep 28 08:48:37 m1.dcos systemd[1]: dcos-navstar.service: control process exited 
, code=exited status=1 
Sep 28 08:48:37 m1.dcos systemd[1]: Failed to start Navstar: A distributed syste 
ms & network overlay orchestration engine. 
Sep 28 08:48:37 m1.dcos systemd[1]: Unit dcos-navstar.service entered failed sta 
te. 
Sep 28 08:48:37 m1.dcos systemd[1]: dcos-navstar.service failed. 

time="2016-09-28T08:48:37-07:00" level=fatal msg="Found unhealthy systemd units" 

不知道我錯在哪裏。使用Google搜索仍然無法找到什麼錯誤。對此的任何幫助
謝謝

回答

2

「時間被標記爲壞」來自1.8.4中添加的新時間檢查過程,以驗證節點之間的時間是同步的。

通常情況下,生產集羣將使用NTP來同步節點時鐘,但這尚未被納入dcos-vagrant基礎映像(實際上僅爲a ticket)。 VirtualBox的確在本地做了一些時間同步,這通常是有效的,但偶爾還不夠好。

因此,要臨時解決此問題,請將the example config.yaml更新爲使用check_time: false,該選項禁用時間檢查。您需要更新您的本地副本。

+0

非常感謝你:)它工作:) – krishna