redmine does not start, gem dependency issue

Bug #601207 reported by linex83
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
redmine (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: redmine

I tried to install and run redmine on Ubuntu 10.10 alpha2. Installation was successful, but the start failed:

root@pc-anton:/usr/share/redmine# ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://127.0.0.1:3000
./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
/usr/share/redmine/vendor/rails/railties/lib/rails/rack/log_tailer.rb:10:in `size': No such file or directory - /usr/share/redmine/log/production.log (Errno::ENOENT)
 from /usr/share/redmine/vendor/rails/railties/lib/rails/rack/log_tailer.rb:10:in `initialize'
 from /usr/lib/ruby/1.8/rack/builder.rb:54:in `new'
 from /usr/lib/ruby/1.8/rack/builder.rb:54:in `use'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `call'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `to_app'
 from /usr/lib/ruby/1.8/rack/builder.rb:71:in `inject'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `each'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `inject'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `to_app'
 from /usr/share/redmine/vendor/rails/railties/lib/commands/server.rb:95
 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 script/server:3

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: redmine 0.9.4-4
ProcVersionSignature: Ubuntu 2.6.35-6.8-generic 2.6.35-rc3
Uname: Linux 2.6.35-6-generic x86_64
Architecture: amd64
Date: Fri Jul 2 23:36:23 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100630.2)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: redmine

Revision history for this message
linex83 (linex83) wrote :
Revision history for this message
kapouer (kapouer) wrote :

HInt : read the docs at /usr/share/doc/redmine/README.Debian

Revision history for this message
linex83 (linex83) wrote :

I think since redmine is in the repository it should be runnable after installation with all dependencies installed. In case there is any configuration necessary it should be performed automatically or manually during installation.

Revision history for this message
Guenther Montag (g-montag) wrote :

After a fresh install of Maverick and redmine and using the right command from README.Debian I get the same result:

root@redmine:/usr/share/redmine# sudo -u www-data X_DEBIAN_SITEID="default" ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://127.0.0.1:3000
./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
/usr/share/redmine/vendor/rails/railties/lib/rails/rack/log_tailer.rb:10:in `size': No such file or directory - /usr/share/redmine/log/production.log (Errno::ENOENT)
 from /usr/share/redmine/vendor/rails/railties/lib/rails/rack/log_tailer.rb:10:in `initialize'
 from /usr/lib/ruby/1.8/rack/builder.rb:54:in `new'
 from /usr/lib/ruby/1.8/rack/builder.rb:54:in `use'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `call'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `to_app'
 from /usr/lib/ruby/1.8/rack/builder.rb:71:in `inject'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `each'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `inject'
 from /usr/lib/ruby/1.8/rack/builder.rb:73:in `to_app'
 from /usr/share/redmine/vendor/rails/railties/lib/commands/server.rb:95
 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 script/server:3

Revision history for this message
kapouer (kapouer) wrote :

This is NOT a gem dependency issue :

it's simply because when you run webrick, the rack's LogTailer class does not respect
config.log_path
but calculates one on its own (this might be considered a rack bug).

Sorry for this, but you'll have to either NOT run webrick, or just create the missing folder
if you really want to :

/usr/share/redmine/vendor/rails/railties/lib/rails/rack/log_tailer.rb:10:in `size': No such file or directory - /usr/share/redmine/log/production.log (Errno::ENOENT)

Revision history for this message
Fiodor Kupchik (ferimy) wrote :

Solved this odd trouble by invoking:
touch /usr/share/redmine/log/production.log

Hope it helps to someone =)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.