Project

General

Profile

Error on Debian update

Added by Cool Fire almost 11 years ago

Doing an apt-get upgrade on Debian 7 today seems to have broken redmine. Does anyone have any ideas what may be going on?
( http://packages.debian.org/wheezy/redmine )

Setting up redmine (1.4.4+dfsg1-2+deb7u1) ...
dbconfig-common: writing config to /etc/dbconfig-common/redmine/instances/default.conf

Creating config file /etc/redmine/default/database.yml.new with new version
dbconfig-common: flushing administrative password
Populating database for redmine instance "default".
This may take a while.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
/usr/lib/ruby/vendor_ruby/rake/version.rb:2: warning: already initialized constant VERSION
/usr/lib/ruby/vendor_ruby/rake/version.rb:5: warning: already initialized constant MAJOR
/usr/lib/ruby/vendor_ruby/rake/version.rb:5: warning: already initialized constant MINOR
/usr/lib/ruby/vendor_ruby/rake/version.rb:5: warning: already initialized constant BUILD
/usr/lib/ruby/vendor_ruby/rake/version.rb:6: warning: already initialized constant NUMBERS
/usr/lib/ruby/vendor_ruby/rake.rb:27: warning: already initialized constant RAKEVERSION
/usr/lib/ruby/vendor_ruby/rake/early_time.rb:17: warning: already initialized constant EARLY
/usr/lib/ruby/vendor_ruby/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/usr/lib/ruby/vendor_ruby/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/usr/lib/ruby/vendor_ruby/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
/usr/lib/ruby/vendor_ruby/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/usr/lib/ruby/vendor_ruby/rake/file_utils.rb:9: warning: already initialized constant RUBY
/usr/lib/ruby/vendor_ruby/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
/usr/lib/ruby/vendor_ruby/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/usr/lib/ruby/vendor_ruby/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/usr/lib/ruby/vendor_ruby/rake.rb:68: warning: already initialized constant FileList
/usr/lib/ruby/vendor_ruby/rake.rb:69: warning: already initialized constant RakeFileUtils
rake aborted!
undefined method `+' for LL():Rake::Scope::EmptyScope

(See full trace by running task with --trace)
Error when running rake db:migrate, check database configuration.
dpkg: error processing redmine (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 redmine
E: Sub-process /usr/bin/dpkg returned an error code (1)

It's running (or well, was running) under Apache 2.2.22/Passenger

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

Rails 4.0.0
If I run 'rails --version' from the redmine root dir it throws a:

script/rails:6:in `require': cannot load such file -- rails/commands (LoadError)

rake, version 10.1.0

mysql Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (x86_64) using readline 6.2
mysqld Ver 5.5.31-0+wheezy1-log for debian-linux-gnu on x86_64 ((Debian))

"RAILS_ENV=production script/about" throws out more errors still:

NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21.
/usr/lib/ruby/vendor_ruby/active_support/inflector.rb:3:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:469:in `load_missing_constant': uninitialized constant RedmineApp (NameError)
    from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:106:in `const_missing_with_dependencies'
    from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:118:in `const_missing'
    from /usr/share/redmine/config/initializers/00-core_plugins.rb:11:in `block in <top (required)>'
    from /usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
    from /usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
    from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:173:in `load'
    from /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:173:in `load_with_new_constant_marking'
    from /usr/share/redmine/vendor/rails/railties/lib/initializer.rb:622:in `block in load_application_initializers'
    from /usr/share/redmine/vendor/rails/railties/lib/initializer.rb:621:in `each'
    from /usr/share/redmine/vendor/rails/railties/lib/initializer.rb:621:in `load_application_initializers'
    from /usr/share/redmine/vendor/rails/railties/lib/initializer.rb:176:in `process'
    from /usr/share/redmine/vendor/rails/railties/lib/initializer.rb:113:in `run'
    from /usr/share/redmine/config/environment.rb:46:in `<top (required)>'
    from /usr/share/redmine/vendor/rails/railties/lib/commands/about.rb:1:in `require'
    from /usr/share/redmine/vendor/rails/railties/lib/commands/about.rb:1:in `<top (required)>'
    from script/about:4:in `require'
    from script/about:4:in `<main>'

Should you like to see for yourself:
http://insomnia247.nl/redmine


Replies (11)

RE: Error on Debian update - Added by Jérémy Lal almost 11 years ago

Cool Fire wrote:

Rails 4.0.0
rake, version 10.1.0

the "rails" command is not necessarily available,
that doesn't mean it is not correctly installed.
Anyway you have a wrong version of rails, it is supposed
to be 2.3.14.2; and possibly of rake too.

RE: Error on Debian update - Added by Cool Fire almost 11 years ago

I see. I'll have to run redmine on it's own machine from now on then.

RE: Error on Debian update - Added by Jan Niggemann (redmine.org team member) almost 11 years ago

Cool Fire, Debian has 1.4.4 which is already out of support, please consider using a recent version.
Read InstallRedmineOnDebianStableApacheMysqlPassenger or http://files.hz6.de/redmine/InstallingRedmine_EN.pdf, it's not difficult...

RE: Error on Debian update - Added by Martin Denizet (redmine.org team member) almost 11 years ago

Jan Niggemann wrote:

Cool Fire, Debian has 1.4.4 which is already out of support, please consider using a recent version.
Read InstallRedmineOnDebianStableApacheMysqlPassenger or http://files.hz6.de/redmine/InstallingRedmine_EN.pdf, it's not difficult...

I support that. Debian/Ubuntu packages are outdated, I had some trouble when using them.
I recommend you do a clean install using rvm.
If you need help tell me, I'll write a tutorial for Debian 7

RE: Error on Debian update - Added by Jan Niggemann (redmine.org team member) almost 11 years ago

Martin Denizet wrote:

I'll write a tutorial for Debian 7

What's wrong with InstallRedmineOnDebianStableApacheMysqlPassenger for Wheezy?

RE: Error on Debian update - Added by Martin Denizet (redmine.org team member) almost 11 years ago

Jan Niggemann wrote:

Martin Denizet wrote:

I'll write a tutorial for Debian 7

What's wrong with InstallRedmineOnDebianStableApacheMysqlPassenger for Wheezy?

Sorry, I didn't see it. Nothing wrong with it. I prefer to use rvm but that's really a detail. Thank you for that article!

RE: Error on Debian update - Added by Cool Fire almost 11 years ago

Thanks for the help everyone.
I wound up using the debian install guide to set up 2.3.3 on it's own VM.

RE: Error on Debian update - Added by Jan Niggemann (redmine.org team member) almost 11 years ago

Do you think the guide needs changes / improvements? I always like to get some feedback on that one...

RE: Error on Debian update - Added by asbesto molesto over 10 years ago

OK - we got all this. but...

the most important thing: HOW to solve?

I have the same error after an apt-get update.

HOW can I solve this please? :(

Thank you anybody for any help, I don't know where to put hands - NEVER used ruby, rails or this stuff. I only manage this server for a friend and I suppose redmine stopped working! :(

RE: Error on Debian update - Added by Martin Denizet (redmine.org team member) over 10 years ago

It seems to be a problem specific to the Debian package, you may want to have a look to the package bugs: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=redmine;dist=stable (For Debian stable).
Otherwise, it doesn't take long to make a new install: http://martin-denizet.com/30-minutes-to-redmine-an-express-installation-guide/

Cheers,

RE: Error on Debian update - Added by asbesto molesto over 10 years ago

Ok but REINSTALL a production site... is NOT a solution! :(

    (1-11/11)