Wrong port. The correct port for Traccar Client is 5055.
Obviously it cannot connect directly to your database, so your URL doesn't really make sense.
Thank you, Anton, apologies for my confusion. I am fairly new working with ports
I updated with the correct port however the issue remained.
In order to debug, I follow the steps described at the documentation and after confirming that port 5055 is open, I also test the connection with multiple devices (3 more), and, all of them faced the same issue.
Checked the logs and verified some warnings but I was not able to figure out the reason. Is the something I am missing?
Again, thank you very much for the great support
2023-04-03 22:46:08 INFO: Starting server...
2023-04-03 22:46:08 INFO: HikariPool-1 - Starting...
2023-04-03 22:46:08 INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@6d2693d6
2023-04-03 22:46:08 INFO: HikariPool-1 - Start completed.
2023-04-03 22:46:08 INFO: Clearing database change log checksums
2023-04-03 22:46:08 INFO: Successfully acquired change log lock
2023-04-03 22:46:08 INFO: Successfully released change log lock
2023-04-03 22:46:08 INFO: Successfully acquired change log lock
2023-04-03 22:46:09 INFO: Reading from traccar.DATABASECHANGELOG
2023-04-03 22:46:09 INFO: Reading from traccar.DATABASECHANGELOG
2023-04-03 22:46:09 INFO: Successfully released change log lock
2023-04-03 22:46:09 INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2023-04-03 22:46:10 WARN: Port disabled due to conflict - Address already in use: bind - BindException (...)
2023-04-03 22:46:10 INFO: jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: xxxxxxxx; jvm 17.0.6+10
2023-04-03 22:46:10 INFO: Started o.t.w.@6d5b129{/,null,AVAILABLE}
2023-04-03 22:46:10 INFO: Session workerName=node0
2023-04-03 22:46:11 WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-04-03 22:46:11 INFO: Started o.e.j.s.ServletContextHandler@1dfa8db6{/,null,AVAILABLE}
2023-04-03 22:46:11 INFO: Started ServerConnector@af4dfd{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2023-04-03 22:46:11 INFO: Started Server@4ebfb0f5{STARTING}[10.0.13,sto=0] @4135ms
Have you followed the server troubleshooting guide?
Yes (very good step by step roubleshooting by the way). However, eventually I end up with:
"Device is configured incorrectly or there is some problem with the device. Contact device vendor for more information."
As I tested with three different phones from multiple brands I don't think is the device.
The device ID is correct and the server URL I am using is: http://{mypublicipaddress):5055
, I am not sure where else I can debug to figure it out.
You must be missing something else. Obviously if you're using Traccar Client, it's not a problem with the device. Do you still not see anything in the logs? Do you see the connection in the logs when you test the port?
Not really, Just restarted the Traccar but I was not able to see anything in the logs.
When I test the port those are the logs that are being added. (using the https://www.traccar.org/port-check/)
2023-04-04 12:06:28 INFO: [Tf4cd86de] connected
2023-04-04 12:06:28 INFO: [Tf4cd86de] disconnected
OK, so it seems like the server side is fine. What do you see in the Traccar Client app?
At the app, when click on Status, I see the location update and right after the failed to send error msg.
The parameters are configured as:
Service status: Toggled
ID device: an existent It device (checked and it is created at MySQL
Server URL: http://{mypublicipaddress):5055
location precision: Medium
online buffering: toggled
Distance, timespan, and angle are null but I tested with some data too.
Would you know any extra logs I can use to investigate?
Also, I only have a local domain..Would that be the issue?
A comment to be added is that I do not receive that error if I set the server URL to send http://demo.traccar.org:5055.
Try opening something like this in the browser and see what response you get:
http://YOUR_IP:5055?id=YOUR_ID&lat=0&lon=0
And see if you get anything in the logs.
No logs at all.
I only receive the browser response saying that I cannot access the website and the connection is denied
But you said that you tested that the port is open. Something doesn't add up here.
I figured out what was causing the issue.
I am still trying to fully understand why but when turn off my device wifi and connects with a different (which was the same as my server), the client app sends the data expected.
Would you know the reason why this happens?
Anyway, thank you so much for the great support!
Sounds like some network configuration issue.
Hello,
Just configure a local MySQL server to learn more about Traccar.
However, the traccar client is failing to send data to the configured db.
The db is configured with the port 3306 and the server URL I am using at the app is http://{myipaddress):3306.
Is there anything I am missing or a more detailed documentation I can follow?
Obs: I am using a traccar client at a IOS version 16.3.1 and the device id is correct.
Thank you very much for the support,