running traccar as non-root user

Kristof Bernaert5 years ago

I followed these easy instructions at the bottom of the page to run traccar with non-root user: https://www.traccar.org/linux/

having these user settings on /opt/traccar and subdirs, but server isn't starting

drwxrwxr-x 2 traccar traccar    4096 Dec  9 19:23 conf
drwxrwxr-x 2 traccar traccar    4096 Dec  9 18:33 data
drwxrwxr-x 7 traccar traccar    4096 Dec  9 18:33 jre
drwxrwxr-x 2 traccar traccar   12288 Dec  9 18:33 lib
drwxrwxr-x 2 traccar traccar    4096 Dec  9 18:34 logs
drwxrwxr-x 2 traccar traccar    4096 Dec  9 18:33 schema
drwxrwxr-x 5 traccar traccar    4096 Dec  9 18:33 templates
-rw-rwxr-- 1 traccar traccar 1443407 Dec  9 18:33 tracker-server.jar
drwxrwxr-x 6 traccar traccar    4096 Dec  9 18:33 web

In the log I get this: Web server start failed - Permission denied - SocketException

But I don't see/find the missing permission. Any Hint?

Anton Tananaev5 years ago

You are probably trying to use a port that requires root permissions (e.g. port 80).

Kristof Bernaert5 years ago

cool, thank you!

To keep it simple, I put the port on 8080. Not a specific need to have it on 80.