Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File copy() broken (again) #63

Closed
oleweidner opened this issue Mar 25, 2013 · 3 comments
Closed

File copy() broken (again) #63

oleweidner opened this issue Mar 25, 2013 · 3 comments

Comments

@oleweidner
Copy link
Contributor

easy_install . && python examples/tutorial/saga_example_remote_staging.py

results in

An exception occured: (NoSuccess) NoSuccess: file copy failed: sftp> progress 
Progress meter enabled
sftp>  put  /tmp/mysagajob.stdout /tmp 
stat /tmp/mysagajob.stdout: No such file or directory


*** Backtrace:
   File "examples/tutorial/saga_example_remote_staging.py", line 74, in <module>
    sys.exit(main())
  File "examples/tutorial/saga_example_remote_staging.py", line 58, in main
    out.copy(outfiletarget)
  File "/Users/oweidner/anotherbigjob/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/namespace/entry.py", line 209, in copy
    ret = self._adaptor.copy_self (tgt_url, flags, ttype=ttype)
  File "/Users/oweidner/anotherbigjob/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/adaptors/cpi/decorators.py", line 51, in wrap_function
    return sync_function (self, *args, **kwargs)
  File "/Users/oweidner/anotherbigjob/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/adaptors/shell/shell_file.py", line 940, in copy_self
    self.shell.stage_to_remote (src.path, tgt.path, rec_flag)
  File "/Users/oweidner/anotherbigjob/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/utils/pty_shell.py", line 801, in stage_to_remote
    pty_copy = self.factory.run_copy_to (self.pty_info, src, tgt, cp_flags)
  File "/Users/oweidner/anotherbigjob/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/utils/pty_shell_factory.py", line 235, in run_copy_to
    raise saga.NoSuccess._log (self.logger, "file copy failed: %s" % out)
  File "/Users/oweidner/anotherbigjob/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/utils/exception.py", line 89, in _log
    return cls (message)

The file on the remote end exists.

@ghost ghost assigned andre-merzky Mar 25, 2013
@andre-merzky
Copy link
Member

indeed, this should be a 'get', not a 'put' ...

@andre-merzky
Copy link
Member

I am not sure why that worked before (as you said on skype) -- this was caused by another logical error, where I did invert remote/local... Now fixed in devel.

@oleweidner
Copy link
Contributor Author

Seems to work now. Thanks!

On Mar 25, 2013, at 19:46 , Andre Merzky notifications@github.com wrote:

I am not sure why that worked before (as you said on skype) -- this was caused by another logical error, where I did invert remote/local... Now fixed in devel.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants