Trying to update to 4.15 resulted in a non working server.

Richard Acosta3 years ago

Sorry, but I end up lost after so many stuff I did.

Preamble:
I'm using Traccar on an 8 core ARM-64, 2.5GB RAM machine, running Debian 11 and mysql database. (MariaDB)
On the beggining (a couple years ago, maybe more) the issue was with Java, since the embedded jre does not work on this particular machine I had to link to Debian's JRE and started working like a charm.

A couple days ago I noticed there was 4.15 so I downloaded and tried to update it as always did.

  1. backup conf files
  2. close traccar processes
  3. rename traccar folder to it's corresponding version (traccar 4.14)
  4. run traccar.run
  5. restore original .conf files

After update to 4.15 I noticed I could'nt visit traccar anymore. Per sugestions (and/by visiting other people's troubles on the forum) I checked open ports and there was no traccar port open, no web port (8082) nor devices' ports.
Tried several things, fiddled with debian firewall, but to no avail.
No way to "allow" traccar to open ports.

  1. changed traccar folders permissions
  2. changed traccar folder/s owner
  3. changed traccar to run-as-user (had it "as-is" before)
  4. changed traccar user and group
  5. Finally I updated debian and also jre.

I even tried to run traccar with it's own .conf files (using embeded h2 database also) to see if at least there was some missconfiguration from my part.

Nothing works, Traccar keeps starting but ports keep closed.

Anton Tananaev3 years ago

Logs?

