Skip to content

Instantly share code, notes, and snippets.

View othiym23's full-sized avatar
💭
what is this thing you call, "architecture"

Forrest L Norvell othiym23

💭
what is this thing you call, "architecture"
  • Ellation / Crunchyroll / VRV
  • San Francisco
View GitHub Profile
@othiym23
othiym23 / gist:1187114
Created September 1, 2011 20:04
ecryptfs causing lxc to hang
[36116.376907] ecryptfs_decrypt_page: Error attempting to read lower page; rc = [-4]
[36116.376925] ecryptfs_readpage: Error decrypting page; rc = [-4]
[36116.376933] ecryptfs_write: Error getting page at index [3781] from eCryptfs inode mapping; rc = [-4]
[36116.376943] ecryptfs_write_begin: Error on attempt to truncate to (higher) offset [15593472]; rc = [-4]
[36240.390035] INFO: task init:31708 blocked for more than 120 seconds.
[36240.390054] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[36240.390063] init D ffff8801dffa3b00 0 31708 31706 0x00000000
[36240.390071] ffff88012977d898 0000000000000246 ffff88012977dfd8 ffff88012977c000
[36240.390079] 0000000000013b00 ffff88016ffe5ea0 ffff88012977dfd8 0000000000013b00
[36240.390087] ffff8801cf008000 ffff88016ffe5b00 ffff8801dffc90e8 ffff8801dffa3b00
@othiym23
othiym23 / lxc-lifecycle.txt
Created September 7, 2011 20:34
lxc lifecycle
---------
| STOPPED |<---------------
--------- |
| |
start |
| |
V |
---------- |
| STARTING |--error- |
---------- | |
ubuntu@ip-10-124-141-161:/cgroup$ for locker_name in locker_* ; do echo "$locker_name: $(( $( cat $locker_name/memory.usage_in_bytes ) / 1024 / 1024 ))" ; done | sort -k 2 -rn
locker_tim_25: 207
locker_ctide_29: 152
locker_fetid_tides_22: 151
locker_jer_21: 136
locker_smurthas_20: 129
locker_onetwothree_30: 128
locker_cav2_28: 128
locker_mdz_24: 127
locker_FEEZY_23: 119
2: 76.126.10.1 (76.126.10.1)
Partial loss: 529 / 1472 (35%)
Partial char: rtt = 11.218611 ms, (b = 0.000815 ms/B), r2 = 0.020206
stddev rtt = 0.591917, stddev b = 0.001072
Partial queueing: avg = 0.167878 ms (1625 bytes)
Hop char: rtt = --.--- ms, bw = 5830.906192 Kbps
Hop queueing: avg = 0.000303 ms (221 bytes)
3: 68.85.100.125 (te-8-4-ur02.sffolsom.ca.sfba.comcast.net)
@othiym23
othiym23 / testfunction.sh
Created September 9, 2011 22:52
Simple function to generate locker list based on available configuration.
get_locker_list () {
# Current flavor of generating the list of usable lockers:
# only try to operate on lockers that have LXC configuration information.
LOCKER_LIST=$(echo ${LXC_CONFIG}/locker_*.conf | sed "s|${LXC_CONFIG}/\(locker_[a-zA-Z0-9_]*\).conf|\1|g")
}
@othiym23
othiym23 / gist:1217498
Created September 14, 2011 19:16
lockerd.coffee
checkKeys = ->
lcrypto.generateSymKey (hasKey) ->
unless hasKey
shutdown 1
return
lcrypto.generatePKKeys (hasKeys) ->
unless hasKeys
shutdown 1
return
finishStartup()
# ps auxwww | grep _locker | awk '{ print $6 }'
1068
72688
129584
313748
5240
85580
509580
184728
43008
7 Jan 16:15:18 - error: STDIN error:{ stack: [Getter/Setter],
arguments: undefined,
type: undefined,
message: 'EPIPE, Broken pipe',
errno: 32,
code: 'EPIPE',
syscall: 'write' }
[dashboardv3] chdir(): No such file or directory
{
"externalHost" : "me.lvh.me"
, "externalPort" : 8443
, "externalSecure" : true
, "logFile" : "locker.log"
, "logging" : {
"level" : "info"
, "console" : true
, "file" : "locker.out"
, "maxsize" : 33554432
@othiym23
othiym23 / gist:1775800
Created February 9, 2012 00:25
broken deploy 2012/02/08
*** [err :: accounts0002.managed.singly.com]
*** [err :: accounts0002.managed.singly.com] npm ERR! TypeError: Cannot call method 'call' of undefined
*** [err :: accounts0002.managed.singly.com] npm ERR! at Object.lchown (/usr/lib/nodejs/npm/node_modules/graceful-fs/graceful-fs.js:228:17)
*** [err :: accounts0002.managed.singly.com] npm ERR! at setProps (/usr/lib/nodejs/npm/node_modules/fstream/lib/writer.js:240:19)
*** [err :: accounts0002.managed.singly.com] npm ERR! at Object.oncomplete (/usr/lib/nodejs/npm/node_modules/fstream/lib/writer.js:206:7)
*** [err :: accounts0002.managed.singly.com] npm ERR! You may report this log at:
*** [err :: accounts0002.managed.singly.com] npm ERR! <http://github.com/isaacs/npm/issues>
*** [err :: accounts0002.managed.singly.com] npm ERR! or email it to:
*** [err :: accounts0002.managed.singly.com] npm ERR! <[email protected]>
*** [err :: accounts0002.managed.singly.com] npm ERR!