I haven't tried Raspberry Pi, but I had a VPS with 1GB of RAM and Ubuntu Linux on it. Server worked just fine for small number of devices.
Good news, I did a new distro from scratch and got it running.
I used Raspian Jessie Lite, and installed apache2. Once I had the server running I forwarded ports on my router (8082) so I can access the server from outside of my LAN. Then I forwarded 5023 port which is the port for my tracker.
All is working great now, thanks.
OK, not working as well as I hoped. Have done a few restarts on the Pi while I've been testing, and couldn't get traccar to run again.
I was using the standard database, and I found that when I removed "database.trace.db" and " database.mv.db" and restarted it would be ok.
I saw this thread where the suggestion was move to mysql, which I did.
https://github.com/tananaev/traccar/issues/2047
However after a couple of restarts I started to get errors again, relating to the database being locked. Mysql is running as localhost, and 192.168.1.223 is the IP of the Pi. To get it running again I dropped all tables and had the database recreated by traccar.
I've obviously missed something :-)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp:
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: Encountered an error running main:
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by 192.168.1.223 (192.168.1.223) since 10/12/16 10:0$
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:190)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at liquibase.Liquibase.clearCheckSums(Liquibase.java:1299)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at org.traccar.database.DataManager.initDatabaseSchema(DataManager.java:139)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at org.traccar.database.DataManager.<init>(DataManager.java:67)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at org.traccar.Context.init(Context.java:150)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at org.traccar.Main.main(Main.java:35)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at java.lang.reflect.Method.invoke(Method.java:606)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
INFO | jvm 1 | 2016/10/12 22:26:21 | WrapperSimpleApp Error: at java.lang.Thread.run(Thread.java:745)
STATUS | wrapper | 2016/10/12 22:26:23 | <-- Wrapper Stopped
That's because you didn't wait till database schema is fully initialized and locked your database in "updating" state. The easiest solution is to remove/clear database and start over.
Got it, thanks for your reply.
Pete
Hey all,
I posted a thread the other day:
https://www.traccar.org/forums/topic/cant-connect-to-server-html-connection-refused/
but I'm still unable to connect. I'm thinking of starting my Pi from scratch with a new distro on it. Can anyone who is successfully running the server on a Pi let me know:
What distro?
Which model Pi?
Amount of RAM?
Anything else you may think relevant.
Any help appreciated.
Pete M