Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error in gantt-chart 'v6.0.x' (through upgrade) #574

Open
zmotme opened this issue Jan 19, 2025 · 2 comments
Open

500 error in gantt-chart 'v6.0.x' (through upgrade) #574

zmotme opened this issue Jan 19, 2025 · 2 comments

Comments

@zmotme
Copy link

zmotme commented Jan 19, 2025

When I upgrade from Redmine v5.0.2 (from redmine docker) to sameersbn docker image, 500 error occurs when pressing gantt chart PNG image button.

I am not sure if it still occur with clean install sameersbn v6.0.2 I'll try later.

My procedure

  • db backup on redmine original 5.0.2 installation
  • db restore on new sammersbn 5.0.2 + postgresql v14.
  • antt-chart png button works okay.
  • upgrading with changing tag of sameersbn docker image:
    • 5.0.6
    • 5.1.0
    • 5.1.1-4
    • 5.1.2
    • 5.1.4 (gantt ok)
    • 6.0.2 (gantt fail)

I 've backed up db from 5.1.4 working, and using 5.1.5 it works fine.

@jcormier
Copy link
Collaborator

Is Gantt chart support from a plugin? If your using easy-gantt you should check with their support first. https://www.easyredmine.com/product/easy-gantt

@zmotme
Copy link
Author

zmotme commented Jan 23, 2025

Thanks for opinion about check point, jcormier. But I am not using any plugin related with gantt.

Finally I figured out that gantt.rb uses cli_path as before, but MiniMagick (above v5) remove support cli_path.

It affects all redmine original docker image as well, if imagemagick_convert_command supplied.

error log

redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] NoMethodError (undefined method `cli_path=' for module MiniMagick):
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c]   
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] lib/redmine/helpers/gantt.rb:399:in `to_image'
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] app/controllers/gantts_controller.rb:46:in `block (2 levels) in show'
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] app/controllers/gantts_controller.rb:42:in `show'
redmine-orig       | [3369ac1d-8d3b-49ca-b5d8-cc6f9c5ac01c] lib/redmine/sudo_mode.rb:78:in `sudo_mode'

references

Actions taken

I have opened redmine defect#42145.
In sammersbn/redmine, if I fixed configuration.yml as read only mount, container cannot start.
My recommendation to user who want to upgrade v6 branch is to wait till original redmine image fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants