POST call to OwnTracks returns SSO error

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.11
What app is this about: OwnTracks

Describe your issue

Hello All :waving_hand:

I’ve been experiencing some issues lately with my OwnTracks app. It has been off ever since I tried cleaning up the history data- I believe it was since I deleted the .rec files whereas I should have just emptied them? I recreated manually these files and their user folders under the home/yunohost.app/owntracks/rec folder with my admin account via ssh.
Now whenever I am attempting to publish a location from my android app, I can see logs such as the ones I attached below (with personal info modified). Since it looks like some sso related html, I presume it means something’s off with the sso- but what?
Anyone has any idea? All responses are welcome! :folded_hands:

Share relevant logs or error messages

2025-03-06 20:10:04.521 D [DefaultDispatcher-worker-4] HttpMessageProcessorEndpoint: Publishing Message JSON {"_type":"status","_id":"eee7ccc2","android":{"hib":0,"bo":0,"loc":0,"ps":0,"wifi":1},"topic":"owntracks/usr1/phone1/status"}
2025-03-06 20:10:04.539 D [DefaultDispatcher-worker-4] HttpMessageProcessorEndpoint: HTTP response received: Response{protocol=http/1.1, code=200, message=OK, url=https://my.domain/yunohost/sso/?r=XXXXX}
2025-03-06 20:10:04.540 D [DefaultDispatcher-worker-4] HttpMessageProcessorEndpoint: HTTP response body: <!DOCTYPE html><html  data-capo=""><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/yunohost/sso/customassets/custom.css">
<link rel="stylesheet" href="/yunohost/sso/assets/entry.DpPK_8DF.css">
<link rel="modulepreload" as="script" crossorigin href="/yunohost/sso/assets/DFvAvYwi.js">
<link rel="prefetch" as="style" href="/yunohost/sso/assets/default.BgPXwhMe.css">
<link rel="prefetch" as="style" href="/yunohost/sso/assets/YIcon.DX7cAa3h.css">
<link rel="prefetch" as="style" href="/yunohost/sso/assets/nuxt-icon.D08378P0.css">
<link rel="prefetch" as="script" crossorigin href="/yunohost/sso/assets/DrDZOOdo.js">
<link rel="prefetch" as="script" crossorigin href="/yunohost/sso/assets/CSbfOQfZ.js">
<link rel="prefetch" as="script" crossorigin href="/yunohost/sso/assets/CUWpuZQL.js">
<link rel="prefetch" as="script" crossorigin href="/yunohost/sso/assets/CgrqUlTk.js">
<link rel="prefetch" as="script" crossorigin h
2025-03-06 20:10:04.541 E [DefaultDispatcher-worker-4] HttpMessageProcessorEndpoint: JsonParseException HTTP status: 200
2025-03-06 20:10:04.544 D [DefaultDispatcher-worker-4] MessageProcessor: Message sent successfully: [MessageStatus android=org.owntracks.android.model.messages.AddMessageStatus@3029bab]

I don’t have the app installed but did you the rec files the correct ownership?
Do you have any backup? Open one and check the files

Hello @jarod5001 - thanks a lot for the reply!!
So I had a look around, tried to extract one of the .rec files from my backup, but unfortunately the file ownership is set to the account that extracts the file.
I did however checked the ownership of the ghash folder also under the owntracks one and noticed it was under the ownership of owntrack owntracks. So I tried changing ownership of both rec and last folders to same user/group recursively, but to no avail :confused:
Anyone with owntracks can check the permission given to these folders on his machine :folded_hands: I’d be truly grateful!!

Hi, I have set the app as “not working” yesterday after another report of the app not working. It seems the package needs a lot more configuration for the app to work.

Was it ever working for you? For which version of the app and package?

1 Like

Hey @tituspijean - thanks for getting back to me on that!
Sad to hear the app is not working :sad_but_relieved_face: though to be honest I’m not surprised.
the app version is
owntracks/frontend (2.15.3)
owntracks/recorder (0.9.9)
And the yunohost app package version is 2.15.3~ynh2 (hope this is the answer you’re after)
It used to work for me rather on and off- usually for a few days, than stopped, then after restarting the service and/or the phone, got back to work again…

If I understand you correctly, you suggest to uninstall it? Thanks for letting me know anyway :heart:

No, he means we need volunteers to help fix it. The more info we get, the better we can do it work correctly

1 Like

Thank you! If it does work in some unknown conditions, there is hope. I am not sure I will be able to tackle that alone or in a timely matter. Thank you for your patience :slight_smile:

1 Like

@tituspijean to be precise- it used to work in some unknown conditions.
I wish I could do more to help- I mainly know some C# (and not much ‘ops’ stuff) which I doubt can be of any help in looking on this issue :confused:
Anyway, I highly appreciate all the work you’re doing, and I’m well aware this has no real priority. TBH it’s just a nice to have, this app.
And if you ever need any help in testing, feel free to ping me :blush:

Thanks again for everything!!

Can you restore the backup? Report the version and see if it still works

1 Like

Yeah, I tried to, but unfortunately it did not work. I had to re-update the app, since it was not working at all (cannot remember the error message I was getting) and once I updated it to the latest version, I had the issue that started the whole thread.

I’m taking the liberties to tag @wbk here, since I had some exchange with them some time ago about the Owntracks app, and if by any chance he uses it, maybe he could shed some more light on it…?

Was it working on yunohost 11?

May be you can make a test : add the app permission to visitors and check if this solves the problem (then remove it)

So now that the app has been retracted from the apps repository (I suppose), once its service never starts and I cannot start it even manually.

The app is still available but not directly on the catalog.
You can install it manually from the webadmin >applications >install, and provide the url of the repo (at the bottom of the page).
The repo is GitHub - YunoHost-Apps/owntracks_ynh: Owntracks package for YunoHost
You seem very interested in fixing it so you may spend some time trying and give us feedback.

Thanks! Will do, just need to find some time :blush:
I’ll get back to you to let you know :folded_hands:

1 Like