scalableminds/webknossos-libs

open_remote and open_as_remote_dataset api calls encounter SSL error on some systems

Closed this issue · 0 comments

Context

  • Affected library: webknossos

Using the webknossos libs to open a remote dataset or to open an annotation as a remote dataset on some systems encounters an SSL error. This bug started to occur with the switch to uv. The problem didn't exist when using micromamba.

Expected Behavior

The api calls Dataset.open_remote and Annotation.open_as_remote_dataset should succeed, regardless of which system they are executed from.

Current Behavior

On some systems (client compute clusters) these calls encounter the following error when trying to reach a webknossos datastore:

aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host wk-datastore.some.domain:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')]

However, this error is swallowed and the libs display a generic error message like FileNotFoundError: Cannot create read-only dataset, could not find data at ... or similar.

Steps to Reproduce the bug

  • Cannot reproduce the bug anymore / needs deeper investigation.
import webknossos as wk
from webknossos import webknossos_context
url_anno = "<some_annotation_link>"
with webknossos_context(
    token="<your_wk_token>"
    url="<wk_host_url>"
):
    annotation_dataset = wk.Annotation.open_as_remote_dataset(url_anno)

Your Environment for bug

  • Operating System and version: CentOS Linux 7
  • Version of webKnossos-libs (Release or Commit): 0.15.5