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

Unable to load graphs and images in wiki #15

Open
nitishhombal opened this issue Sep 13, 2018 · 7 comments
Open

Unable to load graphs and images in wiki #15

nitishhombal opened this issue Sep 13, 2018 · 7 comments

Comments

@nitishhombal
Copy link

Hi,
Greetings. I am upgrading our redmine from 2.5.2 to 3.4.5 on a different VM (RHEL 7). While I have configured most of the plugins, I am stuck with wiki page that loads a graph and image. For some reason I am not able to efficiently use or configure wiki_graphviz_plugin. Could someone please help, I guess I am missing some configurations here.

I had asked the IT team to install graphviz software as I did not have root access and I could not install the software because of permission issues.

Attahced are the screenshots of wiki page in old redmine (where it works fine) and new server where it is not.

Redmine Info:
Environment:
Redmine version 3.4.5.stable
Ruby version 2.4.4-p296 (2018-03-28) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Darcs 2.8.4
Bazaar 2.5.1
Git 1.8.3.1
Filesystem
Redmine plugins:
clipboard_image_paste 1.12
forward_to_diffs 0.1
progressive_projects_list 3.0.1
redmine_all_files 0.0.3
redmine_checklists 3.1.11
redmine_ckeditor 1.1.5
redmine_didyoumean 1.2.0
redmine_favourite_projects 0.10
redmine_information 1.0.2
redmine_issue_templates 0.2.0
redmine_issues_macros 0.0.1
redmine_landing_page 0.1.1
redmine_login_audit 0.3.3
redmine_monitoring_controlling 0.1.1
redmine_private_wiki 0.2.0
redmine_silencer 0.4.3
redmine_theme_changer 0.3.1
redmine_wiki_issue_fields 0.5.9
redmine_wiki_toc 0.0.4
scrum 0.18.0
sidebar_hide 0.0.8
wiki_graphviz_plugin 0.7.0

Graphviz: graphviz-2.40.1

Best regards,
Nitish Hombal

@tckz
Copy link
Owner

tckz commented Sep 18, 2018

  1. It seems that there is no screenshots are attached to this issue.
  2. Following is my environment. It rendered graph images correctly.
    I recommend you try it with minimum configuration to clarify the issue.

CentOS 7.5
graphviz-2.30.1-21.el7.x86_64
and

Environment:
  Redmine version                3.4.6.stable
  Ruby version                   2.4.3-p205 (2017-12-14) [x86_64-linux]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2
SCM:
  Git                            1.8.3.1
  Filesystem                     
Redmine plugins:
  wiki_graphviz_plugin           0.7.0

@nitishhombal
Copy link
Author

Hi,
Thank you very much for quick response.
I am unable to attach the screeshots here and I am sending them to your email ID [email protected] now.
Would you please check the screenshots once and advise, in the meanwhile I check removing all configuration and retain only graphviz.

Also, based on my environment, would you be able to advise if there are any incompatibilities between the versions used? Ruby or Graphviz?

Are there any specific settings post graphviz installation? I don't have rights to install grapghviz adn I had to depend on our IT team, would you mind sharing the steps you followed for grapghviz installation?

Thanks,
Nitish

@tckz
Copy link
Owner

tckz commented Sep 19, 2018

Also, based on my environment, would you be able to advise if there are any incompatibilities between the versions used? Ruby or Graphviz?

I think the possibility is low, because both ruby and graphviz version difference between our environments are little.

Are there any specific settings post graphviz installation? I don't have rights to install grapghviz adn I had to depend on our IT team, would you mind sharing the steps you followed for grapghviz installation?

In my environment (CentOS 7), I just executed yum install -y graphviz .

@nitishhombal
Copy link
Author

Hi,
Thank you very much. I have requested the IT dept to try the same commands.
Did you get the screenshots that I had sent on your email, would you please check and suggest what I could be missing with on my environment.
We actually have an old redmine server (2.5.2) and the same plugin works well there.

Thanks.,
Nitish

@steveschow
Copy link

I am just trying this plugin out. on Redmine 4.0.4. No graph is displayed. Is this plugin compatible with Redmine4?

@goutnet
Copy link

goutnet commented Mar 29, 2021

for the record, I tested this plugin, and works on 4.2.0 stable

@sputtene
Copy link

Hi,

Doesn't work for me on Redmine 4.2.2.

No graph is displayed, but I see the {{graphviz_link() … }} source rendered in the wiki page.
It seems like the plugin doesn't pick up the macro to replace it with the rendered image.

The Redmine log file shows that the plugin is actually called during the rendering process (two last lines):

Started GET "/projects/infrastructure/wiki/Foo" for 212.123.14.2 at 2021-10-12 09:53:19 +0000
Processing by WikiController#show as HTML
  Parameters: {"project_id"=>"infrastructure", "id"=>"Foo"}
  Current user: admin (id=1)
  Rendering wiki/show.html.erb within layouts/base
  Rendered wiki/_content.html.erb (3.8ms)
  Rendered attachments/_form.html.erb (2.0ms)
  Rendered wiki/_sidebar.html.erb (4.8ms)
  Rendered wiki/show.html.erb within layouts/base (24.4ms)
  Rendering plugins/wiki_graphviz_plugin/app/views/wiki_graphviz/_head.html.erb
  Rendered plugins/wiki_graphviz_plugin/app/views/wiki_graphviz/_head.html.erb (0.2ms)
Completed 200 OK in 63ms (Views: 39.2ms | ActiveRecord: 11.5ms)

I have a fresh Redmine 4.2.2 install with only the wiki_graphviz plugin installed.

Kind regards,
Sven

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

5 participants