Добрый день. Подскажите что делаю не так, ни как не могу обновить редмайн.
Есть сервер c Ubuntu 14 и RedMIne 3.2.0 Я его клонировал что бы попробовать обновить. Для начала обновил убунту до 16 версии. После обновления старый редмайн запускается норм. Далее по ниструкции
http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
Сам редмайн с правами redmine:redmine
Далее по инструкции. Качаю архив с 4.0.0 извлекаю в папку /opt/ где хранится 3.2.0 Даю права папке /opt/redmine-4.0.0 для пользователя redmine.
Далее по инструкции копирую нужны файлы и директории из старого редмайна в новый с сохранением прав.
Далее запускаю
bundle exec rake generate_secret_token
Выдает ошибку. Делаю purge ruby, install ruby-full
Далее rm /usr/local/bin/bundle и gem install bundler После чего комманда срабатывает.
svn update пропускаю.
Делаю комманды
sudo bundle exec rake db:migrate RAILS_ENV=production
sudo bundle exec rake redmine:plugins:migrate RAILS_ENV=production
sudo bundle exec rake tmp:cache:clear RAILS_ENV=production
В итоге сайт не работает, выдаёт:
We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly.
лог файл
App 30358 stdout:
App 30358 stdout:
[ 2018-12-29 05:21:13.9429 15671/7fea89ef9700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /opt/redmine-4.0.0: An error occurred while starting up the preloader.
Error ID: 6600e00b
Error details saved to: /tmp/passenger-error-k6B1RE.html
Message from application: <p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
<pre class="commands">bundle install</pre>
<p>If that didn't work, then the problem is probably caused by your application being run under a different environment than it's supposed to. Please check the following:</p>
<ol>
<li>Is this app supposed to be run as the <code>redmine</code> user?</li>
<li>Is this app being run on the correct Ruby interpreter? Below you will
see which Ruby interpreter Phusion Passenger attempted to use.</li>
<li>Please check whether the correct RVM gemset is being used.</li>
<li>Sometimes, RVM gemsets may be broken.
<a href="https://github.com/phusion/passenger/wiki/Resetting-RVM-gemsets">Try resetting them.</a></li>
</ol>
<p>-------- The exception is as follows: -------</p>
Could not find activesupport-5.2.2 in any of the sources (Bundler::GemNotFound)
<pre> /home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/spec_set.rb:94:in `block in materialize'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `map!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/spec_set.rb:87:in `materialize'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/definition.rb:137:in `specs'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/definition.rb:182:in `specs_for'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/definition.rb:171:in `requested_specs'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/environment.rb:18:in `requested_specs'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:13:in `setup'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler.rb:92:in `setup'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/setup.rb:18:in `<top (required)>'
/home/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/redmine/.rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:430:in `activate_gem'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:297:in `block in run_load_path_setup_code'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:435:in `running_bundler'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:296:in `run_load_path_setup_code'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/helper-scripts/rack-preloader.rb:100:in `preload_app'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/helper-scripts/rack-preloader.rb:29:in `<main>'</pre>
[ 2018-12-29 05:21:13.9488 15671/7fea8b7fe700 age/Cor/Con/CheckoutSession.cpp:277 ]: [Client 2-6] Cannot checkout session because a spawning error occurred. The identifier of the error is 6600e00b. Please see earlier logs for details about the error.
И ничего не могу поделать с этим...