Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Upgrade failed from 6.0.5 to 6.1

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)

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Oliver Günther over 8 years ago

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:

 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>'

What does your passenger configuration look like?

Best,
Oliver

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

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

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Oliver Günther over 8 years ago

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

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

Hi Oliver,

here ls -la in /opt/openproject/vendor

drwxr-xr-x  6 openproject openproject 4096 11. Mär 2016  .
drwxr-xr-x 25 openproject openproject 4096 27. Okt 21:01 ..
drwxr-xr-x  4 openproject openproject 4096 11. Mär 2016  bundle
drwxr-xr-x  2 openproject openproject 4096 27. Okt 21:00 heroku
drwxr-xr-x  4 openproject openproject 4096 11. Mär 2016  pkgr
drwxr-xr-x  7 openproject openproject 4096 27. Okt 21:00 ruby-2.1.6

openproject run ruby -v with root user

ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]

openproject run ruby -v with openproject user

ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux]

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

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Oliver Günther over 8 years ago

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

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

yes, this seems like the error.

trying to fix it now

thanks.

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

Hi Oliver,

i did now the udpate,

openproject run ruby -v

shows now correct version

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

ls -la in /opt/openproject/vendor

drwxr-xr-x  7 openproject openproject 4096 23. Nov 20:55 .
drwxr-xr-x 25 openproject openproject 4096 23. Nov 20:58 ..
drwxr-xr-x  4 openproject openproject 4096 11. Mär 2016  bundle
drwxr-xr-x  2 openproject openproject 4096 23. Nov 20:57 heroku
drwxr-xr-x  4 openproject openproject 4096 11. Mär 2016  pkgr
drwxr-xr-x  7 openproject openproject 4096 23. Nov 20:58 ruby-2.1.6
drwxr-xr-x  7 openproject openproject 4096 23. Nov 20:57 ruby-2.3.1

But still now working. Sorry last time i show you

openproject run ruby -v
 ls -la in /opt/openproject/vendor

with openproject version 6.0.5

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

Hi,

i have found now more details log

Web application could not be started
Phusion Passenger has listed more information about the error below.


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>'


Ruby interpreter command

    /opt/openproject/bin/ruby

General Ruby interpreter information

    RUBY_VERSION = 2.3.1
    RUBY_PLATFORM = x86_64-linux
    RUBY_ENGINE = ruby
    RubyGems version = 2.5.1
    RubyGems paths = ["/home/openproject/.gem/ruby/2.3.0", "/opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0"]


Ruby configuration (RbConfig::CONFIG)

    DESTDIR = 
    MAJOR = 2
    MINOR = 3
    TEENY = 0
    PATCHLEVEL = 112
    INSTALL = /usr/bin/install -c
    EXEEXT = 
    prefix = /opt/openproject/vendor/ruby-2.3.1
    ruby_install_name = ruby
    RUBY_INSTALL_NAME = ruby
    RUBY_SO_NAME = ruby
    exec = exec
    ruby_pc = ruby-2.3.pc
    PACKAGE = ruby
    BUILTIN_TRANSSRCS =  enc/trans/newline.c
    USE_RUBYGEMS = YES
    MANTYPE = doc
    NROFF = /usr/bin/nroff
    vendorarchhdrdir = /opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/vendor_ruby/x86_64-linux
    sitearchhdrdir = /opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/site_ruby/x86_64-linux
    rubyarchhdrdir = /opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/x86_64-linux
    vendorhdrdir = /opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/vendor_ruby
    sitehdrdir = /opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/site_ruby
    rubyhdrdir = /opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0
    RUBY_SEARCH_PATH = 
    UNIVERSAL_INTS = 
    UNIVERSAL_ARCHNAMES = 
    configure_args =  '--prefix=/usr/local' '--disable-install-doc' '--enable-load-relative'
    CONFIGURE = configure
    vendorarchdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/vendor_ruby/2.3.0/x86_64-linux
    vendorlibdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/vendor_ruby/2.3.0
    vendordir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/vendor_ruby
    sitearchdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/x86_64-linux
    sitelibdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/site_ruby/2.3.0
    sitedir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/site_ruby
    rubyarchdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux
    rubylibdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0
    ruby_version = 2.3.0
    sitearch = x86_64-linux
    arch = x86_64-linux
    sitearchincludedir = /opt/openproject/vendor/ruby-2.3.1/include/x86_64-linux
    archincludedir = /opt/openproject/vendor/ruby-2.3.1/include/x86_64-linux
    sitearchlibdir = /opt/openproject/vendor/ruby-2.3.1/lib/x86_64-linux
    archlibdir = /opt/openproject/vendor/ruby-2.3.1/lib/x86_64-linux
    libdirname = libdir
    RUBY_EXEC_PREFIX = 
    RUBY_LIB_VERSION = 
    RUBY_LIB_VERSION_STYLE = 3  /* full */
    RI_BASE_NAME = ri
    ridir = /opt/openproject/vendor/ruby-2.3.1/share/ri
    rubysitearchprefix = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/x86_64-linux
    rubyarchprefix = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/x86_64-linux
    MAKEFILES = Makefile GNUmakefile
    PLATFORM_DIR = 
    THREAD_MODEL = pthread
    SYMBOL_PREFIX = 
    EXPORT_PREFIX = 
    COMMON_HEADERS = 
    COMMON_MACROS = 
    COMMON_LIBS = 
    MAINLIBS = 
    ENABLE_SHARED = no
    DLDLIBS =  -lc
    SOLIBS = 
    LIBRUBYARG_SHARED = -Wl,-R/opt/openproject/vendor/ruby-2.3.1/lib 
    LIBRUBYARG_STATIC = -Wl,-R/opt/openproject/vendor/ruby-2.3.1/lib -lruby-static
    LIBRUBYARG = -Wl,-R/opt/openproject/vendor/ruby-2.3.1/lib -lruby-static
    LIBRUBY = libruby-static.a
    LIBRUBY_ALIASES = libruby.so
    LIBRUBY_SO = libruby.so.2.3.0
    LIBRUBY_A = libruby-static.a
    RUBYW_INSTALL_NAME = 
    rubyw_install_name = 
    EXTDLDFLAGS = 
    EXTLDFLAGS = 
    strict_warnflags = -std=iso9899:1999
    warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
    debugflags = -g
    optflags = -O3 -fno-fast-math
    NULLCMD = :
    DLNOBJ = dln.o
    EXECUTABLE_EXTS = 
    ARCHFILE = 
    LIBRUBY_RELATIVE = yes
    EXTOUT = .ext
    PREP = miniruby
    CROSS_COMPILING = no
    TEST_RUNNABLE = yes
    rubylibprefix = /opt/openproject/vendor/ruby-2.3.1/lib/ruby
    setup = Setup
    ENCSTATIC = 
    EXTSTATIC = 
    STRIP = strip -S -x
    TRY_LINK = 
    PRELOADENV = LD_PRELOAD
    LIBPATHENV = LD_LIBRARY_PATH
    RPATHFLAG =  -Wl,-R%1$-s
    LIBPATHFLAG =  -L%1$-s
    LINK_SO = 
    ASMEXT = S
    LIBEXT = a
    DLEXT2 = 
    DLEXT = so
    LDSHAREDXX = g++ -shared
    LDSHARED = gcc -shared
    CCDLFLAGS = -fPIC
    STATIC = 
    ARCH_FLAG = 
    DLDFLAGS = 
    ALLOCA = 
    codesign = 
    POSTLINK = :
    WERRORFLAG = -Werror
    CHDIR = cd -P
    RMALL = rm -fr
    RMDIRS = rmdir --ignore-fail-on-non-empty -p
    RMDIR = rmdir --ignore-fail-on-non-empty
    CP = cp
    RM = rm -f
    PKG_CONFIG = pkg-config
    PYTHON = 
    DOXYGEN = 
    DOT = 
    MAKEDIRS = /usr/bin/mkdir -p
    MKDIR_P = /usr/bin/mkdir -p
    INSTALL_DATA = /usr/bin/install -c -m 644
    INSTALL_SCRIPT = /usr/bin/install -c
    INSTALL_PROGRAM = /usr/bin/install -c
    SET_MAKE = 
    LN_S = ln -s
    NM = nm
    DLLWRAP = 
    WINDRES = 
    OBJCOPY = :
    OBJDUMP = objdump
    ASFLAGS = 
    AS = as
    AR = ar
    RANLIB = ranlib
    try_header = 
    CC_VERSION = gcc -v
    COUTFLAG = -o 
    OUTFLAG = -o 
    CPPOUTFILE = -o conftest.i
    GNU_LD = yes
    LD = ld
    GCC = yes
    EGREP = /usr/bin/grep -E
    GREP = /usr/bin/grep
    CPP = gcc -E
    CXXFLAGS =  -O3 -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
    OBJEXT = o
    CPPFLAGS =   
    LDFLAGS = -L. -fstack-protector -rdynamic -Wl,-export-dynamic
    CFLAGS =  -O3 -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
    CXX = g++
    CC = gcc
    NACL_LIB_PATH = 
    NACL_SDK_VARIANT = 
    NACL_SDK_ROOT = 
    NACL_TOOLCHAIN = 
    target_os = linux
    target_vendor = pc
    target_cpu = x86_64
    target = x86_64-pc-linux-gnu
    host_os = linux-gnu
    host_vendor = pc
    host_cpu = x86_64
    host = x86_64-pc-linux-gnu
    RUBY_VERSION_NAME = ruby-2.3.0
    RUBYW_BASE_NAME = rubyw
    RUBY_BASE_NAME = ruby
    build_os = linux-gnu
    build_vendor = pc
    build_cpu = x86_64
    build = x86_64-pc-linux-gnu
    RUBY_PROGRAM_VERSION = 2.3.1
    cxxflags =  -O3 -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
    cppflags = 
    cflags =  -O3 -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
    target_alias = 
    host_alias = 
    build_alias = 
    LIBS = -lpthread -ldl -lcrypt -lm 
    ECHO_T = 
    ECHO_N = -n
    ECHO_C = 
    DEFS = 
    mandir = /opt/openproject/vendor/ruby-2.3.1/share/man
    localedir = /opt/openproject/vendor/ruby-2.3.1/share/locale
    libdir = /opt/openproject/vendor/ruby-2.3.1/lib
    psdir = /opt/openproject/vendor/ruby-2.3.1/share/doc/ruby
    pdfdir = /opt/openproject/vendor/ruby-2.3.1/share/doc/ruby
    dvidir = /opt/openproject/vendor/ruby-2.3.1/share/doc/ruby
    htmldir = /opt/openproject/vendor/ruby-2.3.1/share/doc/ruby
    infodir = /opt/openproject/vendor/ruby-2.3.1/share/info
    docdir = /opt/openproject/vendor/ruby-2.3.1/share/doc/ruby
    oldincludedir = /usr/include
    includedir = /opt/openproject/vendor/ruby-2.3.1/include
    localstatedir = /opt/openproject/vendor/ruby-2.3.1/var
    sharedstatedir = /opt/openproject/vendor/ruby-2.3.1/com
    sysconfdir = /opt/openproject/vendor/ruby-2.3.1/etc
    datadir = /opt/openproject/vendor/ruby-2.3.1/share
    datarootdir = /opt/openproject/vendor/ruby-2.3.1/share
    libexecdir = /opt/openproject/vendor/ruby-2.3.1/libexec
    sbindir = /opt/openproject/vendor/ruby-2.3.1/sbin
    bindir = /opt/openproject/vendor/ruby-2.3.1/bin
    exec_prefix = /opt/openproject/vendor/ruby-2.3.1
    PACKAGE_URL = 
    PACKAGE_BUGREPORT = 
    PACKAGE_STRING = 
    PACKAGE_VERSION = 
    PACKAGE_TARNAME = 
    PACKAGE_NAME = 
    PATH_SEPARATOR = :
    SHELL = /bin/sh
    archdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux
    topdir = /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux


Activated Ruby gems

    did_you_mean => 1.0.0


Ruby load path ($LOAD_PATH)

    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/site_ruby/2.3.0
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/x86_64-linux
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/site_ruby
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/vendor_ruby/2.3.0
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/vendor_ruby/2.3.0/x86_64-linux
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/vendor_ruby
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux


Ruby loaded libraries ($LOADED_FEATURES)

    enumerator.so
    thread.rb
    rational.so
    complex.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/enc/encdb.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/enc/trans/transdb.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/unicode_normalize.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/rbconfig.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/compatibility.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/defaults.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/deprecate.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/errors.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/version.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/requirement.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/platform.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/basic_specification.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/stub_specification.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/util/list.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/stringio.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/specification.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/exceptions.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/monitor.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/path_support.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/rubygems/dependency.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/version.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/core_ext/name_error.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/levenshtein.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/jaro_winkler.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkable.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/delegate.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/method_name_checker.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/null_checker.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/formatter.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean.rb
    /usr/share/passenger/phusion_passenger.rb
    /usr/share/passenger/phusion_passenger/constants.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/etc.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/tmpdir.rb
    /usr/share/passenger/phusion_passenger/utils/tmpio.rb
    /usr/share/passenger/phusion_passenger/platform_info.rb
    /usr/share/passenger/phusion_passenger/platform_info/operating_system.rb
    /usr/share/passenger/phusion_passenger/platform_info/ruby.rb
    /usr/share/passenger/phusion_passenger/platform_info/binary_compatibility.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/shellwords.rb
    /usr/share/passenger/phusion_passenger/utils/shellwords.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/logger.rb
    /usr/share/passenger/phusion_passenger/utils/download.rb
    /usr/share/passenger/phusion_passenger/native_support.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/socket.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/io/wait.so
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/socket.rb
    /usr/share/passenger/phusion_passenger/ruby_core_enhancements.rb
    /usr/share/passenger/phusion_passenger/ruby_core_io_enhancements.rb
    /usr/share/passenger/phusion_passenger/utils.rb
    /usr/share/passenger/phusion_passenger/preloader_shared_helpers.rb
    /usr/share/passenger/phusion_passenger/public_api.rb
    /usr/share/passenger/phusion_passenger/debug_logging.rb
    /usr/share/passenger/phusion_passenger/loader_shared_helpers.rb
    /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/x86_64-linux/fcntl.so
    /usr/share/passenger/phusion_passenger/message_channel.rb
    /usr/share/passenger/phusion_passenger/message_client.rb
    /usr/share/passenger/phusion_passenger/utils/native_support_utils.rb
    /usr/share/passenger/phusion_passenger/utils/unseekable_socket.rb
    /usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb
    /usr/share/passenger/phusion_passenger/request_handler.rb
    /usr/share/passenger/phusion_passenger/utils/tee_input.rb
    /usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb
    /usr/share/passenger/phusion_passenger/union_station/connection.rb
    /usr/share/passenger/phusion_passenger/union_station/transaction.rb
    /usr/share/passenger/phusion_passenger/utils/lock.rb
    /usr/share/passenger/phusion_passenger/union_station/core.rb

