not able to register node #91

Closed
opened 2025-12-29 01:22:51 +01:00 by adam · 0 comments
Owner

Originally created by @changchichung on GitHub (Dec 27, 2021).

here are my steps in a new VPS to run headscale

check firewall status

chchang@headscale:~/git/headscale$ sudo ufw status numbered
Status: active

     To                         Action      From
     --                         ------      ----
[ 1] 22                         ALLOW IN    Anywhere                  
[ 2] 80                         ALLOW IN    Anywhere                  
[ 3] 443                        ALLOW IN    Anywhere                  
[ 4] 8080                       ALLOW IN    Anywhere                  
[ 5] 8000                       ALLOW IN    Anywhere                  
[ 6] 22 (v6)                    ALLOW IN    Anywhere (v6)             
[ 7] 80 (v6)                    ALLOW IN    Anywhere (v6)             
[ 8] 443 (v6)                   ALLOW IN    Anywhere (v6)             
[ 9] 8080 (v6)                  ALLOW IN    Anywhere (v6)             
[10] 8000 (v6)                  ALLOW IN    Anywhere (v6)             

chchang@headscale:~/git/headscale$ 

check headscale status

chchang@headscale:~/git/headscale$ headscale_0.11.0 namespaces list
An updated version of Headscale has been found (0.12.1 vs. your current v0.11.0). Check it out https://github.com/juanfont/headscale/releases
ID | Name | Created            
1  | mc   | 2021-12-27 05:55:45
chchang@headscale:~/git/headscale$ 

check if headscale running

chchang@headscale:~/git/headscale$ sudo netstat -antlp |grep head
tcp6       0      0 :::8080                 :::*                    LISTEN      39364/./headscale_0 
chchang@headscale:~/git/headscale$ 

check if 8080 port open

chchang@c039:~$ telnet headscale.abc.com 8080
Trying 45.76.199.171...
Connected to headscale.abc.com.
Escape character is '^]'.

generate preauthkey

chchang@headscale:~/git/headscale$ headscale_0.11.0 -n mc preauthkeys create --reusable --expiration 24h
An updated version of Headscale has been found (0.12.1 vs. your current v0.11.0). Check it out https://github.com/juanfont/headscale/releases
2d7cdc6c1a0a559235123123411852206e574b8490a4337b3c
chchang@headscale:~/git/headscale$ 

try to register my first node using preauthkey

chchang@c039:~$ sudo tailscale up --login-server http://headscale.abc.com --authkey 2312312c852206e574b8490a4337b3c --force-reauth
^Ccontext canceled
chchang@c039:~$ date
Mon 27 Dec 2021 03:28:06 PM CST

as yo ucan see , it tooks hours to register but no response , and no error in server console

chchang@headscale:/etc/default$ [GIN] 2021/12/27 - 06:42:53 | 404 |      82.171µs |  23.225.163.214 | GET      "/"
[GIN] 2021/12/27 - 06:43:13 | 404 |      85.879µs |  23.225.163.214 | GET      "/favicon.ico"
[GIN] 2021/12/27 - 06:43:13 | 404 |     101.204µs |  23.225.163.214 | GET      "/robots.txt"
[GIN] 2021/12/27 - 06:43:13 | 404 |      87.598µs |  23.225.163.214 | GET      "/sitemap.xml"
[GIN] 2021/12/27 - 07:13:25 | 404 |     214.227µs |   139.59.235.12 | GET      "/"

any suggestion ??

Originally created by @changchichung on GitHub (Dec 27, 2021). here are my steps in a new VPS to run headscale #### check firewall status ``` chchang@headscale:~/git/headscale$ sudo ufw status numbered Status: active To Action From -- ------ ---- [ 1] 22 ALLOW IN Anywhere [ 2] 80 ALLOW IN Anywhere [ 3] 443 ALLOW IN Anywhere [ 4] 8080 ALLOW IN Anywhere [ 5] 8000 ALLOW IN Anywhere [ 6] 22 (v6) ALLOW IN Anywhere (v6) [ 7] 80 (v6) ALLOW IN Anywhere (v6) [ 8] 443 (v6) ALLOW IN Anywhere (v6) [ 9] 8080 (v6) ALLOW IN Anywhere (v6) [10] 8000 (v6) ALLOW IN Anywhere (v6) chchang@headscale:~/git/headscale$ ``` #### check headscale status ``` chchang@headscale:~/git/headscale$ headscale_0.11.0 namespaces list An updated version of Headscale has been found (0.12.1 vs. your current v0.11.0). Check it out https://github.com/juanfont/headscale/releases ID | Name | Created 1 | mc | 2021-12-27 05:55:45 chchang@headscale:~/git/headscale$ ``` #### check if headscale running ``` chchang@headscale:~/git/headscale$ sudo netstat -antlp |grep head tcp6 0 0 :::8080 :::* LISTEN 39364/./headscale_0 chchang@headscale:~/git/headscale$ ``` #### check if 8080 port open ``` chchang@c039:~$ telnet headscale.abc.com 8080 Trying 45.76.199.171... Connected to headscale.abc.com. Escape character is '^]'. ``` #### generate preauthkey ``` chchang@headscale:~/git/headscale$ headscale_0.11.0 -n mc preauthkeys create --reusable --expiration 24h An updated version of Headscale has been found (0.12.1 vs. your current v0.11.0). Check it out https://github.com/juanfont/headscale/releases 2d7cdc6c1a0a559235123123411852206e574b8490a4337b3c chchang@headscale:~/git/headscale$ ``` #### try to register my first node using preauthkey ``` chchang@c039:~$ sudo tailscale up --login-server http://headscale.abc.com --authkey 2312312c852206e574b8490a4337b3c --force-reauth ^Ccontext canceled chchang@c039:~$ date Mon 27 Dec 2021 03:28:06 PM CST ``` as yo ucan see , it tooks hours to register but no response , and no error in server console ``` chchang@headscale:/etc/default$ [GIN] 2021/12/27 - 06:42:53 | 404 | 82.171µs | 23.225.163.214 | GET "/" [GIN] 2021/12/27 - 06:43:13 | 404 | 85.879µs | 23.225.163.214 | GET "/favicon.ico" [GIN] 2021/12/27 - 06:43:13 | 404 | 101.204µs | 23.225.163.214 | GET "/robots.txt" [GIN] 2021/12/27 - 06:43:13 | 404 | 87.598µs | 23.225.163.214 | GET "/sitemap.xml" [GIN] 2021/12/27 - 07:13:25 | 404 | 214.227µs | 139.59.235.12 | GET "/" ``` any suggestion ??
adam added the bug label 2025-12-29 01:22:51 +01:00
adam closed this issue 2025-12-29 01:22:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#91