Hi Ricardo as those wrapper_script.sh files sit on the science cloud instances, they disappear when the application terminate. I added a copy command to the terminated() method of QDF2PlinkApp.py: newout = os.path.join(self.final_dir, "wrapper_script.sh") move("./.gc3pie_shellcmd/wrapper_script.sh", newout)
But this doesn't work according to the output: gc3.gc3libs: ERROR: Ignored error in fetching output of task 'QDF2PlinkApp.3411': IOError: [Errno 2] No such file or directory: './.gc3pie_shellcmd/wrapper_script.sh' gc3.gc3libs: DEBUG: (Original traceback follows.) Traceback (most recent call last): File "/home/centos/gc3pie/lib/python2.7/site-packages/gc3libs/core.py", line 1594, in progress changed_only=self.retrieve_changed_only) File "/home/centos/gc3pie/lib/python2.7/site-packages/gc3libs/core.py", line 592, in fetch_output app, download_dir, overwrite, changed_only, **extra_args) File "/home/centos/gc3pie/lib/python2.7/site-packages/gc3libs/core.py", line 671, in __fetch_output_application return Task.fetch_output(app, download_dir) File "/home/centos/gc3pie/lib/python2.7/site-packages/gc3libs/__init__.py" , line 424, in fetch_output self.execution.state = Run.State.TERMINATED File "/home/centos/gc3pie/lib/python2.7/site-packages/gc3libs/__init__.py" , line 1812, in fset getattr(self._ref, handler)() File "/home/centos/analysis/QDF2PlinkApp.py", line 59, in terminated move("./.gc3pie_shellcmd/wrapper_script.sh", newout) File "/usr/lib64/python2.7/shutil.py", line 301, in move copy2(src, real_dst) File "/usr/lib64/python2.7/shutil.py", line 130, in copy2 copyfile(src, dst) File "/usr/lib64/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc: IOError: [Errno 2] No such file or directory: './.gc3pie_shellcmd/wrapper_script.sh' I don't know if the path is correct, ot if the instance is still alive, once the method terminate() is executed.... Is there a way to keep an instance alive after its application has finished? Regards Jody On Monday, November 21, 2016 at 11:51:42 AM UTC+1, Jody Weissmann wrote: > > Hi > > I have built a *SequentialTaskCollection* consisting of 6 Applications. > > When i run it on localhost it works fine, but on the science cloud i get a > message like > /home/centos/gc3libs.L4Kvjx/.gc3pie_shellcmd/wrapper_script.sh: line 4: > exec: None: not found > for every application in the *SequentialTaskCollection* > > A new instance is started in the science cloud and the various output > directories as well as stdout and stderr files are created. > > The instance created is a fresh Centos 7.2 installationto which i added > some packages needed for my software to run (i.e. no gc3lib or so > installed). > > Does anybody know how to solve this problem? > > cheers > Jody > > -- You received this message because you are subscribed to the Google Groups "gc3pie" group. To unsubscribe from this group and stop receiving emails from it, send an email to gc3pie+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.