<div dir="ltr">Dear Quang<div><br>Yes, like this here "<a href="http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9">http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9</a>" works perfectly, but if you look right there mentioned, If I want I changue the path. <br>Turning again to my original question if that path there and if you forgot create, the service will not work! and error message to return ZOO does not refer to this error, it is not clear.</div><div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:medium"><br></span></div><div><table id="src_table_0" style="border-collapse:collapse;padding:0px;margin:0px;color:rgb(0,0,0);font-family:Monaco,'DejaVu Sans Mono','Bitstream Vera Sans Mono','Lucida Console',monospace;font-size:12px;white-space:pre"><tbody style="padding:0px;margin:0px"><tr id="sl_svn9_26" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="" style="color:rgb(136,0,0)"># !!!!! EDIT THIS SECTION !!!!!</span><span class=""><br></span></td></tr><tr id="sl_svn9_27" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="" style="color:rgb(136,0,0)"># Some default variables. Override them to your needs. <font size="4"> <b><---- HERE</b></font></span><span class=""><br></span></td></tr><tr id="sl_svn9_28" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">WORKDIR</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"/tmp"</span><span class=""><br></span></td></tr><tr id="sl_svn9_29" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">OUTPUTDIR</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"/tmp"</span><span class=""><br></span></td></tr><tr id="sl_svn9_30" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">LOGFILE</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"logfile.txt"</span><span class=""><br></span></td></tr><tr id="sl_svn9_31" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">LOGFILE_MODULE_STDOUT</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"logfile_module_stdout.txt"</span><span class=""><br></span></td></tr><tr id="sl_svn9_32" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">LOGFILE_MODULE_STDERR</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"logfile_module_sterr.txt"</span><span class=""><br></span></td></tr><tr id="sl_svn9_33" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">GRASS_GIS_BASE</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"/home/soeren/src/grass7.0/grass_trunk/dist.i686-pc-linux-gnu"</span><span class=""><br></span></td></tr><tr id="sl_svn9_34" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">GRASS_ADDON_PATH</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"/home/soeren/src/vtkGRASSBridge/vtk-grass-bridge/WPS/Testing/Python/GrassAddons"</span><span class=""><br></span></td></tr><tr id="sl_svn9_35" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="">GRASS_VERSION</span><span class="" style="color:rgb(102,102,0)">=</span><span class="" style="color:rgb(0,136,0)">"7.0.svn"</span><span class=""><br></span></td></tr><tr id="sl_svn9_36" style="padding:0px;margin:0px"><td class="" style="padding:0px 0px 0px 4px;white-space:pre-wrap;vertical-align:top"><span class="" style="color:rgb(136,0,0)"># !!!!! END EDIT SECTION !!!!!</span><span class=""><br></span></td></tr><tr id="sl_svn9_37" style="padding:0px;margin:0px"></tr></tbody></table><br></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:medium">Pablo</span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:medium"><br></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-03 17:18 GMT-03:00 truongxuan quang <span dir="ltr"><<a href="mailto:truongxuanquang@yahoo.com" target="_blank">truongxuanquang@yahoo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div><div><div style="background-color:rgb(255,255,255)"><div dir="ltr" style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span>Dear Pablo</span></div><div dir="ltr" style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span><br clear="none"></span></div><div dir="ltr" style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span>I am aslo ZOO-Project user, did you try to set your configure file with /tmp/(without zoo)/...</span></div><div dir="ltr" style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span>I think it works perfectly!</span></div><div dir="ltr" style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><span><br clear="none"></span></div><div dir="ltr"><span style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px">I don't know which version you are using but as I google it in </span><a rel="noreferrer" shape="rect" href="http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9" target="_blank">http://code.google.com/p/wps-grass-bridge/source/browse/trunk/ZOOGrassModuleStarter.py?r=9&spec=svn9</a> it looks something wrong with the path in configure file </div><br clear="none"><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px">Quang<br clear="none"><br clear="none"></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"></div></div></div></div><div><div> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font size="2" face="Arial"> On Sunday, May 3, 2015 9:13 PM, pablo zader <<a href="mailto:pzader@gmail.com" target="_blank">pzader@gmail.com</a>> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div><div><div><div dir="ltr">Hello Quang<div><br clear="none"></div><div>If I change the directory owner to www-data, it works well. But it also works if you have the permissions to 777 with user root.<br clear="none"></div><div>For example</div><div><br clear="none"></div><div>drwxrwxrwx 31 root root 12288 may 3 16:10 tmp<br clear="none"></div><div>drwxrwxrwx 2 root root 4096 may 3 16:07 /tmp/zoo<br clear="none"></div><div><br clear="none"></div><div>But my question is another:</div><div><br clear="none"></div><div>"<span style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><i>There are two issues I want to raise:</i></span></div><div style="color:rgb(0,0,0);font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif"><ol><li style="margin-left:15px"><i>best would return an error message: "Can not create the directory", rather than "<span style="font-family:Verdana;background-color:transparent">ZOOGrassModuleStarter instance has no attribute 'logfile"??? (This is bug zoo-proyect??)<br clear="none"><br clear="none"></span></i></li><li style="margin-left:15px"><span style="background-color:transparent"><i><font color="#000000" face="Verdana">If my tmp is:<br clear="none"></font><br clear="none"><font color="#000000" face="Verdana">drwxrwxrwx 30 root root 12288 may 3 00:43 tmp<br clear="none"><br clear="none"></font>Why zoo-project can not create the directory zoo? </i></span><span style="font-family:arial,sans-serif;color:rgb(34,34,34)">"</span></li></ol></div><div><br clear="none"></div><div>Thanks</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div></div><div><br clear="none"><div>2015-05-03 15:35 GMT-03:00 truongxuan quang <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:truongxuanquang@yahoo.com" target="_blank">truongxuanquang@yahoo.com</a>></span>:<br clear="none"><div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div dir="ltr"><span>Hello </span><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px">Pablo</span></div><div dir="ltr"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px"><br clear="none"></span></div><div dir="ltr"><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px">Can you please change </span><span style="font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px">/ tmp/zoo to www-data permission </span></div> <div dir="ltr">Quang</div><br clear="none"><div><br clear="none"><br clear="none"></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font size="2" face="Arial"> On Sunday, May 3, 2015 5:54 AM, pablo zader <<a rel="nofollow" shape="rect" href="mailto:pzader@gmail.com" target="_blank">pzader@gmail.com</a>> wrote:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div><div><div dir="ltr">Hi list<div><br clear="none"></div><div>I'm working with GRASS GIS services, particularly "r.what".<br clear="none"></div><div>Experiment a problem to define a nonexistent directory in GlobalGras Settings.py file:<br clear="none"></div><div><br clear="none"></div><div><div><div>WORKDIR="/tmp/zoo"</div><div>OUTPUTDIR="/tmp/zoo"</div><div>LOGFILE="/tmp/zoo/logfile.txt"</div><div>LOGFILE_MODULE_STDOUT="/tmp/zoo/logfile_module_stdout.txt"</div><div>LOGFILE_MODULE_STDERR="/tmp/zoo/logfile_module_sterr.txt"</div><div>GRASS_GIS_BASE="/home/pablo/grass_trunk/dist.x86_64-unknown-linux-gnu"</div><div>GRASS_ADDON_PATH="/home/pablo/wps-grass-bridge/gms/Testing/Python/GrassAddons"</div><div>GRASS_VERSION="7.0.svn"</div></div><div><br clear="none"></div><div>if the "/ tmp/zoo" directory does not exist, an error occurs:<br clear="none"></div><div><br clear="none"></div><div>
<div style="background-color:transparent"><font color="#000000"><font face="Verdana"><font style="font-size:8pt"><span style="background-color:transparent"><ExceptionReport
xmlns="<a rel="nofollow" shape="rect" href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>"
xmlns:xsi="<a rel="nofollow" shape="rect" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"
xsi:schemaLocation="<a rel="nofollow" shape="rect" href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>
<a rel="nofollow" shape="rect" href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" target="_blank">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>"
xml:lang="en-US" version="1.1.0"><br clear="none"></span></font></font></font><span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;font-size:8pt"><Exception
exceptionCode="NoApplicableCode"><br clear="none"></span><span style="background-color:transparent;font-family:Verdana;color:rgb(0,0,0);font-size:8pt"><ExceptionText><br clear="none"></span><span style="background-color:transparent;font-family:Verdana;color:rgb(0,0,0);font-size:8pt">TRACE
: ZOOGrassModuleStarter instance has no attribute 'logfile' <type
'exceptions.AttributeError'> Unable to run your python process
properly. Please check the following messages : [' File
"/usr/lib/cgi-bin/r_what.py", line 7, in r_what\n
service.fromMaps("r.what", inputs, outputs)\n', ' File
"/usr/lib/cgi-bin/ZOOGrassModuleStarter.py", line 43, in
fromMaps\n self._createTemporalDir(GlobalGrassSettings.WORKDIR)\n', '
File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line
248, in _createTemporalDir\n self.LogError(log)\n', ' File
"/usr/lib/cgi-bin/gms/ProcessLogging.py", line 70, in
LogError\n self.logfile.write("\\n<ERROR timestamp=\\""
+ localtime + "\\">\\n")\n']<br clear="none"></span><span style="background-color:transparent;font-family:Verdana;color:rgb(0,0,0);font-size:8pt"></ExceptionText><br clear="none"></span><span style="background-color:transparent;font-family:Verdana;color:rgb(0,0,0);font-size:8pt"></Exception><br clear="none"></span><span style="font-family:Verdana;color:rgb(0,0,0);font-size:8pt;background-color:transparent"></ExceptionReport></span></div></div><div><br clear="none"></div><div>There are two issues I want to raise:<br clear="none"></div><div><ol><li>best would return an error message: "Can not create the directory", rather than "<span style="font-family:Verdana;color:rgb(0,0,0);font-size:8pt;background-color:transparent">ZOOGrassModuleStarter
instance has no attribute 'logfile"??? (This is bug zoo-proyect??)<br clear="none"><br clear="none"></span></li><li><span style="background-color:transparent"><font color="#000000" face="Verdana" size="1">If my tmp is:<br clear="none"></font><br clear="none"><font color="#000000" face="Verdana"><span style="font-size:11px">drwxrwxrwx 30 root root 12288 may 3 00:43 tmp<br clear="none"><br clear="none"></span></font>Why zoo-project can not create the directory zoo?<br clear="none"></span></li></ol></div><div><br clear="none"></div><div>Thanks in advanced</div><div><br clear="none"></div><div>Pablo</div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div><div><br clear="none"></div>-- <br clear="none"><div><div dir="ltr"><div><div dir="ltr"><div><b><font color="#3366ff"><i>Pablo J. Zader</i></font></b></div><div><b><font color="#3366ff"><i>Lic. en Cs. de la Computación</i></font></b></div><div><i style="color:rgb(51,102,255);font-size:12.8000001907349px"><b><a rel="nofollow" shape="rect" href="mailto:pablo.zader@gmail.com" target="_blank">pablo.zader@gmail.com</a></b></i><br clear="none"></div><div><b><i><font size="1"><br clear="none"></font></i></b></div><div><b><i><font size="1">"Los Grandes Hombres hablan sobre ideas...<br clear="none"> Los Hombres Promedio hablan sobre cosas...<br clear="none"> Los Hombres Pequeños hablan.. de otros Hombres.<br clear="none"><br clear="none"></font></i></b><div><b><i><font size="1">del libro Matemática estas ahi? A. Paenza "</font></i></b></div></div></div></div></div></div>
</div></div></div><br clear="none">_______________________________________________<br clear="none">Zoo-discuss mailing list<br clear="none"><a rel="nofollow" shape="rect" href="mailto:Zoo-discuss@lists.osgeo.org" target="_blank">Zoo-discuss@lists.osgeo.org</a><br clear="none"><a rel="nofollow" shape="rect" href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss</a><br clear="none"><br clear="none"></div><span class="HOEnZb"><font color="#888888"> </font></span></div><span class="HOEnZb"><font color="#888888"> </font></span></div><span class="HOEnZb"><font color="#888888"> </font></span></div></div></div></blockquote></div></div><span class="HOEnZb"><font color="#888888"><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div><div dir="ltr"><div><div dir="ltr"><div><b><font color="#3366ff"><i>Pablo J. Zader</i></font></b></div><div><b><font color="#3366ff"><i>Lic. en Cs. de la Computación</i></font></b></div><div><i style="color:rgb(51,102,255);font-size:12.8000001907349px"><b><a rel="nofollow" shape="rect" href="mailto:pablo.zader@gmail.com" target="_blank">pablo.zader@gmail.com</a></b></i><br clear="none"></div><div><b><i><font size="1"><br clear="none"></font></i></b></div><div><b><i><font size="1">"Los Grandes Hombres hablan sobre ideas...<br clear="none"> Los Hombres Promedio hablan sobre cosas...<br clear="none"> Los Hombres Pequeños hablan.. de otros Hombres.<br clear="none"><br clear="none"></font></i></b><div><b><i><font size="1">del libro Matemática estas ahi? A. Paenza "</font></i></b></div></div></div></div></div></div>
</font></span></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><b><font color="#3366ff"><i>Pablo J. Zader</i></font></b></div><div><b><font color="#3366ff"><i>Lic. en Cs. de la Computación</i></font></b></div><div><i style="color:rgb(51,102,255);font-size:12.8000001907349px"><b><a href="mailto:pablo.zader@gmail.com" target="_blank">pablo.zader@gmail.com</a></b></i><br></div><div><b><i><font size="1"><br></font></i></b></div><div><b><i><font size="1">"Los Grandes Hombres hablan sobre ideas...<br> Los Hombres Promedio hablan sobre cosas...<br> Los Hombres Pequeños hablan.. de otros Hombres.<br><br></font></i></b><div><b><i><font size="1">del libro Matemática estas ahi? A. Paenza "</font></i></b></div></div></div></div></div></div>
</div>