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

Can't connect to localhost #2

Closed
felipeZ opened this issue Jan 4, 2018 · 5 comments
Closed

Can't connect to localhost #2

felipeZ opened this issue Jan 4, 2018 · 5 comments
Assignees

Comments

@felipeZ
Copy link
Contributor

felipeZ commented Jan 4, 2018

Starting a job like,

import cerise_client.service as cc
import os

# Create a new service for user myuser, with given cluster credentials
env = os.environ
srv = cc.require_managed_service(
        'cerise-mdstudio-gt-myuser', 29593,
        'cerise-mdstudio-gt:test',
        os.environ['CERISE_GT_USERNAME'],
        os.environ['CERISE_GT_PASSWORD'])
cc.start_managed_service(srv)

results in the following error

Traceback (most recent call last):
  File "gt_run_gromacs.py", line 22, in <module>
    job = srv.create_job('decompose_include')
  File "/home/felipe/WorkbenchPython/MDStudio/venv/local/lib/python2.7/site-packages/cerise_client/service.py", line 280, in create_job
    self._create_input_dir(job_name)
  File "/home/felipe/WorkbenchPython/MDStudio/venv/local/lib/python2.7/site-packages/cerise_client/service.py", line 420, in _create_input_dir
    r = requests.request('MKCOL', self._input_dir(job_name) + '/')
  File "/home/felipe/WorkbenchPython/MDStudio/venv/local/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/felipe/WorkbenchPython/MDStudio/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/felipe/WorkbenchPython/MDStudio/venv/local/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/home/felipe/WorkbenchPython/MDStudio/venv/local/lib/python2.7/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=29593): Max retries exceeded with url: /files/input/decompose_include/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcd354e2510>: Failed to establish a new connection: [Errno 111] Connection refused',))

@LourensVeen
Copy link
Member

Hmm, interesting. That suggests that the WebDAV is not running, or that there's some connection/network issue. The GT specialisation is a bit stale at the moment, so perhaps it just needs to be updated to work with the latest Cerise base image. Let's have a look on Wednesday.

@LourensVeen
Copy link
Member

The configuration file is definitely stale, which doesn't explain why it can't connect to the WebDAV though.

@LourensVeen
Copy link
Member

Ah, the configuration had been updated, but there's a typo resulting in invalid YAML. Cerise should print an error on stdout in that case, so you can get to it via docker log. Or it can use the normal log file at least if the problem is in the API config, because it can still get the logging configuration from the main config.

@LourensVeen
Copy link
Member

Log output has been added to Cerise, it ends up in /var/log/cerise/cerise_backend.err in the standard Docker configuration.

@LourensVeen
Copy link
Member

Fixed by 9bc2a44

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

No branches or pull requests

2 participants