Skip to content

Instantly share code, notes, and snippets.

View ingydotnet's full-sized avatar

Ingy döt Net ingydotnet

View GitHub Profile
ingy@thinkingy:~/.work/as/stackato/console/web$ stackato apps;stackato instances
+-----------------+---+--------+-------------------------------------+----------------+
| Application | # | Health | URLS | Services |
+-----------------+---+--------+-------------------------------------+----------------+
| converter | 2 | 0% | converter.stackato-d2gf.local | redis-currency |
| env | 1 | 0% | env.stackato-d2gf.local | |
| ring-helloworld | 1 | 0% | ring-helloworld.stackato-d2gf.local | |
+-----------------+---+--------+-------------------------------------+----------------+
Would you like to use 'web' as application name ? [Yn]:
ingy@thinkingy:~/.work/as/stackato/console/web$ stackato users;stackato apps
+----------------------+-------+-------------------------------------+
| Email | Admin | Apps |
+----------------------+-------+-------------------------------------+
| [email protected] | false | |
| [email protected] | true | |
| [email protected] | true | converter, env, ring-helloworld |
| [email protected] | false | env, multisweeper, sinatra-rabbitmq |
+----------------------+-------+-------------------------------------+
diff --git a/console/web/js/console.js b/console/web/js/console.js
index c6aa589..1c07872 100644
--- a/console/web/js/console.js
+++ b/console/web/js/console.js
@@ -362,7 +362,7 @@ $Console.hook('action_events', null, function() {
// Create a new rest object, using the current auth token if present.
$Console.new_rest = function(conf) {
var rest = new Console.Rest(conf, this.state.token);
- rest.error = this.bind('error_display');
+ rest.error = this.bind('error_display', rest);
[2012-02-05 18:43:50] dea - 984 b4b5 52dc INFO -- Starting VCAP DEA (0.99)
[2012-02-05 18:43:50] dea - 984 b4b5 52dc INFO -- Pid file: /var/vcap/sys/run/dea.pid
[2012-02-05 18:43:50] dea - 984 b4b5 52dc INFO -- Using ruby @ /opt/rubies//1.9.2-p290/bin/ruby
[2012-02-05 18:43:50] dea - 984 b4b5 52dc INFO -- Checking runtimes:
[2012-02-05 18:43:50] dea - 984 b4b5 52dc INFO -- Starting runtimes check container...
create_inode: socket /lxc/containers/stackato-setup-runtimes/rootfs/dev/log ignored
create_inode: socket /lxc/containers/stackato-setup-runtimes/rootfs/var/run/dbus/system_bus_socket ignored
lxc-start: failed to open log file "/tmp/vcap-run/stackato-lxc.log" : No such file or directory
[2012-02-05 19:33:47] dea - 3936 99ac 12d3 INFO -- Starting VCAP DEA (0.99)
[2012-02-05 19:33:47] dea - 3936 99ac 12d3 INFO -- Pid file: /var/vcap/sys/run/dea.pid
[2012-02-05 19:33:47] dea - 3936 99ac 12d3 INFO -- Using ruby @ /opt/rubies//1.9.2-p290/bin/ruby
[2012-02-05 19:33:47] dea - 3936 99ac 12d3 INFO -- Checking runtimes:
[2012-02-05 19:33:47] dea - 3936 99ac 12d3 INFO -- Starting runtimes check container...
create_inode: socket /lxc/containers/stackato-setup-runtimes/rootfs/dev/log ignored
create_inode: socket /lxc/containers/stackato-setup-runtimes/rootfs/var/run/dbus/system_bus_socket ignored
/home/stackato/stackato/tools/lxctrl:120:in `run_within': SSH connection failed: stackato (RuntimeError)
ingy@thinkingy:~/.work/as/stackato-samples/node/multisweeper$ stackato apps
+--------------+---+---------+----------------------------------+----------+
| Application | # | Health | URLS | Services |
+--------------+---+---------+----------------------------------+----------+
| env | 1 | STOPPED | env.stackato-ingy.local | |
| multisweeper | 1 | STOPPED | multisweeper.stackato-ingy.local | |
+--------------+---+---------+----------------------------------+----------+
ingy@thinkingy:~/.work/as/stackato-samples/node/multisweeper$ stackato restart env
Application 'env' already stopped
# Config file for collectd(1).
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.
#Hostname "localhost"
FQDNLookup true
ingy@thinkingy:~/.work/as/stackato-samples/node/multisweeper$ stackato push -n
Application Url: multisweeper.stackato-ingy.local
Framework: Node
Runtime: <framework-specific default>
Creating Application [multisweeper]: OK
Creating redis service [redis-multisweeper]: Error 503: Unexpected response from service gateway
stackato@stackato-ingy:~$ cat stackato/logs/vcap/cloud_controller.log
/opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:219:in `block in replace_bin_path': can't find executable rake (Gem::Exception)
from /opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/bin/rake:19:in `<main>'
Using config file /home/stackato/stackato/etc/vcap/cloud_controller.yml
/opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:304:in `rescue in depend_on': No such file to load -- errand (LoadError)
from /opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:299:in `depend_on'
from /opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:216:in `require_dependency'
from /opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/railties-3.0.5/lib/rails/engine.rb:138:in `block (2 levels) in eager_load!'
from /opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rail
stackato@stackato-ingy:~$ ll /opt/rubies/1.9.2-p290/lib/ruby/gems/1.9.1/gems/errand-0.7.3/
total 48
drwxr-xr-x 5 stackato stackato 4096 2012-02-13 11:46 ./
drwxr-xr-x 146 stackato admin 4096 2012-02-13 11:46 ../
-rw-r--r-- 1 stackato stackato 408 2012-02-13 11:46 AUTHORS
-rw-r--r-- 1 stackato stackato 40 2012-02-13 11:46 .cvsignore
-rw-r--r-- 1 stackato stackato 81 2012-02-13 11:46 Gemfile
-rw-r--r-- 1 stackato stackato 196 2012-02-13 11:46 Gemfile.lock
drwxr-xr-x 2 stackato stackato 4096 2012-02-13 11:46 lib/
-rw-r--r-- 1 stackato stackato 794 2012-02-13 11:46 Rakefile