WebSocketBundle icon indicating copy to clipboard operation
WebSocketBundle copied to clipboard

Server not start

Open Systemcheck opened this issue 4 years ago • 2 comments

Hello,

im following the steps to run this websocket server.

  1. composer require is aborting because wrong php version, ok updated.
  2. the config file was not created, manually added
  3. try to start the server. i get no message, no error and no success message. and in console i get: autobahn.min.js:62 WebSocket connection to 'wss://127.0.0.1:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

What kind of error can it be?

Systemcheck avatar Jul 02 '20 03:07 Systemcheck

For 2, there isn’t a recipe that Symfony Flex applies (I tried to create one before but was having an issue building a useful enough config file that worked for all versions, I might try to redo it just for 3.0 and newer).

For 3, you’re using the WSS protocol; does your server support HTTPS? If not, change it to WS.

mbabker avatar Jul 02 '20 12:07 mbabker

Ok 2 is understanding and not really a problem. The handmade config file or adding params in framework.yaml work both.

For 3. yes, the server accept temporarly only https. chnage to ws results in same error: autobahn.min.js:62 WebSocket connection to 'ws://127.0.0.1:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

i think the server is not really starting. is there a way to check out the status? nginx proxy is enabled.

if anyone looking for change php Version in ssh cli: export PATH=/opt/plesk/php/7.4/bin:$PATH; thats worked for me

Systemcheck avatar Jul 03 '20 06:07 Systemcheck