Open link in a new tab

Content

Expand project menu

[Solved] Trouble installing Reporting plugin

Sorry to cross post. I posted a question in theProject #15402 and had no response yet. If I am posting in the wrong place for help please point me to the correct location.

I am trying to install openproject-reporting.

Added to Gemfile.plugins:
gem “openproject-reporting”, git: “https://github.com/finnlabs/openproject-reporting.git”, :branch => “stable”

Already running the costs plugin, and reporting_engine have been installed successfully.

When I run bundle install I get the following error:

Updating https://github.com/finnlabs/openproject-reporting.git
Fetching gem metadata from https://rubygems.org/……..
Resolving dependencies…
Bundler could not find compatible versions for gem “openproject-plugins”:
In Gemfile:
openproject-reporting (>= 0) ruby depends on
openproject-plugins (~> 3.0.8) ruby

openproject-plugins (1.0.8)

I am running OpenProject 3.1.0pre1

Have anyone else experienced this problem and can you provide any help to overcome this problem?

Message actions

Hi Henry,

sorry for not responding before.
Could you list the content of your Gemfile.plugins?
Do you use the current version of the release branch (3.0.13)?

Message actions

Hi Robin,
My Gemfile.plugin looks like this:

gem “openproject-plugins”, git: “https://github.com/opf/openproject-plugins.git”, :branch => “stable”
gem “openproject-pdf_export”, git: “https://github.com/finnlabs/openproject-pdf_export.git”, :branch => “stable”
gem “openproject-costs”, git: “https://github.com/finnlabs/openproject-costs.git”, :branch => “dev”
gem “openproject-documents”, git: “https://github.com/opf/openproject-documents.git”, :branch => “stable”
gem “reporting_engine”, git: “https://github.com/finnlabs/reporting_engine.git”, :branch => “stable”
gem “openproject-backlogs”, git: “https://github.com/finnlabs/openproject-backlogs.git”, :branch => “stable”
gem “pdf-inspector”, “~>1.0.0”, :group => :test

I do not have 3.0.13 mostly because I am a unsure about whats newer 3.0.13 or 3.1.xx. If I need to upgrade I would probably wait a little bit for 4.0.0. Being 100% new to OP and Rails etc the upgrade should be fun to do.

Message actions

Hi Henry,

thanks for listing your Gemfile.plugins.
Is there a reason you are using the dev branch for Costs while using the stable branch for all other plugins ?
Could you change the costs plugin to the “stable” branch as well, bundle install (and possible run migrations) and see if this fixes the error?:

gem "openproject-costs", git: "https://github.com/finnlabs/openproject-costs.git", :branch => "dev"

to

gem "openproject-costs", git: "https://github.com/finnlabs/openproject-costs.git", :branch => "stable"

FYI: 3.0.13 is the newest stable version of OpenProject. We do not use the pre-versions anymore (which admittedly can be quite confusing).

Best,
Robin

Message actions

When I try to install the stable version I get this error:
Bundler could not find compatible versions for gem “openproject-plugins”:
In Gemfile:
openproject-costs (>= 0) ruby depends on
openproject-plugins (~> 3.0.8) ruby

openproject-plugins (1.0.8)

The DEV version went in fine.

If the Costs module is the issue I can upgrade to 3.0.13 to see if I can get the stable version of Costs working. Then do 4.0.0 a little later.

Message actions

Thanks for your help again Robin. Problem is resolved.

I upgraded OP to 3.0.13 in a QA environment. Installed the stable version of COSTS and the reporting engine went is without a problem.

As a side not for anyone in the future running into this..
I installed OP using the install instructions found here:
https://www.openproject.org/projects/openproject/wiki/Installation_Ubuntu

Did an upgrade based on these instructions:
https://www.openproject.org/topics/1905

Message actions

Hi Henry,

great to hear it’s working now :)

The error was probably caused by incompatible versions of the core and the reporting plugin.

Best,
Robin