taiga-docker icon indicating copy to clipboard operation
taiga-docker copied to clipboard

websoket connection problem

Open burtsevyg opened this issue 3 years ago • 2 comments

Describe the bug I have a problem with web soket connection:

But if I restart taiga-gaitway container websocket start to work.

docker stop taiga-docker_taiga-gateway_1 docker start taiga-docker_taiga-gateway_1

With

    proxy_set_header Host $host;
    proxy_connect_timeout 7d;
    proxy_send_timeout 7d;
    proxy_read_timeout 7d;

or without it does not important.

Maybe it nginx cache at start time or something else.

To Reproduce Steps to reproduce the behavior: 1 Lanch taiga https://github.com/taigaio/taiga-docker 2 in browser console I see error 3. or with wscat

$ yarn install wscat
$ wscat -c  wss://HOST/events
error: Unexpected server response: 502

Expected behavior There is no error In browser console and wscat connetct to websocket console:

wscat -c  wss://HOST/events
Connected (press CTRL+C to quit)

Configuration If applicable, describe the custom configuration that may affect.

Versions Last stable version of

  • docker
  • docker-compose

Additional context Add any other context about the problem here.

burtsevyg avatar Apr 14 '21 08:04 burtsevyg

I have just figured out my similar (same?) issue - https://github.com/taigaio/taiga-docker/issues/73

My passwords in docker-compose.yml had some symbols that seemed to cause issues, I removed all symbols and stopped having problems with the websocket connections on the front end.

You may need to remove the volumes (wipe all the Taiga data) so the databases can be reinstalled with the new password if you change them: docker-compose down -v

saul-jb avatar Apr 14 '21 22:04 saul-jb

I have just figured out my similar (same?) issue - #73

My passwords in docker-compose.yml had some symbols that seemed to cause issues, I removed all symbols and stopped having problems with the websocket connections on the front end.

You may need to remove the volumes (wipe all the Taiga data) so the databases can be reinstalled with the new password if you change them: docker-compose down -v

Try docker-compose down and up again. Is problem still there?

burtsevyg avatar Apr 14 '21 22:04 burtsevyg

I think I posted this in a wrong repo. I reposted this in taiga-back

sarbanha avatar Apr 07 '22 08:04 sarbanha