升级redmine 2.3.3到2.5.1不起作用

时间:2014-05-01 16:42:11

标签: svn redmine

我有一个turnkeylinux(v13.0)redmine设备(redmine v2.2.3)。 我尝试将v2.2.3升级到v2.5.1并按照升级说明进行操作。

我没有收到任何错误,但我的版本仍然是v2.2.3! 我做错了什么?

RAILS_ENV =生产脚本/关于:

root@tkredmine www/redmine# RAILS_ENV=production  script/about
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
/var/lib/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.

Environment:
  Redmine version                          2.2.3.stable
  Ruby version                             1.9.3 (x86_64-linux)
  Rails version                            3.2.12
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed

我为升级redmine所做的步骤(如文档中所述)

root@tkredmine /# cd /var/www/redmine
root@tkredmine www/redmine# svn
Type 'svn help' for usage.
root@tkredmine www/redmine# svn update
Skipped '.'
root@tkredmine www/redmine# bundle update
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Resolving dependencies...
Using rake (10.3.1)
Using i18n (0.6.9)
Using multi_json (1.9.3)
Using activesupport (3.2.12)
Using builder (3.0.0)
Using activemodel (3.2.12)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.5)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.2.2)
Using actionpack (3.2.12)
Using mime-types (1.25.1)
Using polyglot (0.3.4)
Using treetop (1.4.15)
Using mail (2.4.4)
Using actionmailer (3.2.12)
Using arel (3.0.3)
Using tzinfo (0.3.39)
Using activerecord (3.2.12)
Using activeresource (3.2.12)
Using bundler (1.3.5)
Using coderay (1.0.9)
Using rack-ssl (1.3.4)
Using json (1.8.1)
Using rdoc (3.12.2)
Using thor (0.19.1)
Using railties (3.2.12)
Using jquery-rails (2.0.3)
Using metaclass (0.0.4)
Using mocha (0.12.3)
Using mysql2 (0.3.15)
Using net-ldap (0.3.1)
Using pg (0.17.1)
Using ruby-openid (2.1.8)
Using rack-openid (1.4.2)
Using rails (3.2.12)
Using shoulda (2.11.3)
Using sqlite3 (1.3.9)
Using test-unit (2.5.5)
Using yard (0.8.7.4)
Your bundle is updated!
Gems in the groups rmagick and install were not installed.
root@tkredmine www/redmine# rake db:migrate RAILS_ENV=production
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
root@tkredmine www/redmine# rake redmine:plugins:migrate RAILS_ENV=production
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
root@tkredmine www/redmine# rake tmp:cache:clear
root@tkredmine www/redmine# rake tmp:sessions:clear

我试图按照文档中的说法重启乘客,但我不知道怎么做。 你是怎样做的? 我确实重新启动了apache2,甚至重新启动了,但这都不起作用

有什么建议吗?

更新:我按照下面的建议(感谢@nanego!),并进行了svn升级,但现在我在apache日志中收到此错误:我现在得到这个apache错误日志

