Skip to content

Instantly share code, notes, and snippets.

@josephglanville
josephglanville / update.log
Created October 7, 2015 08:58
update.log
amazon-ebs: + apt-get update
amazon-ebs: Ign http://security.ubuntu.com trusty-security InRelease
amazon-ebs: Ign http://archive.ubuntu.com trusty InRelease
amazon-ebs: Get:1 http://security.ubuntu.com trusty-security Release.gpg [933 B]
amazon-ebs: Ign http://archive.ubuntu.com trusty-updates InRelease
amazon-ebs: Get:2 http://security.ubuntu.com trusty-security Release [63.5 kB]
amazon-ebs: Hit http://archive.ubuntu.com trusty Release.gpg
amazon-ebs: Get:3 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
amazon-ebs: Get:4 http://archive.ubuntu.com trusty Release [58.5 kB]
amazon-ebs: Get:5 http://archive.ubuntu.com trusty-updates Release [63.5 kB]
@josephglanville
josephglanville / fail.log
Created October 7, 2015 08:53
apt kernel failure
amazon-ebs: Reading package lists...
amazon-ebs: + [[ amazon-ebs == ^K\i^M \u^G\\o\x\-\o^K^L ]]
amazon-ebs: + apt-get install --install-recommends linux-generic-lts-vivid linux-image-ge
neric-lts-vivid -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
amazon-ebs: Reading package lists...
amazon-ebs: Building dependency tree...
amazon-ebs: Reading state information...
amazon-ebs: Some packages could not be installed. This may mean that you have
amazon-ebs: requested an impossible situation or if you are using the unstable
amazon-ebs: distribution that some required packages have not yet been created
deb http://archive.ubuntu.com/ubuntu trusty main universe
deb-src http://archive.ubuntu.com/ubuntu trusty main universe
deb http://archive.ubuntu.com/ubuntu trusty-updates main universe
deb-src http://archive.ubuntu.com/ubuntu trusty-updates main universe
deb http://security.ubuntu.com/ubuntu trusty-security main universe
deb-src http://security.ubuntu.com/ubuntu trusty-security main universe
t=2015-09-16T20:49:07+0000 lvl=dbug msg="Using default connection config" Port=5432
t=2015-09-16T20:49:07+0000 lvl=info msg="Dialing PostgreSQL server at tcp address: leader.postgres.discoverd:5432"
t=2015-09-16T20:49:07+0000 lvl=dbug msg=rxMsg type=R msgBytesRemaining=8
t=2015-09-16T20:49:07+0000 lvl=dbug msg=msgReader.readInt32 value=5 msgBytesRemaining=4
t=2015-09-16T20:49:07+0000 lvl=dbug msg=msgReader.readString value="�Hc" msgBytesRemaining=0
t=2015-09-16T20:49:07+0000 lvl=dbug msg=rxMsg type=R msgBytesRemaining=4
t=2015-09-16T20:49:07+0000 lvl=dbug msg=msgReader.readInt32 value=0 msgBytesRemaining=0
t=2015-09-16T20:49:07+0000 lvl=dbug msg=rxMsg type=S msgBytesRemaining=18
t=2015-09-16T20:49:07+0000 lvl=dbug msg=msgReader.readCString value=application_name msgBytesRemaining=1
t=2015-09-16T20:49:07+0000 lvl=dbug msg=msgReader.readCString value= msgBytesRemaining=0
@josephglanville
josephglanville / controller test hang
Created September 5, 2015 18:54
controller test hang
18:52:21.437 START: controller_test.go:43: S.SetUpSuite
18:52:21.942 START: controller_test.go:306: S.TestAppList
18:52:21.942 START: controller_test.go:87: S.SetUpTest
t=2015-09-05T18:52:21+0000 lvl=info msg="request started" component=controller req_id=04a0d1c6-e471-4b7f-9629-939227f4d725 method=POST path=/apps client_ip=127.0.0.1
t=2015-09-05T18:52:21+0000 lvl=info msg="request completed" component=controller req_id=04a0d1c6-e471-4b7f-9629-939227f4d725 status=200 duration=2.159147ms
t=2015-09-05T18:52:21+0000 lvl=info msg="request started" component=controller req_id=90ee70d8-dc5c-4697-a2fb-63eb7956fe96 method=GET path=/apps client_ip=127.0.0.1
t=2015-09-05T18:52:21+0000 lvl=info msg="request completed" component=controller req_id=90ee70d8-dc5c-4697-a2fb-63eb7956fe96 status=200 duration=321.65µs
18:52:21.946 START: controller_test.go:326: S.TestAppReleaseList
18:52:21.946 START: controller_test.go:87: S.SetUpTest
t=2015-09-05T18:52:21+0000 lvl=info msg="request started" req_id=966923df-7cc2-4e35-874c-0f8fc
@josephglanville
josephglanville / hang on git receive deploy
Created September 1, 2015 19:19
git hang on gitreceive deploy
vagrant@flynn:~/ruby-flynn-example$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git push flynn master
trace: built-in: git 'push' 'flynn' 'master'
trace: run_command: 'git-remote-https' 'flynn' 'https://git.dev.localflynn.com/testapp2.git'
* Couldn't find host git.dev.localflynn.com in the .netrc file; using defaults
* Hostname was NOT found in DNS cache
* Trying 192.0.2.100...
* Connected to git.dev.localflynn.com (192.0.2.100) port 443 (#0)
* found 1 certificates in /home/vagrant/.flynn/ca-certs/default.pem
* server certificate verification OK
* common name: dev.localflynn.com (matched)
@josephglanville
josephglanville / git receive log
Created September 1, 2015 19:01
gitrecieve debugging
rant@flynn:~/go/src/github.com/flynn/flynn$ flynn -a gitreceive log
2015-09-01T18:51:47.337323Z app[app.flynn-1a5e958e-8762-4185-8dab-070d2a5eefe8]: t=2015-09-01T18:51:47+0000 lvl=info msg="request started" component=gitreceive req_id=fd4f1271-7157-49ea-94c4-511491c2b1c0 method=GET path=/.well-known/status client_ip=100.100.49.11
2015-09-01T18:51:47.341201Z app[app.flynn-1a5e958e-8762-4185-8dab-070d2a5eefe8]: t=2015-09-01T18:51:47+0000 lvl=info msg="request completed" component=gitreceive req_id=fd4f1271-7157-49ea-94c4-511491c2b1c0 status=200 duration=3.351599ms
2015-09-01T18:53:59.165330Z app[app.flynn-1a5e958e-8762-4185-8dab-070d2a5eefe8]: t=2015-09-01T18:53:59+0000 lvl=info msg="request started" req_id=2d30b32a-a3ae-480b-a767-34d40adc7ab3 component=gitreceive method=GET path=/testapp.git/info/refs client_ip=192.0.2.100
2015-09-01T18:53:59.165536Z app[app.flynn-1a5e958e-8762-4185-8dab-070d2a5eefe8]: t=2015-09-01T18:53:59+0000 lvl=info msg="request completed" req_id=2d30b32a-a3ae-480b-a767-34d40adc7ab3 compo
@josephglanville
josephglanville / commands.txt
Last active August 28, 2015 21:18 — forked from lmars/commands.txt
Flynn Dedicated Postgres
# create new app as your custom postgres provider
flynn create --remote "" custompg
# create a release using the latest postgresql image from /etc/flynn/bootstrap-manifest.json
flynn -a custompg release add -t docker -f config.json "https://dl.flynn.io/tuf?name=flynn/postgresql&id=30f08003a029c5d5958263bf923d0377c958b313d417ba49489ff9c5940a388b"
# modify the app deployment strategy to "postgres"
flynn -a controller pg psql <<< "UPDATE apps SET strategy = 'postgres' WHERE name = 'custompg';"
# scale postgres and web to 3 and 2 processes respectively
amazon-ebs: The following packages have unmet dependencies:
amazon-ebs: linux-image-generic-lts-vivid : Depends: linux-image-extra-3.19.0-25-generic but it is not going to be installed
amazon-ebs: Recommends: thermald but it is not installable
bios.bootorder = "hdd,CDROM"
checkpoint.vmstate = ""
cleanshutdown = "FALSE"
config.version = "8"
displayname = "flynn: default"
ehci.pcislotnumber = "-1"
ehci.present = "FALSE"
ethernet0.addresstype = "generated"
ethernet0.connectiontype = "nat"
ethernet0.present = "TRUE"