Comments (15)
Do you have any machines added to Headscale currently?
from headscale-webui.
These are a bit weird to troubleshoot... I need to figure out how to get the futures threads to log to console or something. I'm pretty sure it's failing there somewhere -- The only thing I can think of right off the bat is no machines in Headscale. If that's the case, it should be a pretty easy fix.
from headscale-webui.
Do you have any machines added to Headscale currently?
Yes there's about 40 machines added to the setup.
Let me know if any command issued on the container could help debugging.
from headscale-webui.
Another possibility:
Do you have any weird content (like emoji?) in machine names / tags?
It's failing to get one of these:
Lines 369 to 390 in 110ee90
I think I know an ok-ish way of doing some troubleshooting. It will require a new build though.
When I get some time (hopefully tomorrow) i'll push a new build and have you do some testing
from headscale-webui.
Ok.
At a glance, all tags have at most a ":" (colon) character, while machines are standard (although some phones have a whitespace in their name).
from headscale-webui.
I was checking the code and noted that the section you pointed above is before the future threads execution, while in my log the "Finished futures" message is being printed correctly and the issue might lie around line 425.
from headscale-webui.
From experience it's usually caused by a failure in futures. You should see a log for each future that ran. It doesn't populate sorted_machines properly. I'm redoing my builds at the moment. I should have a build ready for you to test in the next few hours.
from headscale-webui.
Apologies for the delay. Pull :v0.5.4 and set the environment variable LOG_LEVEL
to debug
, it should give more detailed info on where it's failing! (It will also render the machines page much more slowly, as it doesn't do threading -- just runs through all of your machines serially)
from headscale-webui.
Apologies for the delay. Pull :v0.5.4 and set the environment variable
LOG_LEVEL
todebug
, it should give more detailed info on where it's failing! (It will also render the machines page much more slowly, as it doesn't do threading -- just runs through all of your machines serially)
No problem at all. Here's the log (spoiler: some date/time conversion from UTC gone wrong, maybe our headscale config is missing a parameter?)
[2023-03-17 11:49:59,500] ERROR in app: Exception on /machines [GET] Traceback (most recent call last): File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/server.py", line 115, in decorated return view_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/server.py", line 180, in machines_page cards = renderer.render_machines_cards() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/renderer.py", line 411, in render_machines_cards for idx in iterable: thread_machine_content(machines_list["machines"][idx], machine_content, idx) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/renderer.py", line 339, in thread_machine_content expiry_local = expiry_parse.astimezone(timezone) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.11/site-packages/pytz/tzinfo.py", line 201, in fromutc return (dt + inf[0]).replace(tzinfo=self._tzinfos[inf]) ~~~^~~~~~~~ OverflowError: date value out of range
from headscale-webui.
What TZ do you have set?
It defaults to UTC if the "TZ" environment variable isn't set
from headscale-webui.
I'm setting Europe/Madrid via the podman run command.
podman run -e TZ=Europe/Madrid ...
from headscale-webui.
Sweet -- I get the same error. Let me fiddle for a bit and I'll get back to you!
from headscale-webui.
I think I figured it out.
Try ghcr.io/ifargle/headscale-webui:testing
from headscale-webui.
So the problem was:
Your expiration times were likely 0001-01-01T00:00:00Z
.
When it tried to take the Europe/Madrid
TZ offset of -1, we entered negative time!
And PyTZ had no idea what to do.
Should be working now!
from headscale-webui.
Yep, it works indeed!
Good to know, although I think those expiration times are pretty common for nodes which have been onboarded to headscale with an auth token.
All our non-human nodes in the headscale network have such feature.
from headscale-webui.
Related Issues (20)
- Setup with the Linux bare metal installation of Headscale? HOT 8
- Encountered the following error after deploying with docker HOT 3
- IndexError when trying to load front page HOT 2
- [Q+A] How to handle 100+ groups +1?
- Historic values from routing list are still clickable
- Exception when opening pages that loads preauthkeys from Headscale HOT 3
- Assigning Tags in webui does not apply
- OIDC KeyCloak => can't logout
- Incorrect terminal display
- OIDC return http not https address HOT 1
- OIDC server does not support profile
- Stuck on "Loading basic auth libraries and configuring app" HOT 3
- Cannot open /machines and /routes anymore HOT 7
- Honor `tagOwners` when tagging devices HOT 3
- Docker version 0.7.0 is not starting HOT 3
- Docker fails to start after update to 0.7.0 HOT 2
- TZ error in 0.7 HOT 2
- [bug] 0.7.1 can't reach HS_SERVER, but 0.6.1 can HOT 2
- Container not working with docker volume HOT 3
- What are the specific functions of Ephemeral in PreAuthKey HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headscale-webui.