3.8 without root - impossible?

Barca8 years ago

Hi,
first of all - greetz for such a wonderful tool! You're doing really great job.
Secondly, I tried to update my server (3.7) to new version 3.8. I don't have root on LAMP server when I run my traccar instance so I need to update it without access to sudo, /opt and /etc/init.d. In 3.7 it was possible for me to install traccar withour root permisions but I can't do it with 3.8.
Can you explain how to install & run 3.8 without root?

Anton Tananaev8 years ago

Not sure how you installed without root before. You need root permissions to install a service.

Barca8 years ago

I installed with --keep and --target attributes. Then you add to cron this line:

*/1 * * * * if [ ! -n "ps ux | grep traccar | grep -v grep" ]; then cd /home/user/Traccar/bin; export JAVA_HOME=/home/user/jdk1.8.0_101; export PATH="$JAVA_HOME/bin:$PATH"; exec /home/user/Traccar/bin/traccar start &>/dev/null; fi

Of course you have Java also only unpacked (not installed). And with this line in cron you are sure that Traccar is up and running every time you need it.
But this method is useless with Traccar 3.8 :(

Anton Tananaev8 years ago

I think what you need is a manual installation:

https://www.traccar.org/download/

Barca8 years ago

Oh yes, I didn't notice that option.
In 3.8 I can't add more user than one (administrator)? I don't see relevant position in menu :(

Anton Tananaev8 years ago

Menu options are the same as before.

Barca8 years ago

Sorry, maybe I'm just dumb but I can't see options "users" or similar.
Screenshot attached:
Screenshot

abyss8 years ago

@Barca
You are not logged in as admin. It is menu of ordinary user.

Barca8 years ago

Heh, indeed. Thanks for your patience. For anyone reading this: e-mail "admin", password "admin".