compile : what to do after compile ?

binooetomo8 years ago

Dear All ...

I have installed Traccar from downloaded installer.

I move this to another directory (let's say /opt/traccar.orig)

I did a git clone to /usr/local/src/traccar
Compile it, until I got :

[INFO] --- maven-assembly-plugin:2.6:single (assemble-all) @ traccar ---
[INFO] Building jar: /usr/local/src/traccar/target/tracker-server-jar-with-dependencies.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.429s
[INFO] Finished at: Mon Apr 04 02:12:40 EDT 2016
[INFO] Final Memory: 84M/464M
[INFO] ------------------------------------------------------------------------

Looks like compile process is ok.

Next, from /usr/local/src/traccar , I run : setup/unix/setup.sh
I Got :

root@bino:/usr/local/src/traccar# setup/unix/setup.sh
/usr/bin/java
setup/unix/setup.sh: 14: setup/unix/setup.sh: /opt/traccar/bin/traccar: not found
rm: cannot remove ‘/opt/traccar/setup.sh’: No such file or directory

So, How to install new compiled traccar to /opt/traccar ?

Sincerely
-bino-

Anton Tananaev8 years ago

The easiest option is just to replace JAR file with your new one.

binooetomo8 years ago

Dear Sir.

I Did try that, but ...
All registered device is missing from list.
When I put back the old jar, all devices back in list.

Sincerely
-bino-

Anton Tananaev8 years ago

If you build from master branch, you need to update config as well. I would recommend to base your changes on the tag corresponding to installed version.

binooetomo8 years ago

Dear Anton

Do you meant the /opt/traccar/conf/traccar.xml ?

Sincerely
-bino-

Anton Tananaev8 years ago

Yes, that's the config.

zonavip8 years ago

Hello how are you?

The same thing happens , but I could not fix it.

I do not get the recommended solution here .

The problem : No vehicle list

You can see the image Warning

Thank you very much!
sorry for my English

Error!
Anton Tananaev8 years ago

You can ignore those warnings. They have nothing to do with your problem.

zonavip8 years ago

thanks for the reply.

the problem is: In the version I just compile the devices are not displayed.

If I add a new one is in the database , but do not list.

Thank you

erro2
Anton Tananaev8 years ago

Well, you need to debug the problem. I suggest to look at the browser developer console to see if API calls are successful.

zonavip8 years ago

All I did was :

-remplazar the .jar by the new compilation .

before doing that worked well with the previous version

errr errr
Anton Tananaev8 years ago

Everything looks fine. What version are you using?

zonavip8 years ago

The 3.4 , newly beginning.

With the jar of setup works well .

with not compiled .

I saw something that you have to update the traccar.xml ?

Anton Tananaev8 years ago

If you are compiling from "master" branch, obviously you need to update everything including config file.

zonavip8 years ago

that was my problem, was compiling all the master .

now I run me .

another query esoy testing with GPS GT06 , but my gps to stop the engine is with the command:
case Command.TYPE_ENGINE_STOP:
return encodeContent("#stopelec#123456#");
case Command.TYPE_ENGINE_RESUME:
return encodeContent("#supplyelec#123456#");

Feds look in the protocols ,
and sends this:
2016-04-10 13:44:09 INFO: [CFEA3EDA] command type: engineStop, id : 2 sent
2016-04-10 13:44:09 DEBUG: [CFEA3EDA: 5023 > 152.156.242.65] HEX: 78781b8015000000002373746f70656c65632331323334353623000076d50d0a

but it does not work