Skip to content

Instantly share code, notes, and snippets.

View orospakr's full-sized avatar

Andrew Clunis orospakr

View GitHub Profile
root@3b352a7daea9:~# /usr/sbin/riak-cs console
Node 'riak-cs@127.0.0.1' not responding to pings.
config is OK
!!!!
!!!! WARNING: ulimit -n is 1024; 4096 is the recommended minimum.
!!!!
Exec: /usr/lib/riak-cs/erts-5.9.1/bin/erlexec -boot /usr/lib/riak-cs/releases/1.4.4/riak-cs -config /etc/riak-cs/app.config -pa /usr/lib/riak-cs/lib/basho-patches -args_file /etc/riak-cs/vm.args -- console
Root: /usr/lib/riak-cs
^[[A
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:64] [kernel-poll:true]
[~]$ curl http://mysite.org:8000/js/generated/vendor.js > /tmp/poop [system]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
50 1303k 50 654k 0 0 38.2M 0 --:--:-- --:--:-- --:--:-- 39.9M
curl: (18) transfer closed with 664319 bytes remaining to read
[~]$ curl http://mysite.org:8000/js/generated/vendor.js > /tmp/poop [system]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1303k 100 1303k 0 0 53.5M 0 --:--:-- --:--:-- --:--:-- 55.3M
[~]$ curl http://mysite.org:8000/js/generated/vendor.js > /tmp/poop
> var lol = App.__container__.lookup('store:main').createRecord("person");
undefined
> lol
Class {id: "fixture-1", store: Class, container: Container, _changesToSync: Object, _deferredTriggers: Array[0]…}
> lol.save()
Class {__ember1395010469071: undefined, _super: undefined, __ember1395010469071_meta: Object, constructor: function, reason: null…}
> App.__container__.lookup('store:main').find("person").get("length")
0
@orospakr
orospakr / gist:a187663fa1ef6908b8d8
Created June 22, 2014 22:31
ruby-build of 2.1.2 SSL problem on OS X 10.8
/var/folders/cq/m9rjzq0x7cl_4kxzdkyx8w7w0000gn/T/ruby-build.20140622182054.59382 ~/code/casnet/casnet-ops
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 15096114
Connection: keep-alive
Date: Thu, 29 May 2014 10:04:54 GMT
Last-Modified: Fri, 23 May 2014 08:34:23 GMT
ETag: "a5b5c83565f8bd954ee522bd287d2ca1"
Accept-Ranges: bytes
Server: AmazonS3
@orospakr
orospakr / gist:2ba2da1f5d15d48fd8ab
Last active August 29, 2015 14:04
Unhappy Kubernetes behaviour when trying './output/go/kubecfg -v=3 -p 8080:80 run dockerfile/nginx 2 myNginx'
[~/code/others/kubernetes]$ ./output/go/kubecfg -v=3 -p 8080:80 run dockerfile/nginx 2 myNginx
I0715 12:50:16.219593 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:50:36.223987 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:50:56.228018 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:51:16.231184 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:51:36.236739 54624 request.go:220] Waiting for completion of /operations/5
... and so on.
And on my CoreOS (+kelseyhightower) instance that's hosting Kube, badness is going on.
In particular, look for "port has already been allocated".
@orospakr
orospakr / gist:0afc3056b62ba1beebd1
Last active August 29, 2015 14:04
Manifest from etcd failed validation, ignoring: [ContainerManifest.Version: invalid value '' Container.Name: invalid value '']
Did this:
./output/go/kubecfg -v=3 -p 8888:80 run dockerfile/nginx 2 myNginx2 [master][system]
I0717 19:36:30.696050 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:36:50.698185 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:37:10.701206 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:37:30.703374 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:37:50.706173 07029 request.go:220] Waiting for completion of /operations/1
...
[~/code/others/kubernetes]$ tail -f /tmp/apiserver.log /tmp/controller-manager.log /tmp/kubelet.log /tmp/kube-proxy.log
==> /tmp/apiserver.log <==
I0723 13:00:14.791475 03019 apiserver.go:73] No cloud provider specified.
E0723 13:00:14.793308 03019 master.go:90] Failed to initialize caching layer, ignoring cache.
E0723 13:00:14.795536 03019 pod_cache.go:79] Error synchronizing container list: &url.Error{Op:"Get", URL:"http://127.0.0.1:10250/healthz", Err:(*net.OpError)(0xc20803eb80)}
==> /tmp/controller-manager.log <==
I0723 13:05:24.795341 03020 logs.go:39] etcd DEBUG: get [/registry/controllers http://127.0.0.1:4001] [%!s(MISSING)]
I0723 13:05:24.795501 03020 logs.go:39] etcd DEBUG: [Connecting to etcd: attempt 1 for keys/registry/controllers?consistent=true&recursive=true&sorted=false]
I0723 13:05:24.795534 03020 logs.go:39] etcd DEBUG: [send.request.to http://127.0.0.1:4001/v2/keys/registry/controllers?consistent=true&recursive=true&sorted=false | method GET]
[~/code/others/kubernetes]$ rm -rf output
[~/code/others/kubernetes]$ go version
go version go1.3 linux/amd64
[~/code/others/kubernetes]$ git show-ref
f36d2a7ebdcad77532db7e8d45962dedee531363 refs/heads/master
[~/code/others/kubernetes]$ ./hack/build-go.sh
# github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet
output/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/kubelet.go:292: cannot use int64(container.Memory) (type int64) as type uint64 in field value
output/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/kubelet.go:558: unknown info.ContainerInfoRequest field 'MemoryUsagePercentiles' in struct literal
@orospakr
orospakr / gist:d11f38deeea340f8cb53
Created September 6, 2014 00:05
Rdio Android app broken.
E/mono-rt (18639): Stacktrace:
E/mono-rt (18639):
E/mono-rt (18639): at <unknown> <0xffffffff>
E/mono-rt (18639): at (wrapper managed-to-native) Rdio.Android.Player.RdioNativePlayer.createPcmAudioPlayer (uint,uint) <0xffffffff>
E/mono-rt (18639): at Rdio.Android.Player.RdioNativePlayer.Initialize (bool,uint,uint) <0x000c7>
E/mono-rt (18639): at Rdio.Android.Player.MediaPlayerManager..ctor (int,Pulser.Rdio.Player.IAudioPlayerListener,bool) <0x00117>
E/mono-rt (18639): at Rdio.Android.Player.AndroidPlayerBackend..ctor (Android.Content.Context,Android.Content.ComponentName) <0x0020f>
E/mono-rt (18639): at Rdio.Android.Application.OnCreate () <0x00a1f>
E/mono-rt (18639): at Android.App.Application.n_OnCreate (intptr,intptr) <0x00037>
E/mono-rt (18639): at (wrapper dynamic-method) object.828fc99a-b44b-4f10-b6ce-e0a7868fd8b6 (intptr,intptr) <0x0003b>
@orospakr
orospakr / gist:181af5ebe83a1a0b07dd
Created September 11, 2014 13:47
Rdio segfault on start (3.0.0.4)
D/AbstractMetricsFactoryImpl( 3341): record : No data points in metrics event
I/Timeline( 1379): Timeline: Activity_launch_request id:com.rdio.android.ui time:255699771
I/ActivityManager( 784): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.rdio.android.ui/rdio.android.activities.MainActivity bnds=[48,285][282,547] (has extras)} from pid 1379
D/AbstractMetricsFactoryImpl(31079): record : No data points in metrics event
V/Zygote (13354): Switching descriptor 33 to /dev/null
V/Zygote (13354): Switching descriptor 10 to /dev/null
I/ActivityManager( 784): Start proc com.rdio.android.ui for activity com.rdio.android.ui/rdio.android.activities.MainActivity: pid=13354 uid=10142 gids={50142, 3003, 1028, 1015}
I/MicrophoneInputStream(11273): mic_close fib@429cba80
V/audio_hw_primary( 217): in_standby: enter
V/audio_hw_primary( 217): stop_input_stream: enter: usecase(4: audio-record)