Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection reset #1925

Open
stemy2 opened this issue Nov 27, 2024 · 12 comments
Open

Connection reset #1925

stemy2 opened this issue Nov 27, 2024 · 12 comments

Comments

@stemy2
Copy link

stemy2 commented Nov 27, 2024

  • App build number: 2.5.3
  • Android version: 13
  • Device: Fairphone 3
  • Installation source: F-droid

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
Copy link
Member

jpmens commented Nov 27, 2024

(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
Copy link
Author

stemy2 commented Nov 27, 2024

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
Copy link
Member

jpmens commented Nov 27, 2024

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
Copy link
Author

stemy2 commented Nov 27, 2024

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
Copy link
Member

jpmens commented Nov 27, 2024

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
Copy link
Author

stemy2 commented Nov 27, 2024

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

@jpmens
Copy link
Member

jpmens commented Nov 27, 2024

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

@stemy2
Copy link
Author

stemy2 commented Nov 27, 2024

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

@growse
Copy link
Collaborator

growse commented Nov 27, 2024

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
Copy link
Member

jpmens commented Nov 27, 2024

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

@stemy2
Copy link
Author

stemy2 commented Nov 27, 2024

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
Copy link
Member

jpmens commented Nov 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants