simple-zarr-server icon indicating copy to clipboard operation
simple-zarr-server copied to clipboard

ClientConnectorError: Cannot connect to host XXX.XXX.XXX.XXX:8000 ssl:default [Connect call failed ('XXX.XXX.XXX.XXX', 8000)]

Open Karol-G opened this issue 3 years ago • 1 comments
trafficstars

Hi,

first of all thanks for this repo, it looks really cool! I tested your example on my machine under localhost and everything works fine. However, when I setup another machine in my network as a server and try to connect to it then I get the following error:

ClientConnectorError: Cannot connect to host XXX.XXX.XXX.XXX::8000 ssl:default [Connect call failed ('XXX.XXX.XXX.XXX:', 8000)]
C:\Users\Cookie\Anaconda3\envs\napari\lib\site-packages\ipykernel\kernelbase.py:684: RuntimeWarning: coroutine 'InProcessKernel._abort_queues' was never awaited!

(The IP has been replaced with XXX.XXX.XXX.XXX )

I am kind of a noob when it comes to network stuff so any help is welcome :)

On the server side I tested the following things:

  • Replace localhost with the actual IP of the server
  • Change the port
  • Whitelist the client ip with forwarded-allow-ips

I confirmed that I can ping the server and I am able to do other stuff like wget, rsync, ssh and stuff like that. However, the server might have firewall restriction (which I cannot change). Can that be the cause of the problem? I cannot interpret the error myself and google was not helpful.

Best, Karol

Karol-G avatar Aug 04 '22 15:08 Karol-G

Thanks for trying out simple-zarr-server! I actually haven't experimented with using simple-zarr-server outside of localhost, and my best guess is documentation on using uvicorn/starlette in that context will likely be the most useful.

It seems this issue could be related to something with SSL https://github.com/aio-libs/aiohttp/issues/3672.

manzt avatar Jun 12 '23 15:06 manzt