Start-up problem command "sudo service traccar start"

Steph84a year ago

Hello everyone, following a problem with the settings of my tracker, I have uninstalled and reinstalled traccar several times on my raspberry. The tracker is now OK but the server no longer starts by itself. The "sudo service traccar start" command no longer starts the program. The command "java -jar tracker-server.jar conf/traccar.xlm" does start the server, but it stops as soon as I close the terminal session.

Here are the first lines of the log if you need them:

2023-11-02 10:24:30  INFO: Operating system name: Linux version: 5.10.103-v7+ architecture: arm
2023-11-02 10:24:31  INFO: Java runtime name: OpenJDK Server VM vendor: Raspbian version: 11.0.21+9-post-Raspbian-1deb10u1
2023-11-02 10:24:31  INFO: Memory limit heap: 224mb non-heap: 0mb
2023-11-02 10:24:31  INFO: Character encoding: UTF-8 charset: UTF-8
2023-11-02 10:24:31  INFO: Version: 5.9
2023-11-02 10:24:31  INFO: Starting server...
2023-11-02 10:24:32  INFO: HikariPool-1 - Starting...
2023-11-02 10:24:36  INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./data/database user=SA
2023-11-02 10:24:36  INFO: HikariPool-1 - Start completed.
2023-11-02 10:24:37  INFO: Set default schema name to PUBLIC
2023-11-02 10:24:37  INFO: Clearing database change log checksums
2023-11-02 10:24:38  INFO: Successfully acquired change log lock
2023-11-02 10:24:38  INFO: Successfully released change log lock
2023-11-02 10:25:03  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-11-02 10:25:07  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-11-02 10:25:07  INFO: Reading from PUBLIC.DATABASECHANGELOG
2023-11-02 10:25:08  INFO: UPDATE SUMMARY
2023-11-02 10:25:08  INFO: Run:                          0
2023-11-02 10:25:08  INFO: Previously run:              44
2023-11-02 10:25:08  INFO: Filtered out:                 0
2023-11-02 10:25:08  INFO: -------------------------------
2023-11-02 10:25:08  INFO: Total change sets:           44

2023-11-02 10:25:08  INFO: Update summary generated
2023-11-02 10:25:08  INFO: Successfully released change log lock
2023-11-02 10:25:08  INFO: Command execution complete
2023-11-02 10:25:18  INFO: jetty-11.0.15; built: 2023-04-11T18:37:53.775Z; git: 5bc5e562c8d05c5862505aebe5cf83a61bdbcb96; jvm 11.0.21+9-post-Raspbian-1deb10u1
2023-11-02 10:25:18  INFO: Started o.t.w.@12231a3{/,null,AVAILABLE}
2023-11-02 10:25:18  INFO: Session workerName=node0
2023-11-02 10:25:21  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2023-11-02 10:25:24  INFO: Started o.e.j.s.ServletContextHandler@1cddb84{/,null,AVAILABLE}
2023-11-02 10:25:24  INFO: Started ServerConnector@1ed90cd{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2023-11-02 10:25:24  INFO: Started Server@19051f2{STARTING}[11.0.15,sto=0] @60217ms
2023-11-02 10:25:26  INFO: [Ta65ab4b4] connected

Thanks for your help.

Track-tracea year ago

Did you try this as a workaround ?

ssh into your remote box. type screen Then start the process you want.
Press Ctrl-A then Ctrl-D. This will detach your screen session but leave your processes running. You can now log out of the remote box.
If you want to come back later, log on again and type screen -r This will resume your screen session, and you can see the output of your process.

Steph84a year ago

I work with a Windows remote desktop. I don't know your technique at all.
Do I have to use Putty to access the SSH remote box?
I tested screen but "command not found".

Track-tracea year ago

Yes you can try that.

Steph84a year ago

When I type the screen command in Putty it returns
-bash: screen: command not found

Track-tracea year ago

Ok that works for me on ubuntu. But actually search google on howto keep program running while closing the server console for your OS.

Anton Tananaeva year ago

What version of Traccar have you installed? I suspect you installed the wrong architecture.

Steph84a year ago

That's right, I installed the traccar-linux-arm-5.9 version and everything was back to normal.
Thank you very much and congratulations on the speed and efficiency of your replies.