Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am gyril on github.
  • I am keyril (https://keybase.io/keyril) on keybase.
  • I have a public key ASAVvCzY-veLj19cJG_wwLCBuS4LeiqNUjgPuHF1LHkWewo

To claim this, I am signing this object:

command="FINGERPRINT=84:78:92:6c:cb:40:de:41:f7:61:85:84:43:41:3a:d5 NAME=\"admin\" `cat /home/dokku/.sshcommand` $SSH_ORIGINAL_COMMAND",no-agent-forwarding,no-user-rc,no-X11-forwarding,no-port-forwarding ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFPvZ05lsLypWZVyiz/HlZkaeQ6Aq6WprxtPz++5btFHgYG7GdIAHpJaiQlYZzDazqFW2VcBQz5yb16YMDVMKzC9zciw2I49LuWmRReByMr+wKVRGStw+82wzv2iC4saUpbzVL/noLuxlLgmmCvYBCjWJ+cpNZbBYhY0rX6x6/rCKnBJPr33oUaasLF+pCdGHZGU11eApg8zgUdidlo1AKl25oAWatALJC6NrRXJp13W+ERiiuM3lOw0nCGK7GJPwp5due8ljfJ5h7f6ZA1w/7I1obJWH2VHYGSD6YbY28jQu5wjhqwOOXfg4xf7IstdTkfuzhGzxK1uxuZoNIITcj front-us-west-2
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCzzuCZ+7zQqvSEMKPmQDUpjMlYcAMLgjPo4HB624CajMwueH+UgbiYmumH3LN6X3NVg4MQoX2gWnuI3m3hf5K5J+le6t1SyS572KC2CZBr+iujWTBJ7Hq3L9ANvaHHofpPS/tXuFS1dxCax9Qz39pQeNlyL4DlF/zZRSQ+SupIUjuPofZiNa2DmjHtlPSv/1j+0FH6szeWEX5V86bRpKTEQjFrnltsFRHOX7x4jemNmcY13HeNqfMgHbJb6UZD42eCUmUP9tKyNgskhk16n9mOa4mLP+js63BAf4F+Mxjzrb5ccFKiULSRTJFW2cHR56fwgNkbkqKzyQUHwe2EzazwNt3MhZmH+cM7UIr1PQVsDg+eUDT4fQch3ofiW9UmQc
root@flynn-1463186041:~# flynn-host collect-debug-info
INFO[08-05|15:13:46] uploading logs and debug information to a private, anonymous gist
INFO[08-05|15:13:46] this may take a while depending on the size of your logs
INFO[08-05|15:13:46] getting flynn-host logs
INFO[08-05|15:14:36] getting scheduler state
EROR[08-05|15:16:56] error getting scheduler state err="object_not_found: no leader found"
INFO[08-05|15:16:56] getting job logs
EROR[08-05|15:16:56] error getting job logs, falling back to on-disk logs err="could not list hosts: object_not_found: service not found"
INFO[08-05|15:16:56] getting system information
EROR[08-05|15:16:56] error capturing output of "ps faux" err="fork/exec /bin/ps: cannot allocate memory"
Cyrils-MacBook-Pro:flynn cyril$ flynn import --file uab.tar
160.00 KB / 15.20 MB [>------------------------------------------------------------------------] 1.03 % 112.51 KB/s 2m16spg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 6; 2615 2200 SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR: must be owner of schema public
Command was: DROP SCHEMA IF EXISTS public;
pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists
Command was: CREATE SCHEMA public;
Cyrils-MacBook-Pro:flynn cyril$ flynn import --file ltfm.tar
30.63 KB / 14.40 MB [>-------------------------------------------------------------------------] 0.21 % 13.71 KB/s 17m53spg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 6; 2615 2200 SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR: must be owner of schema public
Command was: DROP SCHEMA IF EXISTS public;
pg_restore: [archiver (db)] could not execute query: ERROR: schema "public" already exists
Command was: CREATE SCHEMA public;
This file has been truncated, but you can view the full file.
t=2016-07-07T17:19:06+0000 lvl=info msg="request started" component=controller req_id=153441b6-edeb-46d5-8fe4-2cf5b8f749e8 method=GET path=/apps/controller/release client_ip=100.100.83.1
t=2016-07-07T17:19:06+0000 lvl=info msg="request completed" component=controller req_id=153441b6-edeb-46d5-8fe4-2cf5b8f749e8 status=200 duration=37.185089ms
t=2016-07-07T17:19:06+0000 lvl=info msg="request started" component=controller req_id=b9cb496e-45e5-4d1d-84fa-a8f7c70b6e41 method=GET path=/apps/controller/formations/bb6ba127-97fd-4f07-a233-27cc52f55fc0 client_ip=100.100.83.1
t=2016-07-07T17:19:06+0000 lvl=info msg="request completed" component=controller req_id=b9cb496e-45e5-4d1d-84fa-a8f7c70b6e41 status=200 duration=2.02112ms
t=2016-07-07T17:19:06+0000 lvl=info msg="request started" component=controller req_id=ac583186-2c12-4308-9542-62b83bf7ea3d method=GET path=/apps/router/release client_ip=100.100.83.1
t=2016-07-07T17:19:06+0000 lvl=info msg="request completed" component=controller req_id=ac583186-2c12-4308-9542-62b
[root@flynn-1463186041:~# flynn-host log flynn1463186041-a0548e89-29ad-4b68-8217-4d57a2ce6d9f
t=2016-07-07T18:05:11+0000 lvl=info msg="creating cluster and controller clients" component=scheduler fn=main
t=2016-07-07T18:05:11+0000 lvl=info msg="waiting for controller API to come up" component=scheduler fn=main
t=2016-07-07T18:05:11+0000 lvl=info msg="started scheduler" component=scheduler fn=main backoffPeriod=10m0s
t=2016-07-07T18:05:11+0000 lvl=info msg="starting scheduler loop" component=scheduler fn=Run
t=2016-07-07T18:05:11+0000 lvl=info msg="connecting host event stream" component=scheduler fn=streamHostEvents
t=2016-07-07T18:05:11+0000 lvl=info msg="serving HTTP requests" component=scheduler fn=startHTTPServer addr=:5000
t=2016-07-07T18:05:11+0000 lvl=info msg="handling host event" component=scheduler fn=HandleHostEvent event.type=up
t=2016-07-07T18:05:11+0000 lvl=info msg="host is up, starting job event stream" component=scheduler fn=handleNewHost host.id=flynn1463186041
t=2016-07-07T18:05:11+0000 lvl
root@flynn-1463186041:~# flynn-host ps
ID STATE CREATED CONTROLLER APP CONTROLLER TYPE ERROR
flynn1463186041-a0548e89-29ad-4b68-8217-4d57a2ce6d9f running 25 seconds ago controller scheduler
flynn1463186041-7679a600-4568-4bc6-b5a1-1727abdeab61 running 36 minutes ago discoverd app
flynn1463186041-507f6d47-47e3-49c3-b79b-4791836d9152 running 36 minutes ago controller web
flynn1463186041-491137ca-8137-4287-bb55-c1266a43a89e running 36 minutes ago flannel app
flynn1463186041-25d77a81-5d39-451c-8628-fc18bfbb07bb running 36 minutes ago postgres postgres
t=2016-07-07T13:22:43-0400 lvl=info msg="starting daemon" app=host pid=6200 fn=runDaemon host.id=flynn1463186041
t=2016-07-07T13:22:43-0400 lvl=info msg="validating host ID" app=host pid=6200 fn=runDaemon host.id=flynn1463186041
t=2016-07-07T13:22:43-0400 lvl=info msg="detecting external IP" app=host pid=6200 fn=runDaemon host.id=flynn1463186041
t=2016-07-07T13:22:43-0400 lvl=info msg="using external IP 104.236.24.234" app=host pid=6200 fn=runDaemon host.id=flynn1463186041
t=2016-07-07T13:22:43-0400 lvl=info msg="registering with cluster discovery service" app=host pid=6200 fn=runDaemon host.id=flynn1463186041 token=https://discovery.flynn.io/clusters/1981a451-f7d9-4146-9a36-b7584c530223 addr=104.236.24.234:1113 name=flynn1463186041
t=2016-07-07T13:22:44-0400 lvl=info msg="registered with cluster discovery service" app=host pid=6200 fn=runDaemon host.id=flynn1463186041 id=f06daecc-065e-4838-a273-440deced7a5e
t=2016-07-07T13:22:44-0400 lvl=info msg="initializing volume manager" app=host pid=6200 fn=runDaemon h
root@flynn-1463186041:~# flynn-host update
INFO[07-07|13:28:51] initializing TUF client
INFO[07-07|13:28:51] updating TUF data
INFO[07-07|13:28:52] getting configured release channel
INFO[07-07|13:28:52] determining latest version of stable release channel
INFO[07-07|13:28:52] latest stable version is v20160624.1
INFO[07-07|13:28:52] downloading v20160624.1 flynn-host binary
INFO[07-07|13:28:53] executing latest flynn-host binary
INFO[07-07|13:28:53] initializing TUF client
INFO[07-07|13:28:53] reading TUF database