Communications link failure error

burnbird9 years ago

Hi, Anton
I've started to get this error every time I refresh the page of webadmin:

Communications link failure The last packet successfully received from the server was 124,259 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago. - CommunicationsException (... < QueryBuilder:376 < *:275 < DataManager:328 < ServerResource:40 < ...)

this starts to happen when I installed vestacp panel and (I suppose) after it reinstalls mysql and iptables has been started.
I already did:
changed mysql config - increased wait_timeout, interactive_timeout, connect_timeout
added to the connection string additional params - jdbc:mysql://127.0.0.1:3306/admin_traccar_db?autoReconnect=true&failOverReadOnly=false&maxReconnects=10

allowed 8082 in iptables
tried to start the server on another port (48082) to exclude an option of coflicted ports or smt.

do you have any thoughts what yet could be the reason?

Anton Tananaev9 years ago

Increasing or disabling MySQL timeouts should definitely work.

burnbird9 years ago

there is no way to disable it...
will try to increase it much more.
how much wait_timeout did you set on your server?

Anton Tananaev9 years ago

I never set it up. Everything works without changing any MySQL settings.

burnbird9 years ago

for the one who will find this thread later - set wait_timeout to the default value (28800 seconds) should help resolve this issue )