'cylc scan' failing with 'unsecured http' error

hi there,

rose and cylc are working fine for me as normal currently but cylc scan and cylc gscan are failing with the error in the pasted code below.

any ideas?

thanks!

> cylc scan
ERROR: server has no HTTPS support, configure your global.rc file to use HTTP : [SSL: UNKNOWN_PROTOCOL] unknown protocol (_            ssl.c:579)
Process Process-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/scale_wlg_persistent/filesets/opt_nesi/share/cylc/7.9.1/lib/cylc/network/port_scan.py", line 58, in _scan_worker
    conn.send(_scan_item(timeout, my_uuid, srv_files_mgr, item))
  File "/scale_wlg_persistent/filesets/opt_nesi/share/cylc/7.9.1/lib/cylc/network/port_scan.py", line 81, in _scan_item
    result = client.identify()
  File "/scale_wlg_persistent/filesets/opt_nesi/share/cylc/7.9.1/lib/cylc/network/httpclient.py", line 235, in identify
    return self._call_server('id/identify', method=self.METHOD_GET)
  File "/scale_wlg_persistent/filesets/opt_nesi/share/cylc/7.9.1/lib/cylc/network/httpclient.py", line 338, in _call_server
    return self.call_server_impl(url, method, payload)
  File "/scale_wlg_persistent/filesets/opt_nesi/share/cylc/7.9.1/lib/cylc/network/httpclient.py", line 369, in call_server_            impl
    return impl(url, method, payload)
  File "/scale_wlg_persistent/filesets/opt_nesi/share/cylc/7.9.1/lib/cylc/network/httpclient.py", line 436, in _call_server            _impl_requests
    "Cannot issue commands over unsecured http.")
CylcError: 'Cannot issue commands over unsecured http.'

Hi,

This message results from either a urllib2.URLError or requests.exceptions.SSLError which includes the string unknown protocol. Unfortunately it can be quite hard to debug these problems without access to the systems. It’s worth checking that OpenSSL and pyOpenSSL are installed in the Cylc environment (Cylc 7 installation requirements).

Cheers,
Oliver

1 Like

Hi @jonnyhtw

I’ve just confirmed that Cylc 7 cylc scan works fine for me on both Maui and Mahuika.

If you had accidentally deleted suite-specific auth files, you’d get a “permission denied” error, so it’s not that.

In line with @oliver.sanders’ comment, I wonder if you’ve started one or more suites in an altered Python environment that doesn’t have SSL support installed. Can you interact with your running suites in any other way - e.g. cylc dump or cylc stop?

Feel free to email me directly since this is probably a local environment issue.

1 Like

thanks @oliver.sanders and @hilary.j.oliver, i’ll email hilary as suggest. cheers