Page 1 of 3
GraphViz - Broken Image
Posted: 23 Sep 2010, 21:08
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
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 11:57
by atrol
I didn't try myself, but maybe related to this
http://www.mantisbt.org/bugs/view.php?id=12336
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 12:11
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?
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 13:28
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.
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 13:50
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)
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 14:07
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';
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 14:45
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.
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 17:06
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
Re: GraphViz - Broken Image
Posted: 24 Sep 2010, 18:16
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?
Re: GraphViz - Broken Image
Posted: 25 Sep 2010, 15:17
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
Re: GraphViz - Broken Image
Posted: 27 Sep 2010, 08:48
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
Re: GraphViz - Broken Image
Posted: 27 Sep 2010, 08:56
by udo
great!

If you could please detail where you placed the soft link (do you mean symlink?) and to what file it is pointing...
thanks, udo
Re: GraphViz - Broken Image
Posted: 27 Sep 2010, 09:07
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
Re: GraphViz - Broken Image
Posted: 27 Sep 2010, 11:18
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?
Re: GraphViz - Broken Image
Posted: 27 Sep 2010, 11:34
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.