Project

General

Profile

Update possible without errors?

Added by Sebastian Kruse almost 12 years ago

Is it possible to update from this settings:

Environment:
Redmine version 2.1.4.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.8
Environment production
Database adapter MySQL

to the latest 2.2.X Redmine without any problems?


Replies (30)

RE: Update possible without errors? - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

IMHO yes, there shouldn't be any problems.
May I strongly suggest you update the whole stack, ruby to 1.9.x, rails to 3.2.11 (3.2.8 has security issues)?
Remember to change the adapter from mysql to mysql2 in you config once you've finished...

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

I just tried to perform an update of ruby..
I use the following command: "gem update"

But now their is an error on my redmine site? What is going wrong their? -> https://redmine.kruse-familie.eu/

RE: Update possible without errors? - Added by Harry Garrood almost 12 years ago

`gem update` will only update installed gems. Updating ruby depends on how you installed it in the first place. I think debian-based distros have ruby 1.9 packaged (`apt-get install ruby1.9` or something)

re your website: I don't think there's much we can do, sorry :( looks like you need to check the logs

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

I use this tutorial to install redmine on my server first: http://kruse-familie.eu/?p=52
"apt-get install ruby1.9" did nothing change. :(

I tried to update ruby again with this tutorial: https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm also i performend a update of redmine with the latest svn (svn co http://svn.redmine.org/redmine/branches/2.2-stable redmine-2.2). But again - nothing change from the error... my previous configuration works without problems..

Whre can I find the logs for the redmine problems? Is this the normal apache2 log?

RE: Update possible without errors? - Added by Harry Garrood almost 12 years ago

have you restarted redmine? have you checked that ruby 1.9 is really installed? if so, is redmine definitely running on ruby 1.9?
We can't really help if you don't give details about the errors -- contents of /path/to/redmine/log/${ENV}.log would be a good start

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Ok, I will try to give this informations.

On "*dpkg -l | grep ruby*" I recieve this:

ii libbreakpoint-ruby1.8 0.5.1-2
ii libbuilder-ruby 2.1.2-2
ii libbuilder-ruby1.8 2.1.2-2
ii libcmdparse2-ruby1.8 2.0.2-2
ii libdaemons-ruby1.8 1.0.10-2
ii libdbm-ruby 4.2
ii libdbm-ruby1.8 1.8.7.249-2ubuntu0.2
ii liberb-ruby 4.2
ii libgdbm-ruby 4.2
ii libgdbm-ruby1.8 1.8.7.249-2ubuntu0.2
ii libgemplugin-ruby 0.2.3-2
ii libgemplugin-ruby1.8 0.2.3-2
ii liblog4r-ruby1.8 1.0.5-8
ii libmmap-ruby1.8 0.2.6-3
ii libmocha-ruby 0.9.8-1
ii libmocha-ruby1.8 0.9.8-1
ii libncurses-ruby1.8 1.2.4-2
ii libopenssl-ruby 4.2
ii libopenssl-ruby1.8 1.8.7.249-2ubuntu0.2
ii librack-ruby 1.1.0-3
ii librack-ruby1.8 1.1.0-3
ii libreadline-ruby 4.2
ii libreadline-ruby1.8 1.8.7.249-2ubuntu0.2
ii libredcloth-ruby 4.2.2-1.1
ii libredcloth-ruby1.8 4.2.2-1.1
ii libruby 4.2
ii libruby-extras 0.5
ii libruby1.8 1.8.7.249-2ubuntu0.2
ii libruby1.8-extras 0.5
ii libruby1.9 1.9.0.5-1ubuntu2
ii libsqlite3-ruby 1.2.4-2.1
ii libsqlite3-ruby1.8 1.2.4-2.1
ii libtcltk-ruby 4.2
ii libtcltk-ruby1.8 1.8.7.249-2ubuntu0.2
ii libxml-simple-ruby 1.0.12-1
ii rails 2.2.3-2ubuntu0.1
ii rake 0.8.7-1
ii rdoc 4.2
ii ruby 4.2
ii ruby-elisp 4.2
ii ruby-full 4.2
ii ruby1.8 1.8.7.249-2ubuntu0.2
ii ruby1.8-dev 1.8.7.249-2ubuntu0.2
ii ruby1.8-elisp 1.8.7.249-2ubuntu0.2
ii ruby1.9 1.9.0.5-1ubuntu2
ii rubygems 1.3.5-1ubuntu2
ii rubygems1.8 1.3.5-1ubuntu2

In the "log"-directory of my redmine installation is no *.log file - only "delete.me" is their.

RE: Update possible without errors? - Added by Harry Garrood almost 12 years ago

Ok then, perhaps you need to look at the apache log (not sure where that will be)
What command do you use to start redmine, if any?

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Redmine will started by apache.

<VirtualHost *:80>
ServerAlias redmine.kruse-familie.eu
Redirect / https://redmine.kruse-familie.eu
</VirtualHost>

<VirtualHost *:443>
SSLEngine On
SSLCertificateFile /etc/keys/redmine.ssl.crt
SSLCertificateKeyFile /etc/keys/redmine.ssl.key
SSLCertificateChainFile /etc/keys/sub.class1.server.ca.pem
SSLCACertificateFile /etc/keys/ca.pem

DocumentRoot /var/www/redmine
ServerName redmine.kruse-familie.eu
ServerPath /redmine/

ErrorLog /var/log/apache2/error-redmine.log
LogLevel warn
CustomLog /var/log/apache2/access-redmine.log combined

<Directory /var/www/redmine/>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
</VirtualHost>

And this is my configuration for redmine. On the apache log is also nothing about any error.. :(

RE: Update possible without errors? - Added by Harry Garrood almost 12 years ago

You should check that the correct ruby is being used. Also before getting it working with apache, it might be worth trying to get rails working on its own -- try going to /usr/share/redmine (or wherever it is) and do

RAILS_ENV=production bundle exec rails server
(or whatever env you usually use)

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

For this command I geht this response:

=> Booting WEBrick
=> Rails 3.2.11 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/local/rvm/gems/ruby-1.9.3-p374@global/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysql is not part of the bundle. Add it to Gemfile.) (LoadError)
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/mysql_adapter.rb:5:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/base.rb:720:in `<top (required)>'
from /usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
from /usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
from /usr/share/redmine/config/initializers/00-core_plugins.rb:12: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/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/engine.rb:587:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/engine.rb:587:in `block in <class:Engine>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/share/redmine/config.ru:3:in `require'
from /usr/share/redmine/config.ru:3:in `block in <main>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/builder.rb:51:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/builder.rb:51:in `initialize'
from /usr/share/redmine/config.ru:in `new'
from /usr/share/redmine/config.ru:in `<main>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/builder.rb:40:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/server.rb:200:in `app'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/commands/server.rb:46:in `app'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/server.rb:304:in `wrapped_app'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/rack-1.4.4/lib/rack/server.rb:254:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/commands/server.rb:70:in `start'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/commands.rb:55:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Ok, I change something in my configuration based on a Redmine 2.2.X tutorial. Now I geht for "*RAILS_ENV=production bundle exec rails server*" this result:

=> Booting WEBrick
=> Rails 3.2.11 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
/usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
[2013-02-06 21:26:10] INFO WEBrick 1.3.1
[2013-02-06 21:26:10] INFO ruby 1.9.3 (2013-01-15) [x86_64-linux]
[2013-02-06 21:26:10] INFO WEBrick::HTTPServer#start: pid=27809 port=3000

but the server still not work look at https://redmine.kruse-familie.eu/

EDIT: Ok, the error message did change too on my website. Now I geht this: "Could not find metaclass-0.0.1 in any of the sources (Bundler::GemNotFound)" as error message but wich gem is this? their is nothing on apt-get install or gem install with this name.

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Hmm I don't know what's happend... I turn back my database configuration adapter from mysql2 to mysql and now this work. I get an error on "RAILS_ENV=production bundle exec rails server" but the website works.. :o

EDIT: But now there are many errors in my redmine <.< if I navigate to a project and want to see the tickets i get an intenral server error...
It looks like the complete permission system is crashed... I can't checkout my repositorys or watch anything into a project anymore...

EDIT 2: This did only occured if I try to access any subcategorie inside a project that contains elements. It is possible that the database did change between redmine 2.1.4 and 2.2.2? And why did Redmine use Ruby 1.8.7? Where can I tell him to use 1.9.x?

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Ok the log works now and their is this error, any one an idea about this error?

Started GET "/projects/rss-to-me/issues" for 79.197.136.150 at Wed Feb 06 21:55:11 +0100 2013
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"rss-to-me"}
Current user: sebastian (id=1)
Rendered queries/_filters.html.erb (29.9ms)
Rendered queries/_columns.html.erb (5.6ms)
Rendered issues/_list.html.erb (16.0ms)
Rendered issues/index.html.erb within layouts/base (61.5ms)
Completed 500 Internal Server Error in 151ms

ActionView::Template::Error (undefined local variable or method `position_name' for #<IssuePriority:0x2ac9f98f0c80>):
29: </td>
30: </tr>
31: <% previous_group = group >
32: <
end >
33: <tr id="issue-<
= issue.id >" class="hascontextmenu <= cycle('odd', 'even') > <= issue.css_classes > <= level > 0 ? "idnt idnt-#{level}" : nil >">
34: <td class="checkbox hide-when-print"><
= check_box_tag("ids[]", issue.id, false, :id => nil) ></td>
35: <td class="id"><
= link_to issue.id, issue_path(issue) %></td>
app/models/issue_priority.rb:39:in `css_classes'
app/models/issue.rb:939:in `css_classes'
app/views/issues/_list.html.erb:32:in `_app_views_issues__list_html_erb__1651667054_23523484668240'
app/helpers/issues_helper.rb:29:in `issue_list'
app/helpers/issues_helper.rb:25:in `each'
app/helpers/issues_helper.rb:25:in `issue_list'
app/views/issues/_list.html.erb:19:in `_app_views_issues__list_html_erb__1651667054_23523484668240'
app/views/issues/_list.html.erb:1:in `_app_views_issues__list_html_erb__1651667054_23523484668240'
app/views/issues/index.html.erb:62:in `_app_views_issues_index_html_erb__841582362_23523482057280'
app/controllers/issues_controller.rb:83
app/controllers/issues_controller.rb:82:in `index'

it occurse if I try to access the tickets of my "rss-to-me" project.

RE: Update possible without errors? - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

And I had told you to use the mysql2 adapter :-)
Do you use plugins?
Please post the output of RAILS_ENV=YOUR_ENVIRONMENT script/about

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

If I use mysql2 adapter and run your command I get this repsonse:

You did not specify how you would like Rails to report deprecation notices for your YOUR_ENVIRONMENT environment, please set config.active_support.deprecation to :log, :notify or :stderr at config/environments/YOUR_ENVIRONMENT.rb
/usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:47:in `resolve_hash_connection': database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/railtie.rb:82:in `block (2 levels) in <class:Railtie>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/base.rb:720:in `<top (required)>'
from /usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
from /usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
from /usr/share/redmine/config/initializers/00-core_plugins.rb:12: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/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `block in load'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:245:in `load'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/engine.rb:587:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/engine.rb:587:in `block in <class:Engine>'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
from /usr/local/rvm/gems/ruby-1.9.3-p374/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /usr/share/redmine/config/environment.rb:14:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/local/rvm/rubies/ruby-1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from script/about:4:in `<main>'

Redmine runs under ruby 1.8.7 instead of 1.9.x - I don't know why and I do not have access to any already existing ticket, ticket-list, project achiev or something else.. :(

Additional if I use mysql2 adapter the page will not work and crash with an error: https://redmine.kruse-familie.eu/

RE: Update possible without errors? - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

Obviously you have to replace YOUR_ENVIRONMENT with your environment, you know, the thingy you specify in the database.yml...

Why don't you just uninstall the old ruby 1.8? I don't use Ubuntu, but at least apt-get and dpkg are present..
What application server do you use? It's entirely possible that it's passenger, also known as mod_rails. Look at the output of apachectl -t -D DUMP_MODULES to find out... If you're using passenger, you have to specify which version of ruby it should use (PassengerRuby)...

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

My passenger configuration is this one:

<IfModule mod_passenger.c>
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.19
PassengerRuby /usr/bin/ruby1.9

#PassengerRoot /usr
#PassengerRuby /usr/bin/ruby

PassengerDefaultUser www-data
</IfModule>

I think that the "PassengerRoot" is not correct but their isn't a 1.9 folder inside of gems. And wich of my ruby moduls can be uninstalled (see list above)? Only the ruby1.8? Redmine is the only application with ruby on my server.

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

What did you mean with "Obviously you have to replace YOUR_ENVIRONMENT with your environment, you know, the thingy you specify in the database.yml..."? The only part in their is this:

production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: ***
encoding: utf8

And your command "apachectl -t -D DUMP_MODULES" could not be executet. Their is no apachectl and also no one in the package manager.

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

So... I'am back at a running state after this tutorial: http://bitprison.net/install_passenger_ruby_1.9.2

But again... If I select some Ticket or the Project Achieve in a Redmine Project it comes to an Internal Server Error :((
This is the current log output:

Started GET "/projects/rss-to-me?jump=overview" for 79.197.136.150 at 2013-02-06 23:34:22 +0100
Processing by ProjectsController#show as HTML
Parameters: {"jump"=>"overview", "id"=>"rss-to-me"}
Current user: sebastian (id=1)
Redirected to https://redmine.kruse-familie.eu/projects/rss-to-me
Completed 302 Found in 10ms (ActiveRecord: 0.5ms)
Started GET "/projects/rss-to-me" for 79.197.136.150 at 2013-02-06 23:34:22 +0100
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"rss-to-me"}
Current user: sebastian (id=1)
Rendered projects/_members_box.html.erb (1.3ms)
Rendered projects/show.html.erb within layouts/base (12.8ms)
Completed 200 OK in 120ms (Views: 82.5ms | ActiveRecord: 2.8ms)
Started GET "/projects/rss-to-me/issues" for 79.197.136.150 at 2013-02-06 23:34:23 +0100
Processing by IssuesController#index as HTML
Parameters: {"project_id"=>"rss-to-me"}
Current user: sebastian (id=1)
Rendered queries/_filters.html.erb (16.8ms)
Rendered queries/_columns.html.erb (3.4ms)
Rendered issues/_list.html.erb (10.9ms)
Rendered issues/index.html.erb within layouts/base (37.7ms)
Completed 500 Internal Server Error in 169ms

ActionView::Template::Error (undefined local variable or method `position_name' for #<IssuePriority:0x0000000edf8870>):
29: </td>
30: </tr>
31: <% previous_group = group >
32: <
end >
33: <tr id="issue-<
= issue.id >" class="hascontextmenu <= cycle('odd', 'even') > <= issue.css_classes > <= level > 0 ? "idnt idnt-#{level}" : nil >">
34: <td class="checkbox hide-when-print"><
= check_box_tag("ids[]", issue.id, false, :id => nil) ></td>
35: <td class="id"><
= link_to issue.id, issue_path(issue) %></td>
app/models/issue_priority.rb:39:in `css_classes'
app/models/issue.rb:939:in `css_classes'
app/views/issues/_list.html.erb:32:in `block (2 levels) in app_views_issues_list_html_erb__3996645123373263396_117565460'
app/helpers/issues_helper.rb:29:in `block in issue_list'
app/helpers/issues_helper.rb:25:in `each'
app/helpers/issues_helper.rb:25:in `issue_list'
app/views/issues/_list.html.erb:19:in `block in app_views_issues_list_html_erb__3996645123373263396_117565460'
app/views/issues/_list.html.erb:1:in `_app_views_issues__list_html_erb__3996645123373263396_117565460'
app/views/issues/index.html.erb:62:in `_app_views_issues_index_html_erb__3506413611504381294_116812420'
app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
app/controllers/issues_controller.rb:82:in `index'

what exactly does this mean "undefined local variable or method `position_name' for"??

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

What I just seen in the log file is, that I got many errors on SQL for missing columns. Could it be that the database hast changed between 2.1.4 and 2.2.2? And how can I fix this without data lost?? Or isn't this my problem ?

RE: Update possible without errors? - Added by Harry Garrood almost 12 years ago

rake db:migrate RAILS_ENV=your_env

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Ok I got it...

AddJournalsPrivateNotes: migrating ======================================
-- add_column(:journals, :private_notes, :boolean, {:default=>false, :null=>false})
-> 0.0184s
AddJournalsPrivateNotes: migrated (0.0185s) ============================= AddEnumerationsPositionName: migrating ==================================
-- add_column(:enumerations, :position_name, :string, {:limit=>30})
-> 0.0742s
AddEnumerationsPositionName: migrated (0.0744s) ========================= PopulateEnumerationsPositionName: migrating =============================
PopulateEnumerationsPositionName: migrated (0.0630s) ====================

is the difference... but what is with my existing data? Could be their any problems for missing data or something else?
Edit: My repositorys are still broken... The login for there was linked to redmine..

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

For my Mercurial integration I use this Tutorial - did I need to change something?
http://www.redmine.org/projects/redmine/wiki/HowToInstallRedmineOnUbuntuServer#Mercurial-Integration

I also use the svn, e-mail integration and automatic refresh of repositorys from their.
If I need to change something please tell me what.

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Alright, another status update. Subversion works and e-mail integration too. Only Automatic refresh of repositorys and Mercurial will not work... Anybody an idea? I can't find something wrong their but there still not work :( also there are no errors in any logfile yet...

RE: Update possible without errors? - Added by Sebastian Kruse almost 12 years ago

Hmm.. no one an idea how to fix this issue?

Currently I figure out that the website for my repository does work but not the clone with TortoiseHg - but this works too before I perform the update of redmine and ruby.

The output of TortoiseHg is this one:

% hg clone --verbose -- https://url-to-repository/
http authorization required
realm: Redmine Mercurial Repository
destination directory: repository-directory
requesting all changes
adding changesets
adding manifests
adding file changes
added 7 changesets with 71 changes to 57 files
HTTP-Fehler: 500 (Internal Server Error)
[Der Befehl gab den Wert 255 zurück Thu Feb 07 10:13:55 2013]

Is their any logfile for mercurial or did someone knows this problem here? I use redmine authentication for mercurial - on subversion everything works fine. Also the repository sync of redmine is still not working.

EDIT: Here are the latest logfiles from my apache2: http://kruse-familie.eu/storage/apache2-logs.zip
But the Mercurial error isn't their. Only some other errors about redmine and repository authentication.

(1-25/30)