LINUX.ORG.RU

обновление Redmine Passenger Apache2

 


0

1

Бьюсь с переходом редмайна с версии 3.2 на 4.0. После обновление ОС и редмайна, была проблема с версие руби, после установки rvm и passenger module для выбора версии ruby редмайн заработал, но появилась другая проблема, при копирование дополнений из старого редмайна в новый /plugins сайт перестаёт работать в логах выдает такое.

App 16586 stdout:
App 16586 stderr: /opt/redmine-4.0.0/plugins/redmine_issue_checklist/init.rb:24: warning: key :issue_checklist is duplicated and overwritten on line 24
App 16586 stdout:
[ 2019-01-09 15:55:27.8417 14837/7fe96c22a700 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: c84dbb99
  Error details saved to: /tmp/passenger-error-v1zYse.html
  Message from application: undefined method `alias_method_chain' for Issue (call 'Issue.connection' to establish a connection):Class
Did you mean?  alias_method (NoMethodError)
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
  /opt/redmine-4.0.0/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/patches/issue_patch.rb:11:in `block in included'
  /opt/redmine-4.0.0/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/patches/issue_patch.rb:10:in `class_eval'
  /opt/redmine-4.0.0/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/patches/issue_patch.rb:10:in `included'
  /opt/redmine-4.0.0/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/patches/issue_patch.rb:58:in `include'
  /opt/redmine-4.0.0/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/patches/issue_patch.rb:58:in `<top (required)>'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
  /opt/redmine-4.0.0/plugins/redmine_issue_checklist/lib/redmine_issue_checklist/redmine_issue_checklist.rb:5:in `block in <top (required)>'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:in `instance_exec'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:in `block in make_lambda'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:in `catch'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:in `block in default_terminator'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:199:in `block in halting'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in `block in invoke_before'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in `each'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in `invoke_before'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:131:in `run_callbacks'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/reloader.rb:89:in `prepare!'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application/finisher.rb:63:in `block in <module:Finisher>'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `instance_exec'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in `run'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in `block in run_initializers'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `call'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
  /usr/share/rvm/rubies/ruby-2.5.3/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in `run_initializers'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:in `initialize!'
  /opt/redmine-4.0.0/config/environment.rb:14:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/builder.rb:55:in `instance_eval'
  /opt/redmine-4.0.0/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/helper-scripts/rack-preloader.rb:110:in `eval'
  /home/redmine/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.24/src/helper-scripts/rack-preloader.rb:110: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>'


[ 2019-01-09 15:55:27.8478 14837/7fe96e330700 age/Cor/Con/CheckoutSession.cpp:277 ]: [Client 1-3] Cannot checkout session because a spawning error occurred. The identifier of the error is c84dbb99. Please see earlier logs for details about the error.

ruby -v ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]

конфиг Apache2

<VirtualHost *:80>
   Redirect / https://docs1.site.ru/
</VirtualHost>

<VirtualHost *:443>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com
        SSLEngine on
        SSLCertificateFile /etc/ssl/ssl.ru.crt
        SSLCertificateKeyFile /etc/ssl/ssl.ru.key
        PassengerRuby /home/redmine/.rvm/wrappers/ruby-2.5.3/ruby

        ServerAdmin webmaster@localhost
        DocumentRoot /opt/redmine-4.0.0/public
        <Directory /opt/redmine-4.0.0/public >
                AllowOverride all
                Options -MultiViews
                # Uncomment this if you're on Apache >= 2.4:
                Require all granted
                #PassengerUseGlobalQueue on
        </Directory>

#       <Location /login>
#                  AuthType NTLM
#                  NTLMAuth on
#                  NTLMAuthoritative on
#                  NTLMDomain CORP..RU
#                  NTLMServer srv-ad2012-pdc.corp.ru
#                  NTLMBackup srv-ad2012-bdc.corp.ru
#                  require valid-user
#        </Location>



        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


видимо, новый процесс стартует при запущеном старом видимо нужно apt purge & ручная чистка катологов затем ребут либо аналоги и лишь затем инсталл

либо шаманизм со службами --------------- upd полагаю несовместимость компиляторов...

dashiells1xssanlgk
()
Ответ на: комментарий от dashiells1xssanlgk

Спасибо, разобрался) Оказывается Просто редмайн 4.0 уже не поддерживает все аддоны которые стояли на 3.4... собственно они и не могут быть установлены.

madcry
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.