service traccar restart commnd is will remove all open ports in traccar server.

service traccar restart command removed all open ports in traccar server.

Anton Tananaev2 months ago

My guess is that you had some port conflicts.

Here are my tracker-server.log file

It shows starting server but nothing happened.

2019-12-05 12:52:26  WARN: Unknown device - 352503090220556 (223.189.146.244)
2019-12-05 12:52:36 DEBUG: [B3683517: 5023 < 223.189.146.244] HEX: 78780d010352503090220556002e633d0d0a
2019-12-05 12:52:36  WARN: Unknown device - 352503090220556 (223.189.146.244)
2019-12-05 12:53:16  INFO: [B3683517] disconnected
2019-12-05 12:53:22  INFO: [7DE0E8B1] connected
2019-12-05 12:53:22 DEBUG: [7DE0E8B1: 5023 < 223.189.146.244] HEX: 78780d010352503090220556002f72b40d0a
2019-12-05 12:53:22  WARN: Unknown device - 352503090220556 (223.189.146.244)
2019-12-05 12:53:31 DEBUG: [7DE0E8B1: 5023 < 223.189.146.244] HEX: 78780d01035250309022055600309ac20d0a
2019-12-05 12:53:31  WARN: Unknown device - 352503090220556 (223.189.146.244)
2019-12-05 12:53:42 DEBUG: [7DE0E8B1: 5023 < 223.189.146.244] HEX: 78780d01035250309022055600318b4b0d0a
2019-12-05 12:53:42  WARN: Unknown device - 352503090220556 (223.189.146.244)
2019-12-05 12:54:22  INFO: [7DE0E8B1] disconnected
2019-12-05 12:54:26  INFO: [F55CA4AF] connected
2019-12-05 12:54:27 DEBUG: [F55CA4AF: 5023 < 223.189.179.71] HEX: 78780d0103525030902205560032b9d00d0a
2019-12-05 12:54:27  WARN: Unknown device - 352503090220556 (223.189.179.71)
2019-12-05 12:54:36 DEBUG: [F55CA4AF: 5023 < 223.189.179.71] HEX: 78780d0103525030902205560033a8590d0a
2019-12-05 12:54:36  WARN: Unknown device - 352503090220556 (223.189.179.71)
2019-12-05 12:54:46 DEBUG: [F55CA4AF: 5023 < 223.189.179.71] HEX: 78780d0103525030902205560034dce60d0a
2019-12-05 12:54:46  WARN: Unknown device - 352503090220556 (223.189.179.71)
2019-12-05 12:55:26  INFO: [F55CA4AF] disconnected
2019-12-05 13:00:07  INFO: Shutting down server...
2019-12-05 13:00:07  INFO: [5D8231AA] disconnected
2019-12-05 13:00:07  INFO: [297D46C5] disconnected
2019-12-05 13:00:07  INFO: [B2F26DE9] disconnected
2019-12-05 13:00:07  INFO: [FAE0855C] disconnected
2019-12-05 13:00:07  INFO: [FBCBA7F4] disconnected
2019-12-05 13:00:18  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 13:04:41  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 13:04:41  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 13:04:41  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 13:04:41  INFO: Version: 3.9-SNAPSHOT
2019-12-05 13:12:34  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 13:12:34  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 13:12:34  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 13:12:34  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 13:12:34  INFO: Version: 3.9-SNAPSHOT
2019-12-05 13:16:06  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 13:16:06  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 13:16:06  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 13:16:06  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 13:16:06  INFO: Version: 3.9-SNAPSHOT
2019-12-05 13:16:10  INFO: Starting server...
2019-12-05 13:28:33  INFO: Shutting down server...
2019-12-05 13:34:23  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 13:34:23  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 13:34:23  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 13:34:23  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 13:34:23  INFO: Version: 3.9-SNAPSHOT
2019-12-05 13:36:31  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 13:36:31  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 13:36:31  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 13:36:31  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 13:36:31  INFO: Version: 3.9-SNAPSHOT
2019-12-05 22:01:33  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 22:01:33  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 22:01:33  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 22:01:33  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 22:01:33  INFO: Version: 3.11-SNAPSHOT
2019-12-05 22:03:49  INFO: Operating system name: Linux version: 4.15.0-1056-aws architecture: amd64
2019-12-05 22:03:49  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Private Build version: 25.222-b10
2019-12-05 22:03:49  INFO: Memory limit heap: 237mb non-heap: 0mb
2019-12-05 22:03:49  INFO: Character encoding: UTF-8 charset: UTF-8
2019-12-05 22:03:49  INFO: Version: 3.9-SNAPSHOT
2019-12-05 22:03:53  INFO: Starting server...

Here is my wrapper file

