owntracks / android

OwnTracks Android App
http://owntracks.org
Eclipse Public License 1.0
1.39k stars 477 forks source link

Connection reset #1925

Open stemy2 opened 3 days ago

stemy2 commented 3 days ago

Hello,

I'm unable to join the instance i installed on my homeserver: "connection reset", it says. I don't get why, i though my configuration was good. Could you explain me how to investigate the problem ?

Thanks

The log

jpmens commented 3 days ago

(the log points to something awful which doesn't give me the log)

Connection refused means exactly that: nothing's listening on the TCP port you are trying to reach. As you don't say with which protocol you are using OwnTracks on your device, there's not much else we can tell you.

stemy2 commented 3 days ago

I'm trying to use the HTTP protocol. I corrected, it says "connection reset", not "connection refused".

I don't get why you can't see my log at the URL i provided, since i can see it myself at the said URL.

jpmens commented 3 days ago

On second attempt I see log.

I also see a mix of

Connecting to ssl://owntracks.stemy.xyz:8883?
HTTP request failed. Status: 405

which indicates you're trying to do MQTT (port 8883)? and HTTP. 405 is "method not allowed"

Tell us what your endpoint is and how you have configured it.

stemy2 commented 3 days ago

The endpoint: https://owntracks.stemy.xyz

I didn't have to config anything, my servers's OS is able to install apps in a semi-automatic mode. Could a config file answer to your question ?

jpmens commented 3 days ago

That endpoint shows an HTML page: look at the last line here!

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="./favicon.ico">
    <link rel="manifest" crossorigin="use-credentials" href="./manifest.json">
    <title>OwnTracks Frontend</title>
    <script type="module" crossorigin src="./assets/index-neMnFRE3.js"></script>
    <link rel="stylesheet" crossorigin href="./assets/index-D5pUPUoo.css">
  </head>
  <body>
    <noscript>
      <strong>We're sorry but OwnTracks doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>

The endpoint for OwnTracks HTTP apps ends in /pub; please check the booklet for Quicksetup

stemy2 commented 3 days ago

I added /pub, now i have a HTTP 404 error.

jpmens commented 3 days ago

I said "ends in /pub". I did not say "add /pub". 404 is "not found".

stemy2 commented 3 days ago

I don't get it. Is my endpoint supposed to be set at "https://owntracks.stemy.xyz/pub" in the app ?

growse commented 3 days ago

https://owntracks.stemy.xyz hosts an instance of the frontend.

The app needs to be configured to post locations to a running instance of the recorder.

Are you running an instance of the recorder?

jpmens commented 3 days ago

Ah, I thought this was a Quicksetup installation, but it doesn't appear to be.

stemy2 commented 3 days ago

https://owntracks.stemy.xyz hosts an instance of the frontend.

The app needs to be configured to post locations to a running instance of the recorder.

Are you running an instance of the recorder?

I'm actually the owner of stemy.xyz. Do you mean i have to install somthing else in addition with the frontend instance and the phone app ?

jpmens commented 3 days ago

Do you mean i have to install somthing else in addition with the frontend instance and the phone app ?

Your device will publish location data which has to be stored somewhere [1] for Frontend to retrieve it.

How about you start at the beginning, and read a bit about our work at [2], and when you have a feel about what this is all for, I might recommend you look at our Quicksetup [3] program.

[1] is called the Recorder if you want Frontend to work. [2] https://owntracks.org/booklet/ [3] https://owntracks.org/booklet/guide/quicksetup/