Owntracks update broken

I’ve been using the GPSTracker binding with Owntracks on my Android phone for many years but a few days it stopped working - no updates received from my phone.

After quite a bit of digging I came across this issue on Github - Issue · GitHub

It seems a recent update of Owntracks has broken things for a couple of servers (GPSTracker included). I’ve manually installed version 2.5.6 of Owntracks as a workaround.

I can confirm this… :frowning:

How did you do this exactly?

I exported my settings in Owntracks then uninstalled the app on my phone.

Then downloaded the 2.5.6 release apk file from Release v2.5.6 · owntracks/android · GitHub and installed it (you need Developer mode enabled on your phone to do this). After opening I imported the settings I previously saved.

By that, do you mean that you copied that JSON? Or is there some kind of ‘setting export’ button hidden away somewhere? :slight_smile:

Yes, in Configuration management click the three dots at the top right and select Export. It will save the JSON file.

Isn’t this then (also) an issue in the GPSTracker binding that it doesn’t respond accordingly? :thinking:

Edit:
I use 2.5.9 in my vehicle with a VPN connection to my LAN and don’t have issues with it.

Are you guys using myopenhab.org as proxy?

I am.

No - I’m use nginx as a reverse proxy on my home connection which my OH server sits behind.

I’ve got the feeling you are right. Without looking into it, it seems the binding now does not “return an array of JSON objects, which could be empty ([])”. And maybe if that’s changed, this problem goes away for the openHAB users?

Edit: this response suggests there’s a deeper problem.

In the logs I see:

HTTP response received: Response{protocol=http/1.1, code=200, message=OK, url=http://[...]/gpstracker/owntracks}
HTTP response body: []

Looks like the binding already responds correctly. And as I wrote, I don’t have an issue. I tested with another Android device with 2.5.9 as well… I wonder what’s the difference here.

Edit: I’m using the 5.1.4 binding.

Which logs are those exactly?

You can find them in the Owntracks app: Menu > Status > See logs

hi,i ve got the same issue,downgraded to 2.5.6 and reporting works.So is it an owntracks app issue or a binding problem?

There’s at least an issue with the Owntracks Android app, which has been fixed. But that fix won’t be shipped until 2.5.10, of course. Or at least until the next beta release.

A separate issue with the binding is possible, but let’s first see.

I uninstalled the manually installed APK, and installed OwnTracks beta via Google Play, and it seems to work! (Strangely, this beta app claims to be 2.5.9, but I assume this is wrong.)

I again encountered problems, although I don’t understand why:

I did some more digging, and found out that there is/was indeed a problem with the binding, and a fix has been merged:

(Of course, this fix won’t be out until OH5.2, so if you want to use it before then, you’ll have to compile your own jar. Or use the one I built (see attached - you’ll have to remove the .txt extension; uploading a .jar file isn’t possible).

org.openhab.binding.gpstracker-5.2.0-SNAPSHOT.jar.txt (41.7 KB)

for version OH 4.1.2?