Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Expanded. Click to collapseCollapsed. Click to showWiki
        • Hierarchy leaf2nd Level Support
You are here:
  • Forums
  • Support Installation & Updates

Content

[Solved] 7.3.2 to 7.4 upgrade and re-install failed

Added by Matt Lane about 5 years ago

Hi,

First i want to thank you for this great system and pretty good tutorials and guides you have! Also big thanks for providing support for Debian 9! Unfortunately I’ve run into some problem with the latest version (7.4.0).

I’ve been running 7.3.2 on Debian 9 (VPS) fine for 2 months and decided to upgrade to new version 7.4.0. I followed the simple guide on your site:
sudo apt-get update sudo apt-get install --only-upgrade openproject sudo openproject configure
Unfortunately this run in an error:
... Module cgid already enabled [smtp] ./bin/preinstall [memcached] ./bin/preinstall [openproject] ./bin/preinstall [legacy-installer] ./bin/postinstall [mysql] ./bin/postinstall Generating /etc/openproject/conf.d/database... [apache2] ./bin/postinstall Module rewrite already enabled Module proxy already enabled Considering dependency proxy for proxy_http: Module proxy already enabled Module proxy_http already enabled Module headers already enabled Module expires already enabled Considering dependency filter for deflate: Module filter already enabled Module deflate already enabled Module filter already enabled Site openproject already enabled [repositories] ./bin/postinstall Setting up SVN integration for Apache Setting up Git integration for Apache [smtp] ./bin/postinstall [memcached] ./bin/postinstall [openproject] ./bin/postinstall rake aborted! ArgumentError: Malformed version number string 10.1.26-MariaDB-0+deb9u1 /opt/openproject/lib/open_project/database.rb:89:in `version_matches?' /opt/openproject/lib/open_project/database.rb:71:in `check_version!' /opt/openproject/lib/tasks/database.rake:49:in `block (3 levels) in <top (required)>' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `load' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `start' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/exe/bundle:35:in `block in <top (required)>' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/exe/bundle:27:in `<top (required)>' /opt/openproject/bin/bundle:3:in `load' /opt/openproject/bin/bundle:3:in `<main>' Tasks: TOP => db:migrate => openproject:db:ensure_database_compatibility (See full trace by running task with --trace)

After this I tried to upgrade ruby, rbenv, passenger gem apache2 and mariadb-server but things ended even worse (I probably messed something with db). After some time i decided to clean the whole thing and start over.
After removing everything (OP, Apache2, memcached, mariadb, users and files) I run:

root@server:/# apt-get install openproject

`...
Unpacking openproject (7.4.0-1517493473.2462eea9.stretch) ...
Setting up mysql-common (5.8+1.0.2) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libmariadbclient18:amd64 (10.1.26-0+deb9u1) ...
Setting up libxslt1.1:amd64 (1.1.29-2.1) ...
Setting up libpq5:amd64 (9.6.6-0+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libevent-core-2.0-5:amd64 (2.0.21-stable-3) ...
Setting up libevent-2.0-5:amd64 (2.0.21-stable-3) ...
Setting up libevent-extra-2.0-5:amd64 (2.0.21-stable-3) ...
Setting up openproject (7.4.0-1517493473.2462eea9.stretch) ...

The openproject package provides an installer. Please run the following command to finish the installation:
sudo openproject configure

Processing triggers for libc-bin (2.24-11+deb9u1) ...`

root@server:/# openproject configure

and that ended in the same error as when upgrading:
... To activate the new configuration, you need to run: systemctl reload apache2 Enabling site openproject. To activate the new configuration, you need to run: systemctl reload apache2 [repositories] ./bin/postinstall Setting up SVN integration for Apache Setting up Git integration for Apache [smtp] ./bin/postinstall [memcached] ./bin/postinstall [openproject] ./bin/postinstall rake aborted! ArgumentError: Malformed version number string 10.1.26-MariaDB-0+deb9u1 /opt/openproject/lib/open_project/database.rb:89:in `version_matches?' /opt/openproject/lib/open_project/database.rb:71:in `check_version!' /opt/openproject/lib/tasks/database.rake:49:in `block (3 levels) in <top (required)>' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `load' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `start' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/exe/bundle:35:in `block in <top (required)>' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors' /opt/openproject/vendor/bundle/ruby/2.4.0/gems/bundler-1.15.1/exe/bundle:27:in `<top (required)>' /opt/openproject/bin/bundle:3:in `load' /opt/openproject/bin/bundle:3:in `<main>' Tasks: TOP => db:migrate => openproject:db:ensure_database_compatibility (See full trace by running task with --trace)

