This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src/clipboard [master]* $ vagrant basebox export clipboard-ubuntu-11.10 | |
Executing vagrant voodoo: | |
vagrant package --base 'clipboard-ubuntu-11.10' --output 'clipboard-ubuntu-11.10.box' | |
To import it into vagrant type: | |
vagrant box add 'clipboard-ubuntu-11.10' 'clipboard-ubuntu-11.10.box' | |
To use it: | |
vagrant init 'clipboard-ubuntu-11.10' | |
vagrant up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file { "/etc/redis/redis.conf": | |
ensure => $ensure, | |
content => template("redis/redis.conf.erb"), | |
require => Redis::Install[$version], | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specifiy | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2012-01-04 12:03:47.540 [error] <0.10455.0> ** Connection attempt from disallowe | |
d node '[email protected]' ** | |
2012-01-04 12:03:48.673 [error] <0.10457.0> ** Connection attempt from disallowe | |
d node '[email protected]' ** | |
2012-01-04 12:03:48.677 [error] <0.10459.0> ** Connection attempt from disallowe | |
d node '[email protected]' ** | |
2012-01-04 12:03:49.809 [error] <0.10461.0> ** Connection attempt from disallowe | |
d node '[email protected]' ** | |
2012-01-04 12:03:49.814 [error] <0.10463.0> ** Connection attempt from disallowe | |
d node '[email protected]' ** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attempting to restart script through sudo -u riak | |
Exec: /usr/lib/riak/erts-5.8.4/bin/erlexec -boot /usr/lib/riak/releases/1.0.0/riak -embedded -config /etc/riak/app.config -args_file /etc/riak/vm.args -- console | |
Root: /usr/lib/riak | |
{error_logger,{{2012,1,4},{12,6,37}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]} | |
{error_logger,{{2012,1,4},{12,6,37}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.151>,<0.17.0>]},{dictionary,[{longnames,true}]},{trap_exit,true},{status,running},{heap_size,377},{stack_size,24},{reductions,451}],[]]} | |
{error_logger,{{2012,1,4},{12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Name of the riak node | |
-name [email protected] | |
## Cookie for distributed erlang. All nodes in the same cluster | |
## should use the same cookie or they will not be able to communicate. | |
-setcookie riak-dev-onebox | |
## Heartbeat management; auto-restarts VM if it dies or becomes unresponsive | |
## (Disabled by default..use with caution!) | |
##-heart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Standard Out Exception: | |
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
ReferenceError: x is not defined | |
at Object.<anonymous> (/clipboard/src/node/winston-log.js:56:1) | |
at Module._compile (module.js:432:26) | |
at Object..js (module.js:450:10) | |
at Module.load (module.js:351:31) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
here's the output in the log: | |
14 Jan 13:39:44 - undefined: [clipboard-app.js] 404 1ms GET /api/v1/clips/asdf/asfd | |
Logging Code: | |
var standardLevels = { | |
levels: { | |
debug: 0, | |
verbose: 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.on('uncaughtException', function(error) { | |
console.dir(error); | |
}); | |
function a() { | |
b(); | |
} | |
function b() { | |
c(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code doesn't catch | |
try { | |
this.stream = tls.connect(self.port, self.host, {}, function(err) { | |
// Never gets here when given a bogus host | |
console.log('Logging connected to ' + self.host + ':' + self.port + ' via TLS'); | |
self.activeConnection = true; | |
}); | |
this.stream.on('end', function() { |