Duration: less than {{count}} seconds

8 views
Skip to first unread message

Martijn

unread,
Mar 21, 2011, 7:31:43 AM3/21/11
to Webistrano
Hello,

Last week I accidentally removed the rails 2.3.5 gems via 'gem
cleanup'. Soon after, Webistrano stopped working because it was
missing rack 1.0.1.

Reinstalling Rails 2.3.5 fixed Webistrano, but ever since then I've
noticed one strange issue:

The deployment log has a problem showing Duration on most deployments.
Here are some samples:
Duration: less than {{count}} seconds
Duration: {{count}} minutes
Duration: half a minute
Duration: 1 minute

As you can see some are fine ("half a minute") while others fail. This
appears to happen even to ones deployed before the gem cleanup. I
haven't seen a pattern on which ones fail and which ones show
correctly. As far as I know they were all showing correctly before the
gem screwup.

Any idea what might cause this?

P.S.: Why not bundle the Rack gem with Webistrano, if it depends on
it?

P.P.S.: My Webistrano is up-to-date with the git repo. Here's the
current gem list on the machine:

$ sudo gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.0.5, 2.3.5)
actionpack (3.0.5, 2.3.5)
activemodel (3.0.5)
activerecord (3.0.5, 2.3.5)
activeresource (3.0.5, 2.3.5)
activesupport (3.0.5, 2.3.5)
arel (2.0.9)
builder (2.1.2)
erubis (2.6.6)
i18n (0.5.0)
mail (2.2.15)
mime-types (1.16)
polyglot (0.3.1)
rack (1.2.2, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (2.3.8, 2.3.5)
rake (0.8.7)
treetop (1.4.9)
tzinfo (0.3.25)

Jonathan Weiss

unread,
Mar 21, 2011, 2:46:18 PM3/21/11
to webis...@googlegroups.com, Martijn
> Any idea what might cause this?

My guess is that somehow Rails 3.x libs are loaded. Try to uninstall
all Rails/ActiveSupport & friends 3.0.x gems.

> P.S.: Why not bundle the Rack gem with Webistrano, if it depends on
> it?

The next version will be installed via bundler. This should make
things a lot easier.

Jonathan


--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss

Martijn Heemels

unread,
Mar 24, 2011, 12:02:07 PM3/24/11
to Jonathan Weiss, webis...@googlegroups.com, Martijn
Op 21-3-2011 19:46, Jonathan Weiss schreef:

>> Any idea what might cause this?
> My guess is that somehow Rails 3.x libs are loaded. Try to uninstall
> all Rails/ActiveSupport& friends 3.0.x gems.
Yes, that seems to have fixed it. I now have only Rails 2.3.5
dependencies installed.

>> P.S.: Why not bundle the Rack gem with Webistrano, if it depends on
>> it?
> The next version will be installed via bundler. This should make
> things a lot easier.
Looking forward to it!

Once again, thanks for a great tool.

Regards, Martijn Heemels

Reply all
Reply to author
Forward
0 new messages