Here is production.log contents:
rootserver:/var/log/openproject# tail production.log
W, [2018-02-02T21:47:48.279763 #6084] WARN — : [auth_saml] Missing settings from ‘/opt/openproject/config/plugins/auth_saml/settings.yml’, skipping omniauth registration.
W, [2018-02-02T21:47:48.389648 #6084] WARN — : hook registered
W, [2018-02-02T21:55:06.218512 #6324] WARN — : [auth_saml] Missing settings from ‘/opt/openproject/config/plugins/auth_saml/settings.yml’, skipping omniauth registration.
W, [2018-02-02T21:55:06.328736 #6324] WARN — : hook registered
E, [2018-02-02T21:55:09.880802 #6324] ERROR — : Failed to run LDAP group synchronization. ActiveRecord::StatementInvalid: Mysql2::Error: Table ‘openproject.auth_sources’ doesn’t exist: SHOW FULL FIELDS FROM `auth_sources`@

How should i try to solve this problem? I am very newbie with Ruby, so please help if you see what I am missing /doing wrong!
Thank you!

Sincerely,
Matt


Replies (6)

RE: 7.3.2 to 7.4 upgrade and re-install failed - Added by Jerome Garcia about 5 years ago

Hello,

Exactly the same behaviour for me. Any idea ?

Thanks

Jérôme

RE: 7.3.2 to 7.4 upgrade and re-install failed - Added by Phason Electronics about 5 years ago

We also try to use the package upgrade from 7.3.2 to 7.4 on Ubuntu 14.04 failed as well. Upgrades from previous versions have worked using the package upgrade, but not this one. I have been trying to figure it out for several hours today, but with no luck.

After the initial upgrade to 7.4, we were able to get into OpenProject, but could not get into any projects or work packages. After doing a reconfigure, we started having issues where we would only get a 503 service unavailable error, or a 403 forbidden error if we comment out the proxy pass info. Normally we access our OpenProject at 192.168.###.###:3000.

Here is our openproject.conf.

@ DocumentRoot /opt/openproject/public

ProxyRequests off

Include /etc/openproject/addons/apache2/includes/vhost/*.conf

# Can’t use Location block since it would overshadow all the other proxypass directives on CentOS
ProxyPass / http://127.0.0.1:6000/ retry=0
ProxyPassReverse / http://127.0.0.1:6000/@

Please help! Let me know if there is any other information you need.

RE: 7.3.2 to 7.4 upgrade and re-install failed - Added by Oliver Günther about 5 years ago

Hi guys,

7.4.0 has a database version check, primarily for PSQL since we now require 9.5+ versions due to UPSERTs being used.

I had implemented a check for MySQL, and with MariaDB in mind, did not enforce the version check. However the MariaDB version string still breaks the check due to it not matching the semver versions.

For a workaround, please apply the patch attached to this post. This will disable the version check that causes the exception:

Download the patch and check whether it applies: From your OpenProject root folder:

git apply --check <patchfile>

If nothing is output, it applies cleanly. Then, actually apply the patch:

git apply <patchfile>

Sorry for the inconvenience. In any case, please ensure you dump your databases before each minor upgrades.

@Phason Eletronics, this may not apply to your issue, it may be separate from the database check. Please open a new post with your /var/log/openproject/production.log and apache logs attached.

Best,
Oliver

RE: 7.3.2 to 7.4 upgrade and re-install failed - Added by Jerome Garcia about 5 years ago

Hello,

I just downloaded and applied the patch then launch openproject configure and it’s now working perfectly.

Thanks a lot Oliver for your quick and efficient support.

Best,

Jérôme

RE: 7.3.2 to 7.4 upgrade and re-install failed - Added by Matt Lane about 5 years ago

Hi,

I downloaded the patch and installed and then everything started working! Great work Oliver!

Thank you!

Sincerely,
Matt

RE: 7.3.2 to 7.4 upgrade and re-install failed - Added by Oliver Günther about 5 years ago

Great to hear. I’ve just pushed the workaround so a new package of 7.4.0 will be built so in case you’re seeing a new 7.4.0 package, it contains the patch as a workaround.

Best,
Oliver

  • (1 - 6/6)
Loading...