and

# mkdir -p /home/openproject/.passenger/native_support/5.0.10/ruby-2.3.1-x86_64-linux
# cd /home/openproject/.passenger/native_support/5.0.10/ruby-2.3.1-x86_64-linux
# /opt/openproject/vendor/ruby-2.3.1/bin/ruby /usr/share/passenger/ruby_extension_source/extconf.rb
checking for alloca.h... *** /usr/share/passenger/ruby_extension_source/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=/usr/share/passenger/ruby_extension_source
    --curdir
    --ruby=/opt/openproject/vendor/ruby-2.3.1/bin/$(RUBY_BASE_NAME)
/opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:587:in `try_cpp'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:1091:in `block in have_header'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:942:in `block in checking_for'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:350:in `block (2 levels) in postpone'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:320:in `open'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:350:in `block in postpone'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:320:in `open'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:346:in `postpone'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:941:in `checking_for'
    from /opt/openproject/vendor/ruby-2.3.1/lib/ruby/2.3.0/mkmf.rb:1090:in `have_header'
    from /usr/share/passenger/ruby_extension_source/extconf.rb:37:in `<main>'

in the logs this 2 log files are twice ( which confused me )

the ruby version seems ok

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

here the mkmf.log

more mkmf.log
"gcc -o conftest -I/opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/x86_64-linux -I/opt/openproject/vendor/ruby-2.3.1/include/ruby-2.3.0/ruby/backward -I/opt/openpro
ject/vendor/ruby-2.3.1/include/ruby-2.3.0 -I/usr/share/passenger/ruby_extension_source     -O3 -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno
-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-de
clarations -Wno-packed-bitfield-compat -g conftest.c  -L. -L/opt/openproject/vendor/ruby-2.3.1/lib -Wl,-R/opt/openproject/vendor/ruby-2.3.1/lib -L. -fstack-protector -rdy
namic -Wl,-export-dynamic     -Wl,-R/opt/openproject/vendor/ruby-2.3.1/lib -lruby-static  -lpthread -ldl -lcrypt -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

RE: Upgrade failed from 6.0.5 to 6.1 - Added by Ming Ming over 8 years ago

what also strange is, is that with

ruby -v i get 

ruby 2.0.0p598 (2014-11-13) [x86_64-linux]

even with root user and openproject user.

i have included for openproject user in .bashprofile

PATH=/opt/openproject/bin:$PATH:$HOME/.local/bin:$HOME/bin

but in “export”, i don´t see the path

declare -x PATH="/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/testuser/.local/bin:/home/testuser/bin"
  • (1 - 10/10)
Loading...