Java -jar install won't find default.xml (MacOS traccer 4.1 manual install)

Ian Pither6 years ago

The error is:

org.traccar.Main run
SEVERE: Main method error
java.i.o.FileFoundException: /conf/default.xml (No such file or directory)

It's in the same folder as traccar.xml and I've amended the path several times, each time the error in terminal displays the amended path so I know for sure that traccar.xml has been found.

Default location of default.xml in traccer.xml is:

./conf/default.xml

As it's in the same folder as traccar.xml I've amended it to:

default.xml

I've also tried:

/conf/default.xml
Users/IanPither/Traccar/conf/default.xml

Can anybody please help with how the path should look?

Anton Tananaev6 years ago

Just provide a full path to it.

Ian Pither6 years ago

Thanks for a quick reply Anton, please tell me if I'm wrong with the following:

This is the command I used in Terminal:

java -jar /Users/IanPither/Traccar/tracker-server.jar /Users/IanPither/Traccar/conf/traccar.xml

If default.xml is in the 'conf' folder with traccar.xml surely the full path is exactly the same? /Users/IanPither/Traccar/conf/default.xml
However, I get the error message.
By the way I am dragging the files into Terminal to avoid schoolboy errors with spelling etc. but I can't do that with traccar.xml

I'd be eternally grateful if you'd type exactly what I need

Anton Tananaev6 years ago

None of the examples you provided in your first comment have correct full path:

/Users/IanPither/Traccar/conf/default.xml
Ian Pither6 years ago

What am I missing here?
I've performed command+i to get the full path of the file it's:

Macintosh HD/Users/IanPither/Traccar/conf/default.xml

I've tried it with Macintosh HD added and still the same, please could you advise me what you'd put in as the path Anton.

I really appreciate your help.

Anton Tananaev6 years ago

Take path from my last comment.

Ian Pither6 years ago

Ok, now I understand, the power of a / thanks Anton.
It now processes with the same error for ./logs/tracker-server.log (No such file or directory)
The log folder is actually empty so its not lying

This is in the default.xml file along with another one the same ./schema/changelog-master.xml

Do I need to change both of these to the full paths? I'm trying to take your advice and not change anything in the default file unless I know what I'm doing :-)

Anton Tananaev6 years ago

The best option would be to run Traccar from the same folder where you have JAR file. That way you don't need to change anything.

Ian Pither6 years ago

Am I not then?

JAR file is in Traccar, conf, logs and schema are folders in Traccar

Ian Pither6 years ago

The folder Traccar is 127.0.0.1 where the database resides

Anton Tananaev6 years ago

No, you are clearly not. Do this:

  • cd /Users/IanPither/Traccar/
  • java -jar tracker-server.jar conf/traccar.xml

Are you sure you want to host a server yourself? It requires certain level of technical expertise.

Ian Pither6 years ago

HaHa, do I detect a level of sarcasm Anton

I'm a sponge for information, I like to be able to learn how to do things myself.
I'll try your last instruction, then head over to subscribe at $50 a month

Ian Pither6 years ago

I caved in Anton, I got it to process without the errors...... yay!!!
Then it said wrong database and couldn't create the tables....

I've ordered the server at $50 now and would like to forget the last 3 days of my life, what happens next? I'd like to have my domain in the url I understand thats possible?

Anton Tananaev6 years ago

I've sent you an email with some questions.