flynn-archive/flynn-demo

Can I restart flynn bootstrap procedure?

Closed this issue · 1 comments

Hey,

I've setup layer0 and tried to bootstrap layer1. I lost the output of that command, unfortunately, and it was supposed to tell my to fire another command. Is there any way to either

  1. get logs of the command that initially went ok
  2. restart the bootstrap process?

When I try to run bootstrap command again I get this error:

TASK: [be sure that flynn is bootstrapped] ************************************
failed: [mydomain.com] => {"changed": true, "cmd": "CLUSTER_DOMAIN=mydomain.com flynn-host bootstrap /etc/flynn/bootstrap-manifest.json", "delta": "0:00:03.507581", "end": "2014-12-23 01:12:20.575165", "rc": 1, "start": "2014-12-23 01:12:17.067584", "warnings": []}
stderr: 01:12:17.076276 check online-hosts
01:12:17.079062 require-env require-env
01:12:17.079419 run-app postgres
01:12:18.595682 gen-random controller-key
01:12:18.595763 gen-random controller-key c1926624e42908967c55bb5ccb0b141e
01:12:18.595768 gen-random dashboard-session-secret
01:12:18.595793 gen-random dashboard-session-secret 73b47fb66814ffd446c7660da3ecef0d
01:12:18.595796 gen-random dashboard-login-token
01:12:18.595821 gen-random dashboard-login-token 969bd0134a012b9c9a336e51a3727e96
01:12:18.595825 gen-random name-seed
01:12:18.595858 gen-random name-seed 245c1a6b2d0470288b90
01:12:18.595862 wait postgres-wait
01:12:18.603807 run-app controller
01:12:20.570402 wait controller-wait
01:12:20.571637 add-app controller-inception
01:12:20.574457 add-app controller-inception error: POST http://flynn-controller/apps: controller: unexpected status 401

(I use ansible, hence the output format [and the problem with lost output]).

Oh, I restarted flynn-host service (service flynn-host restart) and issuing bootstrap command again succeeded. Sorry for the trouble.