INFO|wrapper|Service traccar|19-12-05 22:03:47|posix_spawn pid 9753
INFO|wrapper|Service traccar|19-12-05 22:03:47|started process 9753
INFO|wrapper|Service traccar|19-12-05 22:03:47|started process with pid 9753
INFO|9753/0|Service traccar|19-12-05 22:03:49|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|9753/0|Service traccar|19-12-05 22:03:49|[main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
INFO|9753/0|Service traccar|19-12-05 22:03:50|INFO 12/5/19 10:03 PM: liquibase: Clearing database change log checksums
INFO|9753/0|Service traccar|19-12-05 22:03:50|INFO 12/5/19 10:03 PM: liquibase: Successfully acquired change log lock
INFO|9753/0|Service traccar|19-12-05 22:03:51|INFO 12/5/19 10:03 PM: liquibase: Successfully released change log lock
INFO|9753/0|Service traccar|19-12-05 22:03:51|INFO 12/5/19 10:03 PM: liquibase: Successfully acquired change log lock
INFO|9753/0|Service traccar|19-12-05 22:03:52|INFO 12/5/19 10:03 PM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO|9753/0|Service traccar|19-12-05 22:03:53|INFO 12/5/19 10:03 PM: liquibase: Reading from PUBLIC.DATABASECHANGELOG
INFO|9753/0|Service traccar|19-12-05 22:03:53|INFO 12/5/19 10:03 PM: liquibase: ./schema/changelog-master.xml: changelog-3.8::changelog-3.8-dropuniquetoken::author: Change set changelog-3.8::changelog-3.8-dropuniquetoken::author failed, but failOnError was false.  Error: Constraint "UK_USER_TOKEN" not found; SQL statement:
INFO|9753/0|Service traccar|19-12-05 22:03:53|ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token [90057-193] [Failed SQL: ALTER TABLE PUBLIC.users DROP CONSTRAINT uk_user_token]
INFO|9753/0|Service traccar|19-12-05 22:03:53|INFO 12/5/19 10:03 PM: liquibase: Successfully released change log lock
INFO|9753/0|Service traccar|19-12-05 22:03:53|[main] INFO org.eclipse.jetty.util.log - Logging initialized @5223ms
INFO|9753/0|Service traccar|19-12-05 22:03:53|[main] INFO org.eclipse.jetty.server.Server - jetty-9.2.19.v20160908
INFO|9753/0|Service traccar|19-12-05 22:03:55|[main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@4d6ccc97{/api,null,AVAILABLE}
INFO|9753/0|Service traccar|19-12-05 22:03:55|[main] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@42b322e7{HTTP/1.1}{0.0.0.0:8082}
INFO|9753/0|Service traccar|19-12-05 22:03:55|[main] INFO org.eclipse.jetty.server.Server - Started @7647ms
Anton Tananaev2 months ago

I would recommend you to upgrade to the latest version first.

Anton we are doing migration from one server to another.

On old server traccar is working fine and our website is running fine. But in new server its doing problem. Upgrading to latest version will increase my task. As we are short on time.

This is the latest problem i am facing.

my wrapper log file

INFO|wrapper|Service traccar|19-12-06 00:04:17|posix_spawn pid 12735
INFO|wrapper|Service traccar|19-12-06 00:04:17|started process 12735
INFO|wrapper|Service traccar|19-12-06 00:04:17|started process with pid 12735
INFO|12735/0|Service traccar|19-12-06 00:04:18|[INFO] StandardFileSystemManager - Using "/tmp/vfs_cache" as temporary files store.
INFO|12735/0|Service traccar|19-12-06 00:04:19|java.lang.reflect.InvocationTargetException
INFO|12735/0|Service traccar|19-12-06 00:04:19| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at java.lang.reflect.Method.invoke(Method.java:498)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|12735/0|Service traccar|19-12-06 00:04:19|Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
INFO|12735/0|Service traccar|19-12-06 00:04:19| at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at java.lang.Class.forName0(Native Method)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at java.lang.Class.forName(Class.java:264)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at org.traccar.database.DataManager.initDatabase(DataManager.java:107)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at org.traccar.database.DataManager.<init>(DataManager.java:79)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at org.traccar.Context.init(Context.java:225)
INFO|12735/0|Service traccar|19-12-06 00:04:19| at org.traccar.Main.main(Main.java:37)
INFO|12735/0|Service traccar|19-12-06 00:04:19| ... 6 more
INFO|wrapper|Service traccar|19-12-06 00:04:19|waitpid 12735 59136
INFO|wrapper|Service traccar|19-12-06 00:04:19|exit code posix process: 59136 application: 0

Anton i resolved the problem,

I need to ask one thing when install default traccar and run it runs fine. All the ports are running fine up to then, then when i replace my tracker-server.jar file i need to call stopDaemon.sh and when i execute it my all ports mentioned in default.xml will stops working and when i run startDaemon.sh port never starts.

I need a solution for this why ports are stopped when stopDaemon.sh called and why port dont start when startDaemon.sh was executed.

Please help me

Anton Tananaev2 months ago

What are you replacing? Where did you get the file? How do you know if it's compatible?