Richard Acosta3 years ago
2022-01-30 13:14:14  INFO: HikariPool-1 - Starting...
2022-01-30 13:14:17  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@77d67cf3
2022-01-30 13:14:17  INFO: HikariPool-1 - Start completed.
2022-01-30 13:14:19  INFO: Clearing database change log checksums
2022-01-30 13:14:20  INFO: Waiting for changelog lock....
2022-01-30 13:14:30  INFO: Waiting for changelog lock....
2022-01-30 13:14:40  INFO: Waiting for changelog lock....
2022-01-30 13:14:50  INFO: Waiting for changelog lock....
2022-01-30 13:15:00  INFO: Waiting for changelog lock....
2022-01-30 13:15:10  INFO: Waiting for changelog lock....
2022-01-30 13:15:20  INFO: Waiting for changelog lock....
2022-01-30 13:15:30  INFO: Waiting for changelog lock....
2022-01-30 13:15:40  INFO: Waiting for changelog lock....
2022-01-30 13:15:50  INFO: Waiting for changelog lock....
2022-01-30 13:16:00  INFO: Waiting for changelog lock....
2022-01-30 13:16:10  INFO: Waiting for changelog lock....
2022-01-30 13:16:20  INFO: Waiting for changelog lock....
2022-01-30 13:16:30  INFO: Waiting for changelog lock....
2022-01-30 13:16:40  INFO: Waiting for changelog lock....
2022-01-30 13:16:50  INFO: Waiting for changelog lock....
2022-01-30 13:17:00  INFO: Waiting for changelog lock....
2022-01-30 13:17:10  INFO: Waiting for changelog lock....
2022-01-30 13:17:20  INFO: Waiting for changelog lock....
2022-01-30 13:17:30  INFO: Waiting for changelog lock....
2022-01-30 13:17:40  INFO: Waiting for changelog lock....
2022-01-30 13:17:50  INFO: Waiting for changelog lock....
2022-01-30 13:18:00  INFO: Waiting for changelog lock....
2022-01-30 13:18:10  INFO: Waiting for changelog lock....
2022-01-30 13:18:20  INFO: Waiting for changelog lock....
2022-01-30 13:18:30  INFO: Waiting for changelog lock....
2022-01-30 13:18:40  INFO: Waiting for changelog lock....
2022-01-30 13:18:50  INFO: Waiting for changelog lock....
2022-01-30 13:19:00  INFO: Waiting for changelog lock....
2022-01-30 13:19:10  INFO: Waiting for changelog lock....
2022-01-30 13:19:20 ERROR: Main method error - Could not acquire change log lock.  Currently locked by T95RPro.lan (192.168.69.6) since 1/29/22, 1:08 PM - LockException (... < DataManager:295 < *:90 < Context:290 < Main:120 < ...)
2022-01-30 13:19:34  INFO: HikariPool-1 - Starting...
2022-01-30 13:19:37  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@77d67cf3
2022-01-30 13:19:37  INFO: HikariPool-1 - Start completed.
2022-01-30 13:19:38  INFO: Clearing database change log checksums
2022-01-30 13:19:39  INFO: Waiting for changelog lock....
2022-01-30 13:19:49  INFO: Waiting for changelog lock....
2022-01-30 13:19:59  INFO: Waiting for changelog lock....
2022-01-30 13:20:09  INFO: Waiting for changelog lock....
2022-01-30 13:20:19  INFO: Waiting for changelog lock....
2022-01-30 13:20:29  INFO: Waiting for changelog lock....
2022-01-30 13:20:39  INFO: Waiting for changelog lock....
2022-01-30 13:20:49  INFO: Waiting for changelog lock....
2022-01-30 13:20:59  INFO: Waiting for changelog lock....
2022-01-30 13:21:09  INFO: Waiting for changelog lock....
2022-01-30 13:21:19  INFO: Waiting for changelog lock....
2022-01-30 13:21:29  INFO: Waiting for changelog lock....
2022-01-30 13:21:39  INFO: Waiting for changelog lock....
2022-01-30 13:21:49  INFO: Waiting for changelog lock....
2022-01-30 13:21:59  INFO: Waiting for changelog lock....
2022-01-30 13:22:09  INFO: Waiting for changelog lock....
2022-01-30 13:23:17  INFO: HikariPool-1 - Starting...
2022-01-30 13:23:20  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@77d67cf3
2022-01-30 13:23:20  INFO: HikariPool-1 - Start completed.
2022-01-30 13:23:21  INFO: Clearing database change log checksums
2022-01-30 13:23:22  INFO: Waiting for changelog lock....
2022-01-30 13:23:32  INFO: Waiting for changelog lock....
2022-01-30 13:23:42  INFO: Waiting for changelog lock....
2022-01-30 13:23:52  INFO: Waiting for changelog lock....
2022-01-30 13:24:02  INFO: Waiting for changelog lock....
2022-01-30 13:24:12  INFO: Waiting for changelog lock....
2022-01-30 13:24:22  INFO: Waiting for changelog lock....
2022-01-30 13:24:32  INFO: Waiting for changelog lock....
2022-01-30 13:24:42  INFO: Waiting for changelog lock....
Anton Tananaev3 years ago

Your database is locked. You need to unlock it. It has been discussed many times before.

Richard Acosta3 years ago

I noticed, and I unlocked it. Ports kept closed.

2022-01-30 13:35:48  INFO: HikariPool-1 - Starting...
2022-01-30 13:35:51  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@2c1156a7
2022-01-30 13:35:51  INFO: HikariPool-1 - Start completed.
2022-01-30 13:35:53  INFO: Clearing database change log checksums
2022-01-30 13:35:54  INFO: Successfully acquired change log lock
2022-01-30 13:35:55  INFO: Successfully released change log lock
2022-01-30 13:35:56  INFO: Successfully acquired change log lock
2022-01-30 13:35:56  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.json.JsonChangeLogParser Unable to get public no-arg constructor
2022-01-30 13:35:56  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.yaml.YamlChangeLogParser Unable to get public no-arg constructor
2022-01-30 13:36:04  INFO: Reading from rastreo.DATABASECHANGELOG
2022-01-30 13:36:06  INFO: Reading from rastreo.DATABASECHANGELOG
2022-01-30 13:36:07  INFO: Cannot load service: liquibase.hub.HubService: Provider liquibase.hub.core.StandardHubService could not be instantiated
Richard Acosta3 years ago

Just close it.
It was webmin interfering with ports after an update that went almost at the same time as Traccar.