viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.67k stars 1.49k forks source link

Websocket connection Issue: No Such file or Directory #210

Open monarkmodi opened 4 years ago

monarkmodi commented 4 years ago

Hi, I am trying to connect to websocket on my localhost and I have used the docker setup. However when I try to create a connection, I do not get any error and when I check the nginx error log, I see the following error:

2019/09/21 15:05:39 [crit] 28829#28829: *1 connect() to unix:/tmp/accessws.sock failed (2: No such file or directory) while connecting to upstream, client: 91.73.163.121, server: _, request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/accessws.sock:/", host: "165.227.227.113"

Looks like some issue with socket directory but not quite sure. Any kind of guidance would be much appreciated.

surfy1h commented 4 years ago

I had the same issue with docker. I think it was the websocket image. Try a different accessws server image or fork

monarkmodi commented 4 years ago

Hi @surfy1h Thanks for the feedback. Can you please explain a little more on how can I go about a different accessws server image or forking it? Much appreciated!

surfy1h commented 4 years ago

try https://github.com/objectt/viabtc_exchange_server

monarkmodi commented 4 years ago

Still same issue. Basically the websocket tries to connect but I do not get any response. Just remains pending. Any idea what's going wrong?

monarkmodi commented 4 years ago

Any update on how to fix the issue or use websocket?

TaylorWenOne commented 4 years ago

Any update on how to fix the issue or use websocket?

use ip+port ,do not use unix,by the way , firewall need follow ws port