Traccar server 4.3 cant start after update Linux ?

Macan 7 years ago

I have update tracar to 4.3 and everything was ok until I perform Linux Ubuntu update now the traccar server can not start , I tried command: systemctl start traccar.service . Please can someone check log file , what can I do people?

2019-02-27 17:45:35  INFO: jetty-9.4.14.v20181114; built: 2018-11-14T21:20:31.478Z; git: c4550056e785fb5665914545889f21dc136ad9e6; jvm 11.0.2-ojdkbuild+9
2019-02-27 17:45:35  INFO: Started o.t.w.@27bcb4ad{/,null,AVAILABLE}
2019-02-27 17:45:35  INFO: DefaultSessionIdManager workerName=node0
2019-02-27 17:45:35  INFO: No SessionScavenger set, using defaults
2019-02-27 17:45:35  INFO: node0 Scavenging every 600000ms
2019-02-27 17:45:38  INFO: Started o.e.j.s.ServletContextHandler@78bd02c8{/,null,AVAILABLE}
2019-02-27 17:45:38  WARN: Web server start failed - Failed to bind to 0.0.0.0/0.0.0.0:80 - IOException (... < WebServer:159 < Main:118 < *:104)
2019-02-27 17:54:00  INFO: Shutting down server...
2019-02-27 17:58:39  INFO: HikariPool-1 - Starting...
...
2019-02-27 18:35:02  INFO: Successfully released change log lock
2019-02-27 18:35:03  INFO: Logging initialized @13147ms to org.eclipse.jetty.util.log.Slf4jLog
2019-02-27 18:35:04  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.
2019-02-27 18:35:05  INFO: Operating system name: Linux version: 4.15.0-45-generic architecture: amd64
2019-02-27 18:35:05  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 11.0.2-ojdkbuild+9
2019-02-27 18:35:05  INFO: Memory limit heap: 239mb non-heap: 0mb
2019-02-27 18:35:05  INFO: Character encoding: UTF-8 charset: UTF-8
2019-02-27 18:35:05  INFO: Version: 4.3-SNAPSHOT
2019-02-27 18:35:05  INFO: Starting server...
2019-02-27 18:35:06  INFO: jetty-9.4.14.v20181114; built: 2018-11-14T21:20:31.478Z; git: c4550056e785fb5665914545889f21dc136ad9e6; jvm 11.0.2-ojdkbuild+9
2019-02-27 18:35:06  INFO: Started o.t.w.@7af1d072{/,null,AVAILABLE}
2019-02-27 18:35:06  INFO: DefaultSessionIdManager workerName=node0
2019-02-27 18:35:06  INFO: No SessionScavenger set, using defaults
2019-02-27 18:35:06  INFO: node0 Scavenging every 660000ms
2019-02-27 18:35:08  INFO: Started o.e.j.s.ServletContextHandler@39695803{/,null,AVAILABLE}
2019-02-27 18:35:08  WARN: Web server start failed - Failed to bind to 0.0.0.0/0.0.0.0:80 - IOException (... < WebServer:159 < Main:118 < *:104)
Anton Tananaev 7 years ago

Make sure you don't already have Traccar process running. Looks like you have some port conflicts or possibly some other port binding issues.

Macan 7 years ago

Well I have reboot Linux after update and I keep the old traccar folder and change the folder name to opt/traccar_old, maybe old traccar is running on background or some? Or maybe to just instal 4.3 version again .

Thank you Anton

Macan 7 years ago

I uninstall old traccar and install again traccar 4.3 version but still web can not start, please ppl just a little bit help , I have also open port 8080 but still nothing , this is my log file :

2019-02-28 13:45:06  INFO: HikariPool-1 - Starting...
2019-02-28 13:45:07  INFO: HikariPool-1 - Start completed.
...
2019-02-28 13:45:16  INFO: Starting server...
2019-02-28 13:45:17  INFO: jetty-9.4.14.v20181114; built: 2018-11-14T21:20:31.478Z; git: c4550056e785fb5665914545889f21dc136ad9e6; jvm 11.0.2-ojdkbuild+9
2019-02-28 13:45:17  INFO: Started o.t.w.@27ffd9f8{/,null,AVAILABLE}
2019-02-28 13:45:17  INFO: DefaultSessionIdManager workerName=node0
2019-02-28 13:45:17  INFO: No SessionScavenger set, using defaults
2019-02-28 13:45:17  INFO: node0 Scavenging every 600000ms
2019-02-28 13:45:20  INFO: Started o.e.j.s.ServletContextHandler@304068{/,null,AVAILABLE}
2019-02-28 13:45:20  WARN: Web server start failed - Failed to bind to 0.0.0.0/0.0.0.0:80 - IOException (... < WebServer:159 < Main:118 < *:104)
Ernesto Vallejo 7 years ago

Very likely that some other process is using the port. Check who is using it and kill it. Try this:

$ netstat -tulpn
$ sudo fuser -k 80/tcp
$ sudo systemctl restart traccar.service

Hope this helps.

Anton Tananaev 7 years ago

Or user simply doesn't have permission to bind port 80.

Macan 7 years ago

Fixed , thank you Ernesto and thank you Anton.

Ernesto Vallejo 7 years ago

How did you solve it?

Macan 7 years ago

Wel I am not an expert, I know most in Windows but my friend helped me and this is his answer for the problem:

"The problem was a configuration error that attempted to make the boot start on the same port as apache. It was necessary to change the co-loading port and change the apache configuration so that the two processes can run."

Ernesto Vallejo 7 years ago

Are you running Traccar over a secure connection or why is the reason you have apache running ?

Macan 7 years ago

Yes, the Traccar is running via secure connection . Is that ok my friend to run it via apache?

Ernesto Vallejo 7 years ago

Well, yes. That explains why this happened. Good to know your instance is up and running fine now.

Macan 7 years ago

Thank you Ernesto again.

shawnbap 6 years ago

get any one tell me why i am getting these error

root@ip-172-31-13-22:/home/ubuntu# /opt/traccar/bin/startDaemon.sh
...
Service traccar NOT started
Anton Tananaev 6 years ago

shawnbap please don't duplicate your comment.