`05-05 15:21:39.3335 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr] 
[ 2014-05-05 15:21:39.3336 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr] ArgumentError (A secret is required to generate an integrity hash for cookie session data. Use config.secret_token = "some secret phrase of at least 30 characters"in config/initializers/secret_token.rb):
[ 2014-05-05 15:21:39.3336 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:319:in `ensure_secret_secure'
[ 2014-05-05 15:21:39.3336 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:284:in `initialize'
[ 2014-05-05 15:21:39.3336 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:231:in `new'
[ 2014-05-05 15:21:39.3336 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:231:in `signed'
[ 2014-05-05 15:21:39.3336 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/session/cookie_store.rb:50:in `block in unpacked_cookie_data'
[ 2014-05-05 15:21:39.3337 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/session/abstract_store.rb:57:in `stale_session_check!'
[ 2014-05-05 15:21:39.3337 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/session/cookie_store.rb:48:in `unpacked_cookie_data'
[ 2014-05-05 15:21:39.3337 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/cookie.rb:107:in `extract_session_id'
[ 2014-05-05 15:21:39.3337 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/session/abstract_store.rb:53:in `block in extract_session_id'
[ 2014-05-05 15:21:39.3337 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/session/abstract_store.rb:57:in `stale_session_check!'
[ 2014-05-05 15:21:39.3338 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/session/abstract_store.rb:53:in `extract_session_id'
[ 2014-05-05 15:21:39.3338 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:43:in `load_session_id!'
[ 2014-05-05 15:21:39.3338 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:32:in `[]'
[ 2014-05-05 15:21:39.3338 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:267:in `current_session_id'
[ 2014-05-05 15:21:39.3338 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:273:in `session_exists?'
[ 2014-05-05 15:21:39.3339 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:107:in `exists?'
[ 2014-05-05 15:21:39.3339 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:127:in `load_for_read!'
[ 2014-05-05 15:21:39.3339 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:64:in `has_key?'
[ 2014-05-05 15:21:39.3339 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/flash.rb:258:in `ensure in call'
[ 2014-05-05 15:21:39.3340 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/flash.rb:259:in `call'
[ 2014-05-05 15:21:39.3340 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
[ 2014-05-05 15:21:39.3340 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
[ 2014-05-05 15:21:39.3340 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:341:in `call'
[ 2014-05-05 15:21:39.3340 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activerecord (3.2.17) lib/active_record/query_cache.rb:64:in `call'
[ 2014-05-05 15:21:39.3341 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activerecord (3.2.17) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
[ 2014-05-05 15:21:39.3341 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
[ 2014-05-05 15:21:39.3341 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `_run__2692797002708509105__call__4121954948629708039__callbacks'
[ 2014-05-05 15:21:39.3341 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activesupport (3.2.17) lib/active_support/callbacks.rb:405:in `__run_callback'
[ 2014-05-05 15:21:39.3341 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activesupport (3.2.17) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
[ 2014-05-05 15:21:39.3342 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activesupport (3.2.17) lib/active_support/callbacks.rb:81:in `run_callbacks'
[ 2014-05-05 15:21:39.3342 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
[ 2014-05-05 15:21:39.3342 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
[ 2014-05-05 15:21:39.3342 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
[ 2014-05-05 15:21:39.3342 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
[ 2014-05-05 15:21:39.3343 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   railties (3.2.17) lib/rails/rack/logger.rb:32:in `call_app'
[ 2014-05-05 15:21:39.3343 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   railties (3.2.17) lib/rails/rack/logger.rb:16:in `block in call'
[ 2014-05-05 15:21:39.3343 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activesupport (3.2.17) lib/active_support/tagged_logging.rb:22:in `tagged'
[ 2014-05-05 15:21:39.3343 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   railties (3.2.17) lib/rails/rack/logger.rb:16:in `call'
[ 2014-05-05 15:21:39.3343 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/request_id.rb:22:in `call'
[ 2014-05-05 15:21:39.3344 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
[ 2014-05-05 15:21:39.3344 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/runtime.rb:17:in `call'
[ 2014-05-05 15:21:39.3344 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   activesupport (3.2.17) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
[ 2014-05-05 15:21:39.3344 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack (1.4.5) lib/rack/lock.rb:15:in `call'
[ 2014-05-05 15:21:39.3344 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   actionpack (3.2.17) lib/action_dispatch/middleware/static.rb:63:in `call'
[ 2014-05-05 15:21:39.3345 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
[ 2014-05-05 15:21:39.3345 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch'
[ 2014-05-05 15:21:39.3345 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup'
[ 2014-05-05 15:21:39.3345 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!'
[ 2014-05-05 15:21:39.3345 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
[ 2014-05-05 15:21:39.3346 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   railties (3.2.17) lib/rails/engine.rb:484:in `call'
[ 2014-05-05 15:21:39.3346 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   railties 
[ 2014-05-05 15:21:39.3346 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr] (3.2.17) lib/rails/application.rb:231:in `call'
[ 2014-05-05 15:21:39.3346 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   railties (3.2.17) lib/rails/railtie/configurable.rb:30:in `method_missing'
[ 2014-05-05 15:21:39.3347 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   passenger (4.0.20) lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
[ 2014-05-05 15:21:39.3347 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   passenger (4.0.20) lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
[ 2014-05-05 15:21:39.3347 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   passenger (4.0.20) lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
[ 2014-05-05 15:21:39.3347 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr]   passenger (4.0.20) lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
[ 2014-05-05 15:21:39.3347 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr] 
[ 2014-05-05 15:21:39.3348 175/7f60167f8700 Pool2/Implementation.cpp:1274 ]: [App 2905 stderr] `

感谢您的建议

2 个答案:

答案 0 :(得分:2)

您知道您当前的SVN分支是什么吗?

您可以使用此命令来了解它:

svn info | grep URL

似乎" svn更新"命令没有更新你的Redmine版本。

您应该尝试更改当前使用的分支并切换到2.5:

svn switch http://svn.redmine.org/redmine/branches/2.5-stable

答案 1 :(得分:1)

升级后,您可能需要再次为www文件夹声明所有权。

我没有运气做SVN选项。这就是我做的事情

我有很多问题试图只进行一次演练,所以我将很多拼凑在一起并找到了有效的方法。我不是这方面的专家,也不是新手....我只是在快照,然后试错的vshpere。最后让它工作,我相信下面是我使用的唯一命令。

这一切都是通过2.2.3的基线交钥匙redmine完成的。我有一些插件我想尝试哪个需要升级......所以这里是......

如果您对locales / en.yml进行了任何更改,则必须再次执行此操作。我不建议复制该文件,因为更新可能有一些与旧版本不相关的其他语言关联。

SNAPSHOT VM FIRST !!! **

cd /var/www/ mv redmine redmine-old wget http://www.redmine.org/releases/redmine-2.5.2.zip unzip redmine-2.5.2.zip -d /var/www/ mv redmine-2.5.2 redmine cp redmine-old/config/database.yml redmine/config/database.yml cp redmine-old/config/configuration.yml redmine/config/configuration.yml cp -r redmine-old/files redmine/ cp -r redmine-old/plugins redmine/ bundle install --without development test rmagick bundle exec rake generate_secret_token bundle exec rake db:migrate RAILS_ENV=production bundle exec rake redmine:plugins:migrate RAILS_ENV=production cd redmine chown -R root:www-data /var/www/redmine chown -R www-data:www-data files/ log/ tmp/ public/plugin_assets reboot

以admin => administration =>信息登录您的网络服务器 你应该看到它已经升级了。确保插件写访问没有错误。您可能必须进入并更改某些内容的所有权。这是我的时髦,我忘了我做了什么,所以我认为上面的命令是我做的但不确定。