Port disabled due to conflict

Martin2 years ago

Hi, I am trying to run the TRACCAR server in IntelliJ IDEA.
The console shows that there is a port conflict. But this is not the case! As soon as I stop the server in IDEA, PORT 8083 is closed again.
On the net I could find out that I am not the only user with the same problem - it was never fixed properly. Also no other instance of Traccar is running.
How can I solve this problem?

2023-03-13 00:55:59  INFO: Operating system name: Windows 11 version: 10.0 architecture: amd64
2023-03-13 00:55:59  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Amazon.com Inc. version: 18.0.2+9-FR
2023-03-13 00:55:59  INFO: Memory limit heap: 4066mb non-heap: 0mb
2023-03-13 00:55:59  INFO: Character encoding: windows-1252 charset: windows-1252
2023-03-13 00:55:59  INFO: Version: null
2023-03-13 00:55:59  INFO: Starting server...
2023-03-13 00:55:59  INFO: HikariPool-1 - Starting...
2023-03-13 00:56:00  INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./target/database user=SA
2023-03-13 00:56:00  INFO: HikariPool-1 - Start completed.
2023-03-13 00:56:00  INFO: Set default schema name to PUBLIC
2023-03-13 00:56:00  INFO: Clearing database change log checksums
2023-03-13 00:56:00  INFO: Successfully acquired change log lock
2023-03-13 00:56:01  INFO: Successfully released change log lock
2023-03-13 00:56:01  INFO: Successfully acquired change log lock
2023-03-13 00:56:02  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-03-13 00:56:02  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-03-13 00:56:02  INFO: Successfully released change log lock
2023-03-13 00:56:04  WARN: Port disabled due to conflict - Address already in use: bind - BindException (...)
2023-03-13 00:56:04  INFO: jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 18.0.2+9-FR
2023-03-13 00:56:04  INFO: Started o.t.w.@7b222230{/,null,AVAILABLE}
2023-03-13 00:56:04  INFO: Session workerName=node0
2023-03-13 00:56:05  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-03-13 00:56:05  INFO: Started o.e.j.s.ServletContextHandler@2f07930a{/,null,AVAILABLE}
2023-03-13 00:56:05  INFO: Started ServerConnector@fd09e43{HTTP/1.1, (http/1.1)}{0.0.0.0:8083}
2023-03-13 00:56:05  INFO: Started Server@d3e3085{STARTING}[10.0.13,sto=0] @7271ms
Anton Tananaev2 years ago

The error indicates that one of the device ports has a conflict. You need to find which one and resolve the conflict.

Track-trace22 years ago

You should first check which ports are open when you are not running traccar.. As you see in the Warning it does not state on which port number it has a conflict.

Traccar server opens many more ports (protocol ports) when you start it (look at default.xml in conf directory). So when for instance any of these ports is already in use you will have that port conflict.

In the past i had such issues with misconfigured proxy and also a python script for sending commands (test-command.py) which kept the port busy.

Martin2 years ago

Thank you both, that helped for now. However, the blue loading circle still appears and the login field does not load.
The current output in the IDEA now shows the following:

2023-03-13 11:47:54  INFO: Operating system name: Windows 11 version: 10.0 architecture: amd64
2023-03-13 11:47:54  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Amazon.com Inc. version: 18.0.2+9-FR
2023-03-13 11:47:54  INFO: Memory limit heap: 4066mb non-heap: 0mb
2023-03-13 11:47:54  INFO: Character encoding: windows-1252 charset: windows-1252
2023-03-13 11:47:54  INFO: Version: null
2023-03-13 11:47:54  INFO: Starting server...
2023-03-13 11:47:54  INFO: HikariPool-1 - Starting...
2023-03-13 11:47:55  INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./target/database user=SA
2023-03-13 11:47:55  INFO: HikariPool-1 - Start completed.
2023-03-13 11:47:55  INFO: Set default schema name to PUBLIC
2023-03-13 11:47:55  INFO: Clearing database change log checksums
2023-03-13 11:47:56  INFO: Successfully acquired change log lock
2023-03-13 11:47:56  INFO: Successfully released change log lock
2023-03-13 11:47:56  INFO: Successfully acquired change log lock
2023-03-13 11:47:57  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-03-13 11:47:58  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-03-13 11:47:58  INFO: Successfully released change log lock
2023-03-13 11:48:00  INFO: jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 18.0.2+9-FR
2023-03-13 11:48:00  INFO: Started o.t.w.@226de93c{/,null,AVAILABLE}
2023-03-13 11:48:00  INFO: Session workerName=node0
2023-03-13 11:48:01  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-03-13 11:48:01  INFO: Started o.e.j.s.ServletContextHandler@3355168{/,null,AVAILABLE}
2023-03-13 11:48:01  INFO: Started ServerConnector@51f95f0d{HTTP/1.1, (http/1.1)}{0.0.0.0:8083}
2023-03-13 11:48:01  INFO: Started Server@2180e789{STARTING}[10.0.13,sto=0] @8034ms
Track-trace22 years ago

Since you solved the port conflict you might post the solution here so that others who face the same issue can learn from it.

Martin2 years ago

I have in the CMD "netstat -ano" the open ports compared to the ports in the default.xml and if necessary assigned another port.

I was able to solve the problem with the ports, but something prevents the login screen from appearing, I only see the blue charging circle. Who can help?

Anton Tananaev2 years ago

Have you installed the web app dependencies?

Martin2 years ago

I downloaded the Github web app, put the extracted files in the web folder. Is that the right way?

Anton Tananaev2 years ago

No, it's not. You have to download dependencies and compile the app. Make sure you read the web app section of the documentation:

https://www.traccar.org/build/