help to load the build from source JAR in the vps

control taken 3 years ago

cordial greeting, making for the first time modification in the source code in order to change the logo and icons I made construction as indicated in the documentation
https://www.traccar.org/build/

I generated the npm run build with visual studio successfully without problem, and then the ./gradlew build everything worked fine for me locally but when I followed the step of replacing the JAR file on my vps it was done successfully the system started without problem but I cannot visualize the changes, I emphasize that in local as it is the changes were implemented and it worked without problem.

I also try to open from several devices and in none of them visualize change but what came by default from traccar when installing.
I will attach a copy of the traccar log, it should be noted that I can log without problem but the changes that I compile are not displayed.

I look forward to any suggestions to visualize changes.

INFO: OS Name: Linux Version: 5.4.0-128 - Generic Architecture: amd64
INFO: Java Runtime Name: OpenJDK 64-Bit Server VM Vendor: Eclipse Adoptium Version: 17.0.4+8
INFO: memory limit heap: 467mb no heap: 0mb
 INFO: character encoding: UTF-8 character set: UTF-8
  INFORMATION: Version: 5.4
INFORMATION: Starting server...
 INFO: HikariPool-1 - Starting...
INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./data/database user=SA
 INFO: HikariPool-1 - Start complete.
 INFO: Set default schema name to PUBLIC
 INFO: Clearing database change log checksums
INFO: Changelog Lock Acquired Successfully
INFO: Changelog Lock Released Successfully
 INFO: Changelog Lock Acquired Successfully
INFO: Reading PUBLIC.DATABASECHANGELOG
 INFO: Reading PUBLIC.DATABASECHANGELOG
 INFO: Changelog Lock Released Successfully
 INFO: Your platform does not provide a complete low-level API to access direct buffers reliably. Unless explicitly requested, heap buffering is always preferred to avoid potential system instability.
INFORMATION: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; Git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 17.0.4+8
INFO: Started o.t.w.@7af0d91b{/,null,AVAILABLE}
INFORMATION: session worker_name=node0
WARNING: The JAXBContext implementation could not be found. WADL function is disabled.
INFO: Started o.e.j.s.ServletContextHandler@672d8370{/,null,AVAILABLE}
NFO: Started ServerConnector@21002393{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
info: server started @7afe0e67 {HOME} [10.0.12, sto=0] @10852ms
INFO: Health check enabled with period 480000
control taken 3 years ago
INFO: Operating system name: Linux version: 5.4.0-128-generic architecture: amd64
2022-10-13 06:01:19  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.4+8
2022-10-13 06:01:19  INFO: Memory limit heap: 467mb non-heap: 0mb
2022-10-13 06:01:19  INFO: Character encoding: UTF-8 charset: UTF-8
2022-10-13 06:01:19  INFO: Version: 5.4
2022-10-13 06:01:19  INFO: Starting server...
2022-10-13 06:01:19  INFO: HikariPool-1 - Starting...
2022-10-13 06:01:20  INFO: HikariPool-1 - Added connection conn0: url=jdbc:h2:./data/database user=SA
2022-10-13 06:01:20  INFO: HikariPool-1 - Start completed.
2022-10-13 06:01:20  INFO: Set default schema name to PUBLIC
2022-10-13 06:01:20  INFO: Clearing database change log checksums
2022-10-13 06:01:21  INFO: Successfully acquired change log lock
2022-10-13 06:01:21  INFO: Successfully released change log lock
2022-10-13 06:01:21  INFO: Successfully acquired change log lock
2022-10-13 06:01:23  INFO: Reading from PUBLIC.DATABASECHANGELOG
2022-10-13 06:01:23  INFO: Reading from PUBLIC.DATABASECHANGELOG
2022-10-13 06:01:23  INFO: Successfully released change log lock
2022-10-13 06:01:24  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.
2022-10-13 06:01:26  INFO: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 17.0.4+8
2022-10-13 06:01:26  INFO: Started o.t.w.@7af0d91b{/,null,AVAILABLE}
2022-10-13 06:01:26  INFO: Session workerName=node0
2022-10-13 06:01:27  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2022-10-13 06:01:28  INFO: Started o.e.j.s.ServletContextHandler@672d8370{/,null,AVAILABLE}
2022-10-13 06:01:28  INFO: Started ServerConnector@21002393{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2022-10-13 06:01:28  INFO: Started Server@7afe0e67{STARTING}[10.0.12,sto=0] @10852ms
2022-10-13 06:01:28  INFO: Health check enabled with period 480000
Anton Tananaev 3 years ago

Are you trying to update the web app or the backend?

control taken 3 years ago

anton I already had 5.4 since the launch, but I noticed that there were errors where you had published the corrections on github so I took the opportunity to upload those changes, and I was also going to change the login logo, nothing else but then when I ran the traccar locally everything worked without problem, I compiled it and there was no error, I even loaded the JAR file, I replaced it and my server started without problem but the image changes were not loaded, it should be noted that I compiled the modern version as indicated in the documentation and the traccar with .grawdle but still it does not show me the changes in the web interface

Anton Tananaev 3 years ago

Let's not mix everything together. Your issue seems to be with the web app, so how did you compile it?

control taken 3 years ago

the compilation process was the following,

  1. download repository with full resources
  2. I went to the path /traccar/traccar-web/modern/
    3.install npm
    4.start NPM developer mode to verify changes
    5.RUN NPM BUILD

in the /traccar-web/modern folder a folder called BUILD was created where I had the files which I replaced in my VPS in the path /opt/traccar/moderm which contained the static subfolder and images all of which when executed in Developer mode in local without problems I was able to visualize changes

This was the process that I carried out as instructed in the documentation. I don't know if I was missing something, although I doubt it. I have verified everything, but if anything, I would be grateful for a kind suggestion =)

Anton Tananaev 3 years ago

That sounds correct. Have you cleared your browser app data after that?

control taken 3 years ago

Anton, I was able to visualize the changes as you said, there was no problem in the construction, the problem was in my vps I did not want to use several commands to eliminate the cache

sudo apt autoclean
sudo apt clean
drop_caches

I clarify that I had to use all 3 and restart the server and I could see the changes, and I had to delete the cookies and cache of my browser and PC and it already shows everything,

I was finally able to build from source after several hours of failed attempts I managed to do it, it was my first time doing something like this it was not easy but I already know how to do it: v

thank you very much for your time in answering