Issues running on RVM

115 views
Skip to first unread message

Diego Marcet

unread,
Mar 9, 2014, 8:21:27 PM3/9/14
to god...@googlegroups.com
Hi folks,

I'm just getting started with god, but I'm having some issues with the deployment as not even the simplest example works for me, I guess it's related to RVM but it could be something else.

Here's what I have:

hello.rb
loop do
  puts "Hello #{Time.now}"
  sleep 5
end

test.god
God.watch do |w|
  w.name = 'test'
  w.start = 'ruby /home/vagrant/tmp/hello.rb'
  w.keepalive
end 

When running god this is the output I get:

vagrant@precise32:~/tmp$ god -c test.god -D
I [2014-03-10 00:01:47]  INFO: Loading test.god
I [2014-03-10 00:01:47]  INFO: Syslog enabled.
I [2014-03-10 00:01:47]  INFO: Using pid file directory: /home/vagrant/.god/pids
I [2014-03-10 00:01:47]  INFO: Started on drbunix:///tmp/god.17165.sock
I [2014-03-10 00:01:47]  INFO: test move 'unmonitored' to 'up'
I [2014-03-10 00:01:47]  INFO: test moved 'unmonitored' to 'up'
I [2014-03-10 00:01:47]  INFO: test [trigger] process is not running (ProcessRunning)
I [2014-03-10 00:01:47]  INFO: test move 'up' to 'start'
I [2014-03-10 00:01:47]  INFO: test start: ruby /home/vagrant/tmp/hello.rb
I [2014-03-10 00:01:47]  INFO: test moved 'up' to 'up'

And it stays like that, there's nothing else on syslog.

God gem is installed in the global gemset:

vagrant@precise32:~/tmp$ rvm use ruby-1.9.3-p429@global
Using /home/vagrant/.rvm/gems/ruby-1.9.3-p429 with gemset global
vagrant@precise32:~/tmp$ gem list

*** LOCAL GEMS ***

bundler (1.5.3)
bundler-unload (1.0.2)
executable-hooks (1.3.1)
gem-wrappers (1.2.4)
god (0.13.3)
rake (10.1.1)
rubygems-bundler (1.4.2)
rvm (1.11.3.9)

I'm running ruby 1.9.3 on RVM on an Ubuntu 12.04 vagrant VM, and have created the RVM wrapper as described here.

vagrant@precise32:~ rvm info

ruby-1.9.3-p429:

  system:
    uname:       "Linux precise32 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux"
    system:      "ubuntu/12.04/i386"
    bash:        "/bin/bash => GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.25.19 (master) by Wayne E. Seguin <waynee...@gmail.com>, Michal Papis <mpa...@gmail.com> [https://rvm.io/]"
    updated:      "3 days 20 hours 52 minutes 24 seconds ago"
    path:         "/home/vagrant/.rvm"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.3p429"
    date:         "2013-05-15"
    platform:     "i686-linux"
    patchlevel:   "2013-05-15 revision 40747"
    full_version: "ruby 1.9.3p429 (2013-05-15 revision 40747) [i686-linux]"

  homes:
    gem:          "/home/vagrant/.rvm/gems/ruby-1.9.3-p429"
    ruby:         "/home/vagrant/.rvm/rubies/ruby-1.9.3-p429"

  binaries:
    ruby:         "/home/vagrant/.rvm/rubies/ruby-1.9.3-p429/bin/ruby"
    irb:          "/home/vagrant/.rvm/rubies/ruby-1.9.3-p429/bin/irb"
    gem:          "/home/vagrant/.rvm/rubies/ruby-1.9.3-p429/bin/gem"
    rake:         "/home/vagrant/.rvm/gems/ruby-1.9.3-p429@global/bin/rake"

  environment:
    PATH:         "/home/vagrant/.rvm/gems/ruby-1.9.3-p429/bin:/home/vagrant/.rvm/gems/ruby-1.9.3-p429@global/bin:/home/vagrant/.rvm/rubies/ruby-1.9.3-p429/bin:/home/vagrant/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant_ruby/bin:/home/vagrant/.rvm/bin"
    GEM_HOME:     "/home/vagrant/.rvm/gems/ruby-1.9.3-p429"
    GEM_PATH:     "/home/vagrant/.rvm/gems/ruby-1.9.3-p429:/home/vagrant/.rvm/gems/ruby-1.9.3-p429@global"
    MY_RUBY_HOME: "/home/vagrant/.rvm/rubies/ruby-1.9.3-p429"
    IRBRC:        "/home/vagrant/.rvm/rubies/ruby-1.9.3-p429/.irbrc"
    RUBYOPT:      ""
    gemset:       ""


Thanks in advance,
Diego.
Reply all
Reply to author
Forward
0 new messages