script/poller

26 views
Skip to first unread message

Anne

unread,
Apr 6, 2011, 12:03:07 PM4/6/11
to Gitorious
Hi all,

I'm new to Ruby/Gitorious, but I've followed the guide on:
http://gitorious.org/gitorious/pages/UbuntuInstallation

With the exception that I run Ubuntu 10.10 instead of 9.10.

Most things seem to work, but if I create a new repository through the
webinterface I get the following message:

"This repository is being created,
it will be ready pretty soon…"

And this message stays. Also, no repository seems to be created.

I expect this is due to somes issues with script/poller. If I run that
as the git user I get the following:

$ ./script/poller run
poller: process with pid 4650 started.
/var/lib/gems/1.8/gems/bundler-1.0.11/lib/bundler/runtime.rb:31:in
`setup': You have already activated daemons 1.1.2, but your Gemfile
requires daemons 1.1.0. Consider using bundle exec. (Gem::LoadError)
from /var/lib/gems/1.8/gems/bundler-1.0.11/lib/bundler/
spec_set.rb:12:in `each'
from /var/lib/gems/1.8/gems/bundler-1.0.11/lib/bundler/
spec_set.rb:12:in `each'
from /var/lib/gems/1.8/gems/bundler-1.0.11/lib/bundler/
runtime.rb:17:in `setup'
from /var/lib/gems/1.8/gems/bundler-1.0.11/lib/bundler.rb:
107:in `setup'
from /var/www/gitorious/config/preinitializer.rb:16
from /var/www/gitorious/config/boot.rb:28:in `load'
from /var/www/gitorious/config/boot.rb:28:in `preinitialize'
from /var/www/gitorious/config/boot.rb:10:in `boot!'
from /var/www/gitorious/config/boot.rb:123
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /var/www/gitorious/config/environment.rb:11
from /var/www/gitorious/vendor/plugins/activemessaging/
poller.rb:8:in `load'
from /var/www/gitorious/vendor/plugins/activemessaging/
poller.rb:8
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons/
application.rb:202:in `load'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons/
application.rb:202:in `start_load'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons/
application.rb:291:in `start'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons/
controller.rb:73:in `run'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons.rb:
145:in `run'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons/
cmdline.rb:109:in `call'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons/
cmdline.rb:109:in `catch_exceptions'
from /var/lib/gems/1.8/gems/daemons-1.1.2/lib/daemons.rb:
144:in `run'
from ./script/poller:30

I am not sure what to do with this error message. Can someone point me
in the right direction?

It is much appreciated!

Best,
Anne

Anne

unread,
Apr 7, 2011, 6:03:12 AM4/7/11
to Gitorious
I fixed this, by (as the error message sugested) using bundle exec. At first that didn't look like a command to me..
--
Anne

Marius Mårnes Mathiesen

unread,
Apr 7, 2011, 7:32:32 AM4/7/11
to gito...@googlegroups.com
On Thu, Apr 7, 2011 at 12:03 PM, Anne <anne....@gmail.com> wrote:
I fixed this, by (as the error message sugested) using bundle exec. At first that didn't look like a command to me..

Good to hear you sorted it out.

bundle exec will take care of setting up the dependencies correctly for you, based on what is in the Gemfile. After our move to Bundler, I prefix most commands with bundle exec to make sure the environment is loaded correctly.

Cheers,
- Marius
Reply all
Reply to author
Forward
0 new messages