Content
You are here:
Upgrade failed from 6.0.5 to 6.1
Added by Ming Ming over 8 years ago
Hi,
I am using CENT OS 7 and doing the upgrade of openproject from 6.0.5 to 6.0.1. (installation package openproject x86_64 6.1.0-1478703872.f1ee5ba.centos7 openproject 286 M)
i did the following for upgrade
yum update
openproject configure
openproject reconfigure
service http restart
On the website i got this error message
The Phusion Passenger application server encountered an error while starting your web application. Because you are running this web application in staging or production mode, the details of the error have been omitted from this web page for security reasons. Please read the web server error log to find the details of the error. If you don't know where the web server error log is, read the troubleshooting documentation below. Alternatively, you can turn on the "friendly error pages" feature (see below), which will make Phusion Passenger show many details about the error right in the browser.
This is my apache logfile:
/usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:277:in `block in run_load_path_setup_code' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:404:in `running_bundler' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:99:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>' [ 2016-11-20 11:45:58.6648 27618/7fac0a728700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 2-1] Cannot checkout session because a spawning error occurred. The identifier of the error is a9d9b3b1. Please see earlier logs for details about the error. App 27959 stdout: App 27959 stderr: --> Compiling passenger_native_support.so for the current Ruby interpreter... App 27959 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable) App 27959 stderr: Warning: compilation didn't succeed. To learn why, read this file: App 27959 stderr: /tmp/passenger_native_support-1q98o9p.log App 27959 stderr: --> Downloading precompiled passenger_native_support.so for the current Ruby interpreter... App 27959 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable) App 27959 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.10/rubyext-ruby-2.3.1-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found App 27959 stderr: Trying next mirror... App 27959 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.10/rubyext-ruby-2.3.1-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden App 27959 stderr: --> Continuing without passenger_native_support.so. App 27959 stdout: [ 2016-11-20 11:49:12.9945 27618/7fac10fe6700 App/Implementation.cpp:303 ]: Could not spawn process for application /opt/openproject: An error occured while starting up the preloader. Error ID: 70a99ced Error details saved to: /tmp/passenger-error-3ZqhA6.html Message from application: cannot load such file -- bundler/setup (LoadError) /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:399:in `activate_gem' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:277:in `block in run_load_path_setup_code' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:404:in `running_bundler' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:99:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>' [ 2016-11-20 11:49:13.0007 27618/7fac0b129700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 70a99ced. Please see earlier logs for details about the error. App 27996 stdout: App 27996 stderr: --> Compiling passenger_native_support.so for the current Ruby interpreter... App 27996 stderr: (set PASSENGER_COMPILE_NATIVE_SUPPORT_BINARY=0 to disable) App 27996 stderr: Warning: compilation didn't succeed. To learn why, read this file: App 27996 stderr: /tmp/passenger_native_support-1xkzusj.log App 27996 stderr: --> Downloading precompiled passenger_native_support.so for the current Ruby interpreter... App 27996 stderr: (set PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=0 to disable) App 27996 stderr: Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/5.0.10/rubyext-ruby-2.3.1-x86_64-linux.tar.gz: The requested URL returned error: 404 Not Found App 27996 stderr: Trying next mirror... App 27996 stderr: Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/5.0.10/rubyext-ruby-2.3.1-x86_64-linux.tar.gz: The requested URL returned error: 403 Forbidden App 27996 stderr: --> Continuing without passenger_native_support.so. App 27996 stdout: [ 2016-11-20 11:49:22.1502 27618/7fac10fe6700 App/Implementation.cpp:303 ]: Could not spawn process for application /opt/openproject: An error occured while starting up the preloader. Error ID: 4f3f9ff7 Error details saved to: /tmp/passenger-error-BajInI.html Message from application: cannot load such file -- bundler/setup (LoadError) /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:399:in `activate_gem' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:277:in `block in run_load_path_setup_code' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:404:in `running_bundler' /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb:276:in `run_load_path_setup_code' /usr/share/passenger/helper-scripts/rack-preloader.rb:99:in `preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>' [ 2016-11-20 11:49:22.1598 27618/7fac0a728700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 2-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 4f3f9ff7. Please see earlier logs for details about the error.
The detail logs in the tmp folder are not there (e.g. /tmp/passenger-error-3ZqhA6.html)
I received some warnings during configure openproject
sudo openproject configure Launching installer for openproject... Selected addons: legacy-installer mysql apache2 repositories smtp memcached openproject [legacy-installer] ./bin/configure [mysql] ./bin/configure DONE [apache2] ./bin/configure DONE [repositories] ./bin/configure No server installed. Skipping. DONE [smtp] ./bin/configure DONE [memcached] ./bin/configure DONE [openproject] ./bin/configure [legacy-installer] ./bin/preinstall [mysql] ./bin/preinstall [apache2] ./bin/preinstall [repositories] ./bin/preinstall [smtp] ./bin/preinstall [memcached] ./bin/preinstall No memcached server to install. Skipping. [openproject] ./bin/preinstall [legacy-installer] ./bin/postinstall [mysql] ./bin/postinstall [apache2] ./bin/postinstall [repositories] ./bin/postinstall [smtp] ./bin/postinstall [memcached] ./bin/postinstall [openproject] ./bin/postinstall DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /opt/openproject/vendor/bundle/ruby/2.3.0/bundler/gems/omniauth-openid-connect-c3bce4c9e9ac/lib/omniauth/strategies/openid_connect.rb:4) == 20160824121151 AddUserIdToSessions: migrating ============================== -- add_column(:sessions, :user_id, :integer, {:index=>true}) -> 0.2706s == 20160824121151 AddUserIdToSessions: migrated (0.2707s) ===================== == 20160829225633 IntroduceBcryptPasswords: migrating ========================= -- add_column(:user_passwords, :type, :string, {:null=>true}) -> 0.0720s -- change_column(:user_passwords, :hashed_password, :string, {:limit=>128, :null=>false}) -> 0.1834s -- change_column(:user_passwords, :type, :string, {:null=>false}) -> 0.0952s -- change_column_null(:user_passwords, :salt, true) -> 0.0313s == 20160829225633 IntroduceBcryptPasswords: migrated (0.4186s) ================ == 20160907113604 NormalizePermissions: migrating ============================= -- create_table(:role_permissions) -> 0.0933s -- remove_column(:roles, :permissions) -> 0.1420s == 20160907113604 NormalizePermissions: migrated (7.5029s) ==================== == 20160913081236 TypeAttributeVisibilityToHash: migrating ==================== == 20160913081236 TypeAttributeVisibilityToHash: migrated (0.0405s) =========== == 20160913125802 TimelineOptionsToHash: migrating ============================ == 20160913125802 TimelineOptionsToHash: migrated (0.0296s) =================== == 20160914124514 HarmonizeBoolCustomValues: migrating ======================== == 20160914124514 HarmonizeBoolCustomValues: migrated (0.0191s) =============== == 20160926102618 SettingValueToHash: migrating =============================== == 20160926102618 SettingValueToHash: migrated (0.0121s) ====================== == 20161017102547 AddDescriptionToRelations: migrating ======================== -- add_column(:relations, :description, :text) -> 0.1231s == 20161017102547 AddDescriptionToRelations: migrated (0.1232s) =============== == 20161025135400 QueryEmptyColumnNamesToArray: migrating ===================== == 20161025135400 QueryEmptyColumnNamesToArray: migrated (0.0317s) ============ *** Seeding for locale: 'en' *** Seeding basic data â³ BuiltinRolesSeeder *** Skipping built in role Non member - already exists *** Skipping built in role Anonymous - already exists â³ RoleSeeder *** Skipping roles as there are already some configured â³ ActivitySeeder *** Skipping activities as there are already some configured â³ ColorSeeder *** Skipping colors as there are already some configured â³ WorkflowSeeder *** Skipping types, statuses and workflows as there are already some configured â³ PrioritySeeder *** Skipping priorities as there are already some configured â³ ProjectStatusSeeder *** Skipping reported project status as there are already some configured â³ ProjectTypeSeeder *** Skipping project types as there are already some configured â³ SettingSeeder *** Skipping settings as all settings already exist in the db Loading discovered seeders: â³ EnumerationsSeeder â³ SettingSeeder *** Skipping BasicData::Backlogs::SettingSeeder *** Seeding admin user *** No need to seed an admin as there already is one. *** Seeding demo data â³ ProjectSeeder *** Skipping DemoData::ProjectSeeder *** Loading action_cable_engine seed data *** Loading date_validator_engine seed data *** Loading bourbon_engine seed data *** Loading i18n_js_engine seed data *** Loading openproject_translations seed data *** Loading openproject_global_roles seed data *** Loading openproject_auth_plugins seed data *** Loading openproject_auth_saml seed data *** Loading lobby_boy seed data *** Loading openproject_openid_connect seed data *** Loading openproject_documents seed data *** Loading openproject_my_project_page seed data *** Loading openproject_xls_export seed data *** Loading reportingengine seed data *** Loading openproject_costs seed data *** Loading openproject_reporting seed data *** Loading openproject_meeting seed data *** Loading openproject_pdf_export seed data *** Loading openproject_backlogs seed data *** Loading openproject_themes_dark seed data *** Loading openproject_local_avatars seed data *** Loading openproject_webhooks seed data *** Loading openproject_github_integration seed data Nothing to do. Nothing to do. Redirecting to /bin/systemctl restart openproject.service
Can somebody help me?
Thanks.
Ming
Replies (10)
Hi Ming,
the last part of your log shows the actual migration of the package to 6.1.0, which worked fine. There must be some kind of PATH issue with your passenger configuration since it fails to locate bundler:
What does your passenger configuration look like?
Best,
Oliver
Hi Oliver,
thanks for your feedback.
My passenger file looks like this
LoadModule passenger_module /usr/lib64/httpd/modules/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /usr/lib64/passenger/locations.ini
#PassengerDefaultRuby /usr/bin/ruby
PassengerDefaultRuby /opt/openproject/bin/ruby
Hi Ming,
I still believe it’s using the wrong ruby and thus doesn’t find our packaged dependencies.
Could you check whether you have multiple rubies at @ /opt/openproject/vendor/ruby-X.Y.Z/@ ? If so, what is the output of
openproject run ruby -v
?Best,
Oliver
Hi Oliver,
here ls -la in /opt/openproject/vendor
openproject run ruby -v with root user
openproject run ruby -v with openproject user
Another Question: I ran my update, like previous update, with root user. Do i need to do the update with openproject user?
Thanks
BR
Ming
Hi Ming,
the update needs to be run as the root user, you won’t be able to perform the update as the openproject user itself, it is merely the one running the application server.
All I can tell you is that passenger tries to use
/opt/openproject/vendor/ruby-2.3.1/
which according to your output isn’t even there. OpenProject 6.0.x packages does ship with a bundled Ruby 2.3.I suggest to move to the unicorn + Apache proxy configuration for easier upgradability.
Best,
Oliver
yes, this seems like the error.
trying to fix it now
thanks.
Hi Oliver,
i did now the udpate,
openproject run ruby -v
shows now correct version
ls -la in /opt/openproject/vendor
But still now working. Sorry last time i show you
with openproject version 6.0.5
Hi,
i have found now more details log
and
in the logs this 2 log files are twice ( which confused me )
the ruby version seems ok
here the mkmf.log
what also strange is, is that with
even with root user and openproject user.
i have included for openproject user in .bashprofile
but in “export”, i don´t see the path