Connection: Offline.

Urdanegui Castillo 10 months ago

Hello community, I reinstalled my Traccar server in Debi 12 with DB copy, everything works as expected, except that when I enter the system configuration, in the information tab I always see "Connection" = Offline

Here is an image:
Server Image

Reinstall the entire server and migrate data from the old db to the new db. Because I have devices that disconnect from the server after a few minutes and don't reconnect, I would just have to erase the device and add it back so it works again for a moment, then disconnect again.
GPS devices and data have already been discarded because GPS devices were tested on three different servers and they connect smoothly and do not disconnect.

Resintake everything but the same thing keeps happening the devices disconnect and don't reconnect, it's like if the db rejects the connection or something blocks it.

I checked the configuration section on the server and I see that it always appears Offline.

Anton Tananaev10 months ago

It indicates WebSocket connection status.

Urdanegui Castillo 10 months ago

Somehow way to fix it or keep it "Connection" = Online.

Anton Tananaev10 months ago

You need to figure out why it's not working first. It's probably some issues with your network.

Urdanegui Castillo 10 months ago

It's definitely not network problems.

Anton Tananaev10 months ago

Are you going to provide evidence to confirm it?

Urdanegui Castillo 10 months ago

I think it's a configuration error, not a network error, because the app doesn't update automatically if I don't close the app, open it and it updates, or in the browser I have to refresh for it to update.

Anton Tananaev10 months ago

Seems like you know better than everyone else.

Urdanegui Castillo 10 months ago

I don't think I know more than anyone else, that's just my point of view. But it seems to bother him that I express what I think he is!

Urdanegui Castillo 10 months ago

I send images from the Traccar and Apache log file.

Anton Tananaev10 months ago

It bothers me that you ignore an expert opinion and then saying you "definitely" know something without providing any evidence.

Urdanegui Castillo 10 months ago

So how do I get that evidence, where do I start, that's why I asked here on the expert forum

Track-trace10 months ago

Meaby you can see any clue through the browser console?

Since Anton is indeed the expert here you should read his remarks very carefully.

He stated,
"It indicates WebSocket connection status"

So investigate that, search google how to check that, what are causes for websocket issues in a network, config
firewall etc etc ..

Im not an expert and still learning a lot especially from experts like Anton.

And what i noticed in general is that People that have a developer background have a thinking process like True / False based on proof. So starting a discussion and stating that you know something for sure without providing proof will never be a good conversation with a developer. I see it all the time here on the forum and both sides get irritated. And thats not a good thing while i respect Anton a lot for the time he takes to help solving issues.

Urdanegui Castillo 10 months ago

I fully understand and apologize if my comment implied that I knew what I don't know, I think it was a matter of translation. EP

About the websocket I checked the Apache configuration and everything seems fine, but it's obvious that something must be wrong. I don't know if it's a misconfiguration issue or some filter in the xml. But I doubt it since I checked it several times but I can't find the solution because I keep getting in the Offline connection settings.

Anton Tananaev10 months ago
  1. Have you checked network tab in developer tools to see what happens to the WebSocket connection?
  2. Have you tried connecting locally (same machine)?
  3. Have you tried connecting directly without Apache?

It's expected that you will do at least those kinds of basic troubleshooting steps before asking for help.