GraphViz - Broken Image

Get help from other users here.

Moderators: Developer, Contributor

udo
Posts: 47
Joined: 09 Sep 2010, 11:42

GraphViz - Broken Image

Post by udo »

hello,

I installed GraphViz and enabled it in config_inc.php with
  • $g_relationship_graph_enable = ON;
unfortunately I only see a broken image when I look at a relationship graph.

does someone know how to fix this?

thanks, udo
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

I didn't try myself, but maybe related to this
http://www.mantisbt.org/bugs/view.php?id=12336
Please use Search before posting and read the Manual
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Re: GraphViz - Broken Image

Post by udo »

I don't get a syntax error. At least I'm not aware of -> maybe in some log?

I simply get the "typical" broken image when displaying the Relationship Graph.

Note:
Unfortunately I can't upload the image of the partial screenshot I've taken... Is image upload disabled in this forum?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

udo wrote: Is image upload disabled in this forum?
No it isn't, but there is a problem with storage of attachments.
I have administrator rights for the forum, but no root access to the server where it's hosted. This is needed to fix this.
Until it's fixed, you can store your attachments at any available free service and just provide a link to it.
Please use Search before posting and read the Manual
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Re: GraphViz - Broken Image

Post by udo »

OK, thanks.

I placed the pic here: http://www.aviary.com/creation?fguid=bf ... 31390ec091

this is what I see when I look at the Relationship Graph (note the "broken image" icon above the "child of" arrow)
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

Just a speculation, I didn't try
If your installation of graphviz binaries is not at /usr/bin you have to configure

Code: Select all

$g_dot_tool = '/usr/bin/dot';
$g_neato_tool = '/usr/bin/neato';
Please use Search before posting and read the Manual
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Re: GraphViz - Broken Image

Post by udo »

thanks, I checked that also...

which dot results in /usr/bin/dot
and
which neato results in /usr/bin/neato

so default settings are working.
Note: Tried to overwrite them in config_inc.php but the result is the same, so I removed them again.
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

I don't get this broken image, I don't get any image.
The error log auf my webservers shows "sh: /neato: No such file or directory" although /usr/bin/neato is configured

I have to stop now, maybe I will find some time this weekend to have a look at it
Please use Search before posting and read the Manual
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Re: GraphViz - Broken Image

Post by udo »

if you take a look at neato, it is a symlink pointing to dot at least on my ubuntu server:

Code: Select all

root@prod:~# ls -al /usr/bin/neato
lrwxrwxrwx 1 root root 3 2010-09-23 22:15 /usr/bin/neato -> dot
P.S.: In which log did you find the sh: /neato: No such file or directory entry?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

udo wrote:if you take a look at neato, it is a symlink pointing to dot at least on my ubuntu server:
This is quite normal and not causing the issue. (neato draws undirected graphs, dot draws directed graphs, the program just checks the name how it is called to distinguish between the graphs)
The same problem happens with dot
udo wrote:P.S.: In which log did you find the sh: /neato: No such file or directory entry?
/var/log/httpd/error_log
Please use Search before posting and read the Manual
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

my GraphViz is running now
The problem was that safe_mode is set to On in my php.ini
So the PHP function proc_open which is used to start the GraphViz executables searches always in /bin for it
Quick solution without disabling safe_mode or to set another directory for it: I set a soft link
Please use Search before posting and read the Manual
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Re: GraphViz - Broken Image

Post by udo »

great! :D If you could please detail where you placed the soft link (do you mean symlink?) and to what file it is pointing...

thanks, udo
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

Yes symlink is the right name for it (I thought soft link because the other links are called hard links)

Code: Select all

ln -s /usr/bin/neato /bin/neato
ln -s /usr/bin/dot /bin/dot
Please use Search before posting and read the Manual
udo
Posts: 47
Joined: 09 Sep 2010, 11:42

Re: GraphViz - Broken Image

Post by udo »

hmmm... still not working at my side... :?

I also tried to change this in the Mantis config file:

Code: Select all

$g_dot_tool = '/usr/dot';
$g_neato_tool = '/usr/neato';
unfortunately not working...

Did you have to reload or restart some service?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: GraphViz - Broken Image

Post by atrol »

udo wrote:hmmm... still not working at my side... :?
This is what I expected, because your symptoms where other than mine.
Did you get the same entries in /var/log/httpd/error_log?
udo wrote: I also tried to change this in the Mantis config file:

Code: Select all

$g_dot_tool = '/usr/dot';
$g_neato_tool = '/usr/neato';
unfortunately not working...
If this is related to the safe_mode setting of PHP you can change the path to whatever you want, it will not change anything
udo wrote: Did you have to reload or restart some service?
If you change the settings in php.ini you have to restart the webserver. This is not needed for changing config_inc.php.
Please use Search before posting and read the Manual
Post Reply