[Zoo-discuss] ZOOGrassModuleStarter instance has no attribute 'logfile

truongxuan quang truongxuanquang at yahoo.com
Sun May 3 11:35:20 PDT 2015


Hello Pablo
Can you please change / tmp/zoo to www-data permission  Quang


     On Sunday, May 3, 2015 5:54 AM, pablo zader <pzader at gmail.com> wrote:
   

 Hi list
I'm working with GRASS GIS services, particularly "r.what".
Experiment a problem to define a nonexistent directory in GlobalGras Settings.py file:

WORKDIR="/tmp/zoo"OUTPUTDIR="/tmp/zoo"LOGFILE="/tmp/zoo/logfile.txt"LOGFILE_MODULE_STDOUT="/tmp/zoo/logfile_module_stdout.txt"LOGFILE_MODULE_STDERR="/tmp/zoo/logfile_module_sterr.txt"GRASS_GIS_BASE="/home/pablo/grass_trunk/dist.x86_64-unknown-linux-gnu"GRASS_ADDON_PATH="/home/pablo/wps-grass-bridge/gms/Testing/Python/GrassAddons"GRASS_VERSION="7.0.svn"
if the "/ tmp/zoo" directory does not exist, an error occurs:

 <ExceptionReportxmlns="http://www.opengis.net/ows/1.1"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.opengis.net/ows/1.1http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"xml:lang="en-US" version="1.1.0">
<ExceptionexceptionCode="NoApplicableCode">
<ExceptionText>
TRACE: ZOOGrassModuleStarter instance has no attribute 'logfile' <type'exceptions.AttributeError'> Unable to run your python processproperly. Please check the following messages : [' File"/usr/lib/cgi-bin/r_what.py", line 7, in r_what\nservice.fromMaps("r.what", inputs, outputs)\n', ' File"/usr/lib/cgi-bin/ZOOGrassModuleStarter.py", line 43, infromMaps\n self._createTemporalDir(GlobalGrassSettings.WORKDIR)\n', 'File "/usr/lib/cgi-bin/gms/GrassModuleStarter.py", line248, in _createTemporalDir\n self.LogError(log)\n', ' File"/usr/lib/cgi-bin/gms/ProcessLogging.py", line 70, inLogError\n self.logfile.write("\\n<ERROR timestamp=\\""+ localtime + "\\">\\n")\n']
</ExceptionText>
</Exception>
</ExceptionReport>
There are two issues I want to raise:
   
   - best would return an error message: "Can not create the directory", rather than "ZOOGrassModuleStarterinstance has no attribute 'logfile"??? (This is bug zoo-proyect??)   
   

   - If my tmp is:   
   
drwxrwxrwx  30 root root 12288 may  3 00:43 tmp   
   
Why zoo-project can not create the directory zoo?   


Thanks in advanced
Pablo





-- 
Pablo J. ZaderLic. en Cs. de la Computaciónpablo.zader at gmail.com

"Los Grandes Hombres hablan sobre ideas...
 Los Hombres Promedio hablan sobre cosas...
 Los Hombres Pequeños hablan.. de otros Hombres.

del libro Matemática estas ahi? A. Paenza "
_______________________________________________
Zoo-discuss mailing list
Zoo-discuss at lists.osgeo.org
http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150503/c4819b94/attachment.html>


More information about the Zoo-discuss mailing list