Web socket error on https

Rody 7 years ago

Hello,

First of all i want to say that i love the Traccar software.

I used the manual from Geek to redirect to https. This works fine but now i have the problem that every tracker i use only once a minute updates, even if i set the update on the tracker at 10 seconds. When i get a update of the tracker it always gives a Web socker error.
When i log on the "old" method that runs on port 80 i get a update every ten seconds like it should withoud a error.
I searched the forum for Similar topics but none of the topics can solve the problem for me.

I can't find were the problem is so i can't solve it.

Who can point me in the right direction so i can solve the problem?

Anton Tananaev 7 years ago

I'm assuming you are using HTTPS proxy. If that's the case, most likely the problem is that you haven't configured websocket proxying.

Rody 7 years ago

Correct, the system runs on Windows server 2012 with IIS and i use HTTPS proxy.
I set a inbound/outbound rule as said in the manual. Is that what you mean?

Anton Tananaev 7 years ago

I'm not sure what manual you are referring to, but you have to make sure that WebSocket connections are also proxied correctly.

Rody 7 years ago

Ah...i see i made a typo. I used the manual in the link from Freek :)

https://freek.ws/2017/12/09/tutorial-how-to-secure-traccar-with-ssl-https-for-free-using-iis-and-lets-encrypt-on-windows-server/

Do you have a hint or something how the make such a rule for the websockets?

Anton Tananaev 7 years ago

I don't use Windows, so unfortunately I won't be able to help with that. Comments on tutorial also mention that WebSocket doesn't work, so I'm assuming some plugin is missing.

Rody 7 years ago

Ah, no problem. I'll try google again :)
If it won't work at all i'll install a Linux version to try if can get it to work.

Thanks

Rody 7 years ago

Anton,

It took me for ages to get the software running on https on Windows and it still did not work like i wanted.
It took me a evening to install Ubuntu and then Traccar with SSL and NO web socket error :)
I can understand why you don't use Windows....i won't use it either ;)

Thanks for your help.