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

ownTracks frontend without OpenStreetMaps #57

Closed
dietmarhein opened this issue Aug 19, 2024 · 10 comments
Closed

ownTracks frontend without OpenStreetMaps #57

dietmarhein opened this issue Aug 19, 2024 · 10 comments

Comments

@dietmarhein
Copy link

I followed installation guide: https://owntracks.org/booklet/guide/quicksetup/ and successfully installed all necessary components on a raspberry pi 3 B rev. 1.2

system info
Last bootstrap: 2024-08-16T11:21:02Z
Ansible version: 2.17.3
OS distro: Debian / 12
OS distribution: bookworm

"Live map" and "device table" work perfectly, mobile device reports location correctly.

BUT, when using "Frontend" instead of OpenStreetMaps just a light blue map is shown -> screenshot
owntracks/frontend (2.15.3)

Any idea?
ownTracks_Frontend

@jpmens
Copy link
Member

jpmens commented Aug 19, 2024

That sounds a bit as though Frontend hasn't yet "seen" data from the Recorder API...

On the top right of Frontend is a selector for users & devices: do you see any data populated there?

And if a bit further on the left you select an older time range?

@dietmarhein
Copy link
Author

dietmarhein commented Aug 19, 2024

ownTracks_Frontend_info
that's all I see. Maybe some issues with user permissions? Version is never displayed owntracks/recorder (Loading version...) when clicking on "information"

@jpmens
Copy link
Member

jpmens commented Aug 19, 2024

Can you please verify that the Recorder is actually running?

$ ps ax | grep recorder

and can you see if you can query it from the command line of your Raspi?

$ curl http://localhost:8083/api/0/version

As to the configuration you created in configuration.yaml: did you originally add an email address for Let's Encrypt to be activated?

@dietmarhein
Copy link
Author

Can you please verify that the Recorder is actually running?

$ ps ax | grep recorder

and can you see if you can query it from the command line of your Raspi?

$ curl http://localhost:8083/api/0/version

As to the configuration you created in configuration.yaml: did you originally add an email address for Let's Encrypt to be activated?

  • yes, recorder is running
  • curl http://localhost:8083/api/0/version -> {"version":"0.9.8","git":"0.9.8-0-g488eabe3e3"}
  • yes, I originally added an email-address; Let's encrypt SSL certificate is present.

@jpmens
Copy link
Member

jpmens commented Aug 19, 2024

Please check whether the content of Frontend's configuration makes sense, particularly the baseUrl value:

$ cat /usr/share/nginx/html/owntracks/frontend/config/config.js

(no need to paste that here, for privacy; if you're unsure, please send us the file to [email protected] and we'll look at it)

If the file does make sense, and the URL is accessible from your Raspi to your Raspi (curl will tell you that), then I'm going to do something unusual and ask you to please reboot the Raspi ...

@jpmens
Copy link
Member

jpmens commented Aug 19, 2024

To clarify: the baseUrl must be accessible from your Web browser.

@dietmarhein
Copy link
Author

To clarify: the baseUrl must be accessible from your Web browser.

Thank you very much for your hints. Finally I fixed the issue. 🤗

Problem was: I had to open another port than 443 at my ISP router forwarded to raspi 443.

I had to add the opened WAN port to baseUrl to get OpenStreetMaps working on Frontends page.

Maybe a feature for quicksetup would be to choose the local port at setup.

@jpmens
Copy link
Member

jpmens commented Aug 20, 2024

Glad you got it working!

So in essence, your ISP offered you, say, TCP port 1009 which you are redirecting into 443, so you've configured your baseUrl to be https://example.org:1009/owntracks for an nginx on the Quicksetup machine running on 443.

I'll make a mental note to consider your feature request. However, one of the ideas behind quicksetup was to keep it as simple (and thus configuration-free) as possible...

Please keep in mind for your own installation, that whenever you re-run ./bootstrap.sh, say to add a friend, or reconfigure something, that your Frontend's config.js will be overwritten.

@dietmarhein
Copy link
Author

Glad you got it working!

So in essence, your ISP offered you, say, TCP port 1009 which you are redirecting into 443, so you've configured your baseUrl to be https://example.org:1009/owntracks for an nginx on the Quicksetup machine running on 443.

I'll make a mental note to consider your feature request. However, one of the ideas behind quicksetup was to keep it as simple (and thus configuration-free) as possible...

Please keep in mind for your own installation, that whenever you re-run ./bootstrap.sh, say to add a friend, or reconfigure something, that your Frontend's config.js will be overwritten.

yes, absolutly correct and I keep in mind that each time I do a re-run of ./bootstrap.sh, I will have to reconfigure config.js to fit my needs regarding ISP WAN/LAN forwarding. Thanks again for pointing me to the problem!

@jpmens
Copy link
Member

jpmens commented Aug 20, 2024

Closing with enhancement phrased in #58

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

2 participants