Kitware / paraviewweb

Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data
http://kitware.github.io/paraviewweb/
BSD 3-Clause "New" or "Revised" License
165 stars 51 forks source link

Vagrant up fails in Ansible on Debian/Buster #407

Closed Trophime closed 6 years ago

Trophime commented 6 years ago

Hi, sorry to bother again but this time it fails in ansible:

<127.0.0.1> (0, '\r\n{"msg": "Failed to validate the SSL certificate for www.paraview.org:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine  (the python executable used (/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4]) or you can install the `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: hostname \'www.paraview.org\' doesn\'t match either of \'*.kitware.com\', \'kitware.com\'.", "failed": true, "exception": "  File \\"/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py\\", line 1044, in fetch_url\\n    client_key=client_key, cookies=cookies)\\n  File \\"/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py\\", line 951, in open_url\\n    r = urllib_request.urlopen(*urlopen_args)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 127, in urlopen\\n    return _opener.open(url, data, timeout)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 410, in open\\n    response = meth(req, response)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 523, in http_response\\n    \'http\', request, response, code, msg, hdrs)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 442, in error\\n    result = self._call_chain(*args)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 382, in _call_chain\\n    result = func(*args)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 629, in http_error_302\\n    return self.parent.open(new, timeout=req.timeout)\\n  File \\"/usr/lib/python2.7/urllib2.py\\", line 402, in open\\n    req = meth(req)\\n  File \\"/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py\\", line 763, in http_request\\n    build_ssl_validation_error(self.hostname, self.port, paths_checked, e)\\n  File \\"/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py\\", line 591, in build_ssl_validation_error\\n    raise SSLValidationError(\' \'.join(msg) % (hostname, port, \\", \\".join(paths)))\\n", "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "owner": null, "follow": false, "client_key": null, "group": null, "use_proxy": true, "unsafe_writes": null, "setype": null, "content": null, "validate_certs": true, "serole": null, "client_cert": null, "timeout": 10, "src": null, "dest": "/var/tmp", "selevel": null, "force_basic_auth": false, "sha256sum": "", "http_agent": "ansible-httpget", "regexp": null, "url_password": null, "url": "http://www.paraview.org/files/v5.2/ParaView-5.2.0-RC4-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz", "checksum": "", "seuser": null, "headers": null, "delimiter": null, "mode": null, "url_username": null, "attributes": null, "backup": null, "tmp_dest": null}}}\r\n', 'OpenSSH_7.6p1 Debian-2, OpenSSL 1.0.2m  2 Nov 2017\r\ndebug1: Reading configuration data /home/LNCMI-G/trophime/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 12253\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 127.0.0.1 closed.\r\n')
The full traceback is:
  File "/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py", line 1044, in fetch_url
    client_key=client_key, cookies=cookies)
  File "/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py", line 951, in open_url
    r = urllib_request.urlopen(*urlopen_args)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 402, in open
    req = meth(req)
  File "/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py", line 763, in http_request
    build_ssl_validation_error(self.hostname, self.port, paths_checked, e)
  File "/tmp/ansible_eSpk4J/ansible_modlib.zip/ansible/module_utils/urls.py", line 591, in build_ssl_validation_error
    raise SSLValidationError(' '.join(msg) % (hostname, port, ", ".join(paths)))

fatal: [pvw]: FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "attributes": null, 
            "backup": null, 
            "checksum": "", 
            "client_cert": null, 
            "client_key": null, 
            "content": null, 
            "delimiter": null, 
            "dest": "/var/tmp", 
            "directory_mode": null, 
            "follow": false, 
            "force": false, 
            "force_basic_auth": false, 
            "group": null, 
            "headers": null, 
            "http_agent": "ansible-httpget", 
            "mode": null, 
            "owner": null, 
            "regexp": null, 
            "remote_src": null, 
            "selevel": null, 
            "serole": null, 
            "setype": null, 
            "seuser": null, 
            "sha256sum": "", 
            "src": null, 
            "timeout": 10, 
            "tmp_dest": null, 
            "unsafe_writes": null, 
            "url": "http://www.paraview.org/files/v5.2/ParaView-5.2.0-RC4-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz", 
            "url_password": null, 
            "url_username": null, 
            "use_proxy": true, 
            "validate_certs": true
        }
    }, 
    "msg": "Failed to validate the SSL certificate for www.paraview.org:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine  (the python executable used (/usr/bin/python) is version: 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4]) or you can install the `urllib3`, `pyOpenSSL`, `ndg-httpsclient`, and `pyasn1` python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: hostname 'www.paraview.org' doesn't match either of '*.kitware.com', 'kitware.com'."
}
    to retry, use: --limit @/home/LNCMI-G/trophime/paraviewweb/tools/ansible-deprecated/site.retry

PLAY RECAP *********************************************************************
pvw                        : ok=8    changed=3    unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I don't know a thing about Ansible, could you help me?

jourdain commented 6 years ago

First of all, what is your goal? As there might be easier path than the one you are trying to take as it is now deprecated.

Trophime commented 6 years ago

I'd just like to test ParaView web. My work is in close connection with Feel++ and MSO4SC.

jourdain commented 6 years ago

Can you download ParaView and does it work on the computer you whish to install ParaViewWeb?

https://www.paraview.org/download/

jourdain commented 6 years ago

If so, you can run visualizer via a command line like described here:

http://kitware.github.io/paraviewweb/docs/architecture.html#Simplicity

Then to make it a multi-client server, you will need to configure Apache and the launcher. But that first step will give you a quick path to test out the application.

Trophime commented 6 years ago

Provided few patches vagrant up run as expected: see attached [paraviewweb_vagrant.patch.txt] https://github.com/Kitware/paraviewweb/files/1543216/paraviewweb_vagrant.patch.txt

jourdain commented 6 years ago

see https://github.com/Kitware/paraviewweb/pull/408