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

Problems with Context / Userpass #60

Closed
oleweidner opened this issue Mar 25, 2013 · 1 comment
Closed

Problems with Context / Userpass #60

oleweidner opened this issue Mar 25, 2013 · 1 comment

Comments

@oleweidner
Copy link
Contributor

From Adrián's email:

        # Your ssh identity on the remote machine.
        password = saga.Context("UserPass")
        password.user_id = "...................."
        password.user_pass = "................."

        session = saga.Session()
        session.add_context(password)

        # Create a job service object that represent a remote pbs cluster.
        # The keyword 'pbs' in the url scheme triggers the PBS adaptors
        # and '+ssh' enables PBS remote access via SSH.
        js = saga.job.Service("pbs+ssh://.......................:1301",
                              session=session)

results in

An exception occured: (AuthenticationFailed) AuthenticationFailed: prompted for unknown password (******************************************************************
*  Welcome to ....................................                                 *
*                                                                *
*  This system is for authorized users only.                     *
*  If you are unable to login, please contact ..........@......es  * 
******************************************************************
..................................@...........................'s password: ) 

*** Backtrace:
   File "./saga_prueba.py", line 97, in <module>
    sys.exit(main())
  File "./saga_prueba.py", line 37, in main
    session=session)
  File "/home/adrian/.virtualenvs/cluster_portal/local/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/job/service.py", line 74, in __init__
    url, session, ttype=_ttype)
  File "/home/adrian/.virtualenvs/cluster_portal/local/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/base.py", line 69, in __init__
    self._init_task = self._adaptor.init_instance (adaptor_state, *args, **kwargs)
  File "/home/adrian/.virtualenvs/cluster_portal/local/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 "/home/adrian/.virtualenvs/cluster_portal/local/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/adaptors/pbs/pbsjob.py", line 341, in init_instance
    self.session, null_logger)
  File "/home/adrian/.virtualenvs/cluster_portal/local/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/utils/pty_shell.py", line 210, in __init__
    self.initialize ()
  File "/home/adrian/.virtualenvs/cluster_portal/local/lib/python2.7/site-packages/saga_python-0.9.3-py2.7.egg/saga/utils/pty_shell.py", line 279, in initialize
    % match)
@ghost ghost assigned andre-merzky Mar 25, 2013
@andre-merzky
Copy link
Member

fixed in devel. Reason was (a) a typo, and (b) that dash does not accept newlines in PS1. Damned....

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