Project

General

Profile

Actions

Task #6297

closed

Update redmine on redmine.ungleich.ch

Added by Nico Schottelius almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
12/29/2018
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

Current version:

Environment:
  Redmine version                3.4.1.stable
  Ruby version                   2.3.4-p301 (2017-03-30) [x86_64-linux]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               PostgreSQL
SCM:
  Mercurial                      3.1.2
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  redmine_helpdesk               0.0.15
  redmine_mattermost             0.6

app@redmine:~/redmine$ git describe 
fatal: No tags can describe '6e16ab0c60690dc09b7499e55f7060c294c6b95d'.

Actions #1

Updated by Nico Schottelius almost 6 years ago

app@redmine:~/redmine$ git checkout  -b 4.0-stable origin/4.0-stable
app@redmine:~/redmine$ bundle install --without development test

bundle update
bundle exec rake db:migrate RAILS_ENV=production 

app@redmine:~/redmine$ bundle exec rake db:migrate RAILS_ENV=production 
rake aborted!
NoMethodError: undefined method `alias_method_chain' for Journal (call 'Journal.connection' to establish a connection):Class
Did you mean?  alias_method
/home/app/redmine/plugins/redmine_helpdesk/lib/journal_patch.rb:7:in `block in included'
/home/app/redmine/plugins/redmine_helpdesk/lib/journal_patch.rb:6:in `class_eval'
/home/app/redmine/plugins/redmine_helpdesk/lib/journal_patch.rb:6:in `included'
/home/app/redmine/plugins/redmine_helpdesk/lib/journal_patch.rb:39:in `include'
/home/app/redmine/plugins/redmine_helpdesk/lib/journal_patch.rb:39:in `<top (required)>'
/home/app/redmine/plugins/redmine_helpdesk/init.rb:4:in `<top (required)>'
/home/app/redmine/lib/redmine/plugin.rb:173:in `block in load'
/home/app/redmine/lib/redmine/plugin.rb:164:in `each'
/home/app/redmine/lib/redmine/plugin.rb:164:in `load'
/home/app/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>'
/home/app/redmine/config/environment.rb:14:in `<top (required)>'
/home/app/.rbenv/versions/2.3.4/bin/bundle:22:in `load'
/home/app/.rbenv/versions/2.3.4/bin/bundle:22:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
app@redmine:~/redmine$ 
app@redmine:~/redmine$ mv /home/app/redmine/plugins/redmine_helpdesk ~

app@redmine:~/redmine$ bundle exec rake db:migrate RAILS_ENV=production 
rake aborted!
NoMethodError: undefined method `to_prepare' for ActionDispatch::Callbacks:Class
Did you mean?  to_param
/home/app/redmine/plugins/redmine_mattermost/init.rb:26:in `<top (required)>'
/home/app/redmine/lib/redmine/plugin.rb:173:in `block in load'
/home/app/redmine/lib/redmine/plugin.rb:164:in `each'
/home/app/redmine/lib/redmine/plugin.rb:164:in `load'
/home/app/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>'
/home/app/redmine/config/environment.rb:14:in `<top (required)>'
/home/app/.rbenv/versions/2.3.4/bin/bundle:22:in `load'
/home/app/.rbenv/versions/2.3.4/bin/bundle:22:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
You have new mail in /var/mail/app
app@redmine:~/redmine$ mv /home/app/redmine/plugins/redmine_mattermost ~
app@redmine:~/redmine$ 

app@redmine:~/redmine$ mv /home/app/redmine/plugins/redmine_mattermost ~
app@redmine:~/redmine$ bundle exec rake db:migrate RAILS_ENV=production 
== 20170723112801 RenameCommentsToContent: migrating ==========================
-- rename_column(:comments, :comments, :content)
   -> 0.0086s
== 20170723112801 RenameCommentsToContent: migrated (0.0093s) =================

== 20180913072918 AddVerifyPeerToAuthSources: migrating =======================
-- change_table(:auth_sources)
   -> 0.0551s
== 20180913072918 AddVerifyPeerToAuthSources: migrated (0.0554s) ==============

== 20180923082945 ChangeSqliteBooleansTo0And1: migrating ======================
== 20180923082945 ChangeSqliteBooleansTo0And1: migrated (0.0001s) =============

== 20180923091603 ChangeSqliteBooleansDefault: migrating ======================
== 20180923091603 ChangeSqliteBooleansDefault: migrated (0.0000s) =============

app@redmine:~/redmine$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production
app@redmine:~/redmine$ bundle exec rake tmp:cache:clear RAILS_ENV=production
You have new mail in /var/mail/app
app@redmine:~/redmine$ 

Result:

  • disabled (unused) plugins due to rails / ruby errors
Environment:
  Redmine version                4.0.0.stable
  Ruby version                   2.3.4-p301 (2017-03-30) [x86_64-linux]
  Rails version                  5.2.2
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                sendmail
SCM:
  Mercurial                      3.1.2
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  no plugin installed
Actions #2

Updated by Nico Schottelius almost 6 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF