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

Daytona server - control is not running #664

Closed
kabir-baba opened this issue Jun 8, 2024 · 9 comments · Fixed by #1290
Closed

Daytona server - control is not running #664

kabir-baba opened this issue Jun 8, 2024 · 9 comments · Fixed by #1290
Assignees
Labels
bug Something isn't working never stale An issue that never goes stale

Comments

@kabir-baba
Copy link

kabir-baba commented Jun 8, 2024

Describe the bug
When attempting to install and start the Daytona server using the provided installation script and commands, the server fails to start and returns a "connection refused" error.

To Reproduce
Steps to reproduce the behavior:
Steps to Reproduce:

  1. Run the installation command: (curl -sf -L https://download.daytona.io/daytona/install.sh | sudo bash)
  2. Attempt to start the Daytona server: daytona server -y
  3. Attempt to view the Daytona server logs: sudo daytona server logs
  4. Attempt to serve Daytona: sudo daytona serve
  5. Attempt to view Docker processes: docker ps
  6. See error logs below
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ (curl -sf -L https://download.daytona.io/daytona/install.sh | sudo bash) && daytona server -y && daytona
Installing Daytona...

Default installation directory: /usr/local/bin
You can override this by setting the DAYTONA_PATH environment variable (ie. `| DAYTONA_PATH=/home/user/bin bash`)

Downloading Daytona binary from https://download.daytona.io/daytona/latest/daytona-linux-amd64
Installing server to /usr/local/bin
                                      
 Starting the Daytona Server daemon...
                                      
FATA[0035] Get "http://localhost:3986/health": dial tcp 127.0.0.1:3986: connect: connection refused 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo daytona server -y
                                      
 Starting the Daytona Server daemon...
                                      
FATA[0036] Get "http://localhost:3986/health": dial tcp 127.0.0.1:3986: connect: connection refused 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo daytona server logs
FATA[0000] active profile not found                     
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo daytona serve
INFO[0000] Starting Daytona server                      
INFO[0000] Starting local container registry            
Image already pulled
FATA[0011] control is not running                       
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json": dial unix /var/run/docker.sock: connect: permission denied
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo docker ps
CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS          PORTS                              NAMES
507dd3835a9f   registry:2.8.3         "/entrypoint.sh /etc…"   34 seconds ago   Up 33 seconds   0.0.0.0:3988->3988/tcp, 5000/tcp   daytona-registry

Expected behavior
The Daytona server fails to start and returns the following error: FATA[0035] Get "http://localhost:3986/health": dial tcp 127.0.0.1:3986: connect: connection refused

Additionally, attempting to view the Daytona server logs returns the error: FATA[0000] active profile not found

Attempting to serve Daytona returns the error: FATA[0011] control is not running
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [Ubuntu 22.04]
 -cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
  • Daytona Version: Daytona version v0.18.0

Docker version

cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo docker version
Client: Docker Engine - Community
 Version:           26.1.3
 API version:       1.45
 Go version:        go1.21.10
 Git commit:        b72abbb
 Built:             Thu May 16 08:33:29 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          26.1.3
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.10
  Git commit:       8e96db1
  Built:            Thu May 16 08:33:29 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.33
  GitCommit:        d2d58213f83a351ca8f528a95fbd145f5654e957
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
@kabir-baba kabir-baba added the bug Something isn't working label Jun 8, 2024
@kabir-baba
Copy link
Author

@vedranjukic , please suggest

@Tpuljak
Copy link
Member

Tpuljak commented Jun 8, 2024

@kabir-baba thanks for such a detailed issue.

Can you please start the server in the foreground with LOG_LEVEL=debug daytona serve and post the resulting logs?

@kabir-baba
Copy link
Author

@Tpuljak , thanks for a fast response
here it goes

cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo LOG_LEVEL=debug daytona serve
DEBU[0000] Opening db at /root/.config/daytona/db       
INFO[0000] Starting Daytona server                      
INFO[0000] Starting local container registry            
Image already pulled
DEBU[0001] Failed to connect to headscale frpc: control is not running 
DEBU[0001] 2024-06-08T12:38:48Z DBG opening database connection=/root/.config/daytona/server/headscale/headscale.db type=sqlite3 
DEBU[0001] 2024-06-08T12:38:48Z WRN DERP map is empty, not a single DERP map datasource was loaded correctly or contained a region 
DEBU[0001] 2024-06-08T12:38:48Z INF ../runner/go/pkg/mod/github.com/juanfont/[email protected]/hscontrol/derp/server/derp_server.go:103 > DERP region: {RegionID:999 RegionCode:local RegionName:Daytona embedded DERP Avoid:false Nodes:[0xc000f96090]} 
DEBU[0001] 2024-06-08T12:38:48Z INF ../runner/go/pkg/mod/github.com/juanfont/[email protected]/hscontrol/derp/server/derp_server.go:104 > DERP Nodes[0]: &{Name:999 RegionID:999 HostName:ea785c39-295e-4f0d-8eac-1c2405a6a3df.try-us.daytona.app CertName: IPv4: IPv6: STUNPort:3478 STUNOnly:false DERPPort:443 InsecureForTests:false STUNTestIP: CanPort80:false} 
DEBU[0001] 2024-06-08T12:38:48Z INF STUN server started at [::]:3478 
DEBU[0001] 2024-06-08T12:38:48Z INF Setting up a DERPMap update worker frequency=86400000 
DEBU[0001] 2024-06-08T12:38:48Z WRN Listening without TLS but ServerURL does not start with http:// 
DEBU[0001] 2024-06-08T12:38:48Z INF listening and serving HTTP on: 127.0.0.1:3987 
DEBU[0001] 2024-06-08T12:38:48Z INF listening and serving metrics on:  
DEBU[0002] Creating headscale user                      
DEBU[0002] User already exists                          
DEBU[0002] Creating headscale auth key                  
DEBU[0002] Headscale auth key created                   
DEBU[0002] 2024/06/08 12:38:49 [v1] using fake (no-op) tun device 
DEBU[0002] 2024/06/08 12:38:49 [v1] using fake (no-op) OS network configurator 
DEBU[0002] 2024/06/08 12:38:49 [v1] using fake (no-op) DNS configurator 
DEBU[0002] 2024/06/08 12:38:49 dns: using dns.noopManager 
DEBU[0002] 2024/06/08 12:38:49 link state: interfaces.State{defaultRoute=ens5 ifs={br-0f0b58a90c90:[172.18.0.1/16 fc00:f853:ccd:e793::1/64 llu6 llu6] docker0:[172.17.0.1/16 llu6] ens5:[172.31.20.55/20 2600:1f1c:2bf:6405:4dca:faba:6456:1920/128 llu6]} v4=true v6=true} 
DEBU[0002] 2024/06/08 12:38:49 onPortUpdate(port=59601, network=udp6) 
DEBU[0002] 2024/06/08 12:38:49 [v1] warning: fakeRouter.UpdateMagicsockPort: not implemented. 
DEBU[0002] 2024/06/08 12:38:49 onPortUpdate(port=47206, network=udp4) 
DEBU[0002] 2024/06/08 12:38:49 [v1] warning: fakeRouter.UpdateMagicsockPort: not implemented. 
DEBU[0002] 2024/06/08 12:38:49 [v1] magicsock: peermtu: peer MTU status is false 
DEBU[0002] 2024/06/08 12:38:49 [v1] using BPF disco receiver for IPv4 
DEBU[0002] 2024/06/08 12:38:49 [v1] using BPF disco receiver for IPv6 
DEBU[0002] 2024/06/08 12:38:49 magicsock: disco key = d:85d3cb13eda79c98 
DEBU[0002] 2024/06/08 12:38:49 Creating WireGuard device... 
DEBU[0002] 2024/06/08 12:38:49 Bringing WireGuard device up... 
DEBU[0002] 2024/06/08 12:38:49 wg: [v2] UDP bind has been updated 
DEBU[0002] 2024/06/08 12:38:49 wg: [v2] Interface state was Down, requested Up, now Up 
DEBU[0002] 2024/06/08 12:38:49 Bringing router up...    
DEBU[0002] 2024/06/08 12:38:49 [v1] warning: fakeRouter.Up: not implemented. 
DEBU[0002] 2024/06/08 12:38:49 Clearing router settings... 
DEBU[0002] 2024/06/08 12:38:49 [v1] warning: fakeRouter.Set: not implemented. 
DEBU[0002] 2024/06/08 12:38:49 Starting network monitor... 
DEBU[0002] 2024/06/08 12:38:49 Engine created.          
DEBU[0002] 2024/06/08 12:38:49 tsnet running state path /root/.config/tsnet-daytona/tailscaled.state 
DEBU[0002] 2024/06/08 12:38:49 pm: migrating "_daemon" profile to new format 
DEBU[0002] 2024/06/08 12:38:49 logpolicy: using system state directory "/var/lib/tailscale" 
DEBU[0002] 2024/06/08 12:38:49 [v1] netmap packet filter: (not ready yet) 
DEBU[0002] 2024/06/08 12:38:49 tsnet starting with hostname "server", varRoot "/root/.config/tsnet-daytona" 
DEBU[0002] 2024/06/08 12:38:49 Start                    
DEBU[0002] 2024/06/08 12:38:49 [vJSON]1{"Hostinfo":{"IPNVersion":"1.58.2-ERR-BuildInfo","BackendLogID":"98f903a86ce58f98c9e8be9b4277bfe82ef76b4e7ea7649f52ef47176d898889","OS":"linux","OSVersion":"6.5.0-1020-aws","Container":false,"Distro":"ubuntu","DistroVersion":"22.04","DistroCodeName":"jammy","Desktop":false,"Package":"tsnet","Hostname":"0cbd489f7a454f2db58e04c07e4830b71c","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.22.2","Cloud":"aws","Userspace":true,"UserspaceRouter":true,"AppConnector":false}} 
DEBU[0002] 2024/06/08 12:38:49 [v1] netmap packet filter: (not ready yet) 
DEBU[0002] 2024/06/08 12:38:49 wg: [v2] Routine: receive incoming mkReceiveFunc - started 
DEBU[0002] 2024/06/08 12:38:49 wg: [v2] Routine: receive incoming mkReceiveFunc - started 
DEBU[0002] 2024/06/08 12:38:49 wg: [v2] Routine: receive incoming receiveDERP - started 
DEBU[0002] 2024/06/08 12:38:50 [v1] got initial portlist info in 27ms 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] HostInfo: {"IPNVersion":"1.58.2-ERR-BuildInfo","BackendLogID":"98f903a86ce58f98c9e8be9b4277bfe82ef76b4e7ea7649f52ef47176d898889","OS":"linux","OSVersion":"6.5.0-1020-aws","Container":false,"Distro":"ubuntu","DistroVersion":"22.04","DistroCodeName":"jammy","Desktop":false,"Package":"tsnet","Hostname":"server","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.22.2","Services":[{"Proto":"tcp","Port":22,"Description":"eic_run_authorized_keys"},{"Proto":"tcp","Port":53,"Description":"systemd-resolved"},{"Proto":"tcp","Port":3988,"Description":"docker-proxy"},{"Proto":"tcp","Port":31297,"Description":"node"},{"Proto":"tcp","Port":44849,"Description":"daytona"}],"Cloud":"aws","Userspace":true,"UserspaceRouter":true,"AppConnector":false} 
DEBU[0002] 2024/06/08 12:38:50 Backend: logs: be:98f903a86ce58f98c9e8be9b4277bfe82ef76b4e7ea7649f52ef47176d898889 fe: 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] authRoutine: state:new; goal=nil paused=false 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] mapRoutine: state:new 
DEBU[0002] 2024/06/08 12:38:50 Switching ipn state NoState -> NeedsLogin (WantRunning=true, nm=false) 
DEBU[0002] 2024/06/08 12:38:50 blockEngineUpdates(true) 
DEBU[0002] 2024/06/08 12:38:50 health("overall"): error: not in map poll 
DEBU[0002] 2024/06/08 12:38:50 [v1] magicsock: peermtu: peer MTU status is false 
DEBU[0002] 2024/06/08 12:38:50 wgengine: Reconfig: configuring userspace WireGuard config (with 0/0 peers) 
DEBU[0002] 2024/06/08 12:38:50 wgengine: Reconfig: configuring router 
DEBU[0002] 2024/06/08 12:38:50 [v1] warning: fakeRouter.Set: not implemented. 
DEBU[0002] 2024/06/08 12:38:50 wgengine: Reconfig: configuring DNS 
DEBU[0002] 2024/06/08 12:38:50 dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0} 
DEBU[0002] 2024/06/08 12:38:50 dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[], cloud="aws"} 
DEBU[0002] 2024/06/08 12:38:50 dns: OScfg: {}           
DEBU[0002] 2024/06/08 12:38:50 [v1] wgengine: Reconfig done 
DEBU[0002] 2024/06/08 12:38:50 LocalBackend state is NeedsLogin; running StartLoginInteractive... 
DEBU[0002] 2024/06/08 12:38:50 StartLoginInteractive: url=false 
DEBU[0002] 2024/06/08 12:38:50 control: client.Login(false, 10) 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] mapRoutine: context done. 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] mapRoutine: state:new 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] authRoutine: context done. 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] authRoutine: state:new; wantLoggedIn=true 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0002] 2024/06/08 12:38:50 control: LoginInteractive -> regen=true 
DEBU[0002] 2024/06/08 12:38:50 control: doLogin(regen=true, hasUrl=false) 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] TryLogin: fetch control key: 404 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0002] 2024/06/08 12:38:50 control: authRoutine: [v1] backoff: 13 msec 
DEBU[0002] 2024/06/08 12:38:50 Received error: fetch control key: 404 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0002] 2024/06/08 12:38:50 control: LoginInteractive -> regen=true 
DEBU[0002] 2024/06/08 12:38:50 control: doLogin(regen=true, hasUrl=false) 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] TryLogin: fetch control key: 404 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0002] 2024/06/08 12:38:50 control: authRoutine: [v1] backoff: 22 msec 
DEBU[0002] 2024/06/08 12:38:50 Received error: fetch control key: 404 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0002] 2024/06/08 12:38:50 control: LoginInteractive -> regen=true 
DEBU[0002] 2024/06/08 12:38:50 control: doLogin(regen=true, hasUrl=false) 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] TryLogin: fetch control key: 404 
DEBU[0002] 2024/06/08 12:38:50 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0002] 2024/06/08 12:38:50 control: authRoutine: [v1] backoff: 131 msec 
DEBU[0002] 2024/06/08 12:38:50 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:38:50 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:38:50 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:38:50 control: authRoutine: [v1] backoff: 190 msec 
DEBU[0003] 2024/06/08 12:38:50 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:38:50 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:38:50 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:38:50 control: authRoutine: [v1] backoff: 202 msec 
DEBU[0003] 2024/06/08 12:38:50 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:38:50 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:38:50 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] Failed to connect to headscale frpc: control is not running 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:50 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:38:50 control: authRoutine: [v1] backoff: 302 msec 
DEBU[0003] 2024/06/08 12:38:50 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:51 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:38:51 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:38:51 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:38:51 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:38:51 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:38:51 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:38:51 control: authRoutine: [v1] backoff: 448 msec 
DEBU[0003] 2024/06/08 12:38:51 Received error: fetch control key: 404 
DEBU[0004] 2024/06/08 12:38:51 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0004] 2024/06/08 12:38:51 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0004] 2024/06/08 12:38:51 control: LoginInteractive -> regen=true 
DEBU[0004] 2024/06/08 12:38:51 control: doLogin(regen=true, hasUrl=false) 
DEBU[0004] 2024/06/08 12:38:51 control: [v1] TryLogin: fetch control key: 404 
DEBU[0004] 2024/06/08 12:38:51 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0004] 2024/06/08 12:38:51 control: authRoutine: [v1] backoff: 718 msec 
DEBU[0004] 2024/06/08 12:38:51 Received error: fetch control key: 404 
DEBU[0005] 2024/06/08 12:38:52 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0005] 2024/06/08 12:38:52 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0005] 2024/06/08 12:38:52 control: LoginInteractive -> regen=true 
DEBU[0005] 2024/06/08 12:38:52 control: doLogin(regen=true, hasUrl=false) 
DEBU[0005] 2024/06/08 12:38:52 control: [v1] TryLogin: fetch control key: 404 
DEBU[0005] 2024/06/08 12:38:52 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0005] 2024/06/08 12:38:52 control: authRoutine: [v1] backoff: 564 msec 
DEBU[0005] 2024/06/08 12:38:52 Received error: fetch control key: 404 
DEBU[0005] Failed to connect to headscale frpc: control is not running 
DEBU[0005] 2024/06/08 12:38:53 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0005] 2024/06/08 12:38:53 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0005] 2024/06/08 12:38:53 control: LoginInteractive -> regen=true 
DEBU[0005] 2024/06/08 12:38:53 control: doLogin(regen=true, hasUrl=false) 
DEBU[0005] 2024/06/08 12:38:53 control: [v1] TryLogin: fetch control key: 404 
DEBU[0005] 2024/06/08 12:38:53 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0005] 2024/06/08 12:38:53 control: authRoutine: [v1] backoff: 1269 msec 
DEBU[0005] 2024/06/08 12:38:53 Received error: fetch control key: 404 
DEBU[0006] 2024/06/08 12:38:54 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0006] 2024/06/08 12:38:54 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0006] 2024/06/08 12:38:54 control: LoginInteractive -> regen=true 
DEBU[0006] 2024/06/08 12:38:54 control: doLogin(regen=true, hasUrl=false) 
DEBU[0007] 2024/06/08 12:38:54 control: [v1] TryLogin: fetch control key: 404 
DEBU[0007] 2024/06/08 12:38:54 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0007] 2024/06/08 12:38:54 control: authRoutine: [v1] backoff: 917 msec 
DEBU[0007] 2024/06/08 12:38:54 Received error: fetch control key: 404 
DEBU[0007] Failed to connect to headscale frpc: control is not running 
DEBU[0007] 2024/06/08 12:38:55 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0007] 2024/06/08 12:38:55 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0007] 2024/06/08 12:38:55 control: LoginInteractive -> regen=true 
DEBU[0007] 2024/06/08 12:38:55 control: doLogin(regen=true, hasUrl=false) 
DEBU[0007] 2024/06/08 12:38:55 control: [v1] TryLogin: fetch control key: 404 
DEBU[0007] 2024/06/08 12:38:55 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0007] 2024/06/08 12:38:55 control: authRoutine: [v1] backoff: 1262 msec 
DEBU[0007] 2024/06/08 12:38:55 Received error: fetch control key: 404 
DEBU[0009] 2024/06/08 12:38:56 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0009] 2024/06/08 12:38:56 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0009] 2024/06/08 12:38:56 control: LoginInteractive -> regen=true 
DEBU[0009] 2024/06/08 12:38:56 control: doLogin(regen=true, hasUrl=false) 
DEBU[0009] 2024/06/08 12:38:56 control: [v1] TryLogin: fetch control key: 404 
DEBU[0009] 2024/06/08 12:38:56 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0009] 2024/06/08 12:38:56 control: authRoutine: [v1] backoff: 1878 msec 
DEBU[0009] 2024/06/08 12:38:56 Received error: fetch control key: 404 
DEBU[0009] Failed to connect to headscale frpc: control is not running 
DEBU[0011] 2024/06/08 12:38:58 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0011] 2024/06/08 12:38:58 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0011] 2024/06/08 12:38:58 control: LoginInteractive -> regen=true 
DEBU[0011] 2024/06/08 12:38:58 control: doLogin(regen=true, hasUrl=false) 
DEBU[0011] 2024/06/08 12:38:58 control: [v1] TryLogin: fetch control key: 404 
DEBU[0011] 2024/06/08 12:38:58 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0011] 2024/06/08 12:38:58 control: authRoutine: [v1] backoff: 1736 msec 
DEBU[0011] 2024/06/08 12:38:58 Received error: fetch control key: 404 
FATA[0011] control is not running

@Tpuljak
Copy link
Member

Tpuljak commented Jun 8, 2024

@kabir-baba seems the issue is that the Headscale (Tailscale) server can not start and connect properly.

Most of the time, this means that you either have a firewall that's blocking it or your Wifi router is blocking connections to our FRP (reverse proxy) server.

Can you check if you have firewalls enabled that might be blocking this?

@kabir-baba
Copy link
Author

@Tpuljak disabled firewall , still the same

cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo ufw disable
Firewall stopped and disabled on system startup
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ 
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ ufw status
ERROR: You need to be root to run this script
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo ufw status
Status: inactive
cloud_user@0cbd489f7a454f2db58e04c07e4830b71c:~$ sudo LOG_LEVEL=debug daytona serve
DEBU[0000] Opening db at /root/.config/daytona/db       
INFO[0000] Starting Daytona server                      
INFO[0000] Starting local container registry            
Image already pulled
DEBU[0002] Failed to connect to headscale frpc: control is not running 
DEBU[0002] 2024-06-08T12:48:23Z DBG opening database connection=/root/.config/daytona/server/headscale/headscale.db type=sqlite3 
DEBU[0002] 2024-06-08T12:48:23Z WRN DERP map is empty, not a single DERP map datasource was loaded correctly or contained a region 
DEBU[0002] 2024-06-08T12:48:23Z INF ../runner/go/pkg/mod/github.com/juanfont/[email protected]/hscontrol/derp/server/derp_server.go:103 > DERP region: {RegionID:999 RegionCode:local RegionName:Daytona embedded DERP Avoid:false Nodes:[0xc0006e2120]} 
DEBU[0002] 2024-06-08T12:48:23Z INF ../runner/go/pkg/mod/github.com/juanfont/[email protected]/hscontrol/derp/server/derp_server.go:104 > DERP Nodes[0]: &{Name:999 RegionID:999 HostName:ea785c39-295e-4f0d-8eac-1c2405a6a3df.try-us.daytona.app CertName: IPv4: IPv6: STUNPort:3478 STUNOnly:false DERPPort:443 InsecureForTests:false STUNTestIP: CanPort80:false} 
DEBU[0002] 2024-06-08T12:48:23Z INF STUN server started at [::]:3478 
DEBU[0002] 2024-06-08T12:48:23Z INF Setting up a DERPMap update worker frequency=86400000 
DEBU[0002] 2024-06-08T12:48:23Z WRN Listening without TLS but ServerURL does not start with http:// 
DEBU[0002] 2024-06-08T12:48:23Z INF listening and serving HTTP on: 127.0.0.1:3987 
DEBU[0002] 2024-06-08T12:48:23Z INF listening and serving metrics on:  
DEBU[0003] Creating headscale user                      
DEBU[0003] User already exists                          
DEBU[0003] Creating headscale auth key                  
DEBU[0003] Headscale auth key created                   
DEBU[0003] 2024/06/08 12:48:24 [v1] using fake (no-op) tun device 
DEBU[0003] 2024/06/08 12:48:24 [v1] using fake (no-op) OS network configurator 
DEBU[0003] 2024/06/08 12:48:24 [v1] using fake (no-op) DNS configurator 
DEBU[0003] 2024/06/08 12:48:24 dns: using dns.noopManager 
DEBU[0003] 2024/06/08 12:48:24 link state: interfaces.State{defaultRoute=ens5 ifs={br-0f0b58a90c90:[172.18.0.1/16 fc00:f853:ccd:e793::1/64 llu6 llu6] docker0:[172.17.0.1/16 llu6] ens5:[172.31.20.55/20 2600:1f1c:2bf:6405:4dca:faba:6456:1920/128 llu6]} v4=true v6=true} 
DEBU[0003] 2024/06/08 12:48:24 onPortUpdate(port=39677, network=udp6) 
DEBU[0003] 2024/06/08 12:48:24 [v1] warning: fakeRouter.UpdateMagicsockPort: not implemented. 
DEBU[0003] 2024/06/08 12:48:24 onPortUpdate(port=35028, network=udp4) 
DEBU[0003] 2024/06/08 12:48:24 [v1] warning: fakeRouter.UpdateMagicsockPort: not implemented. 
DEBU[0003] 2024/06/08 12:48:24 [v1] magicsock: peermtu: peer MTU status is false 
DEBU[0003] 2024/06/08 12:48:24 [v1] using BPF disco receiver for IPv4 
DEBU[0003] 2024/06/08 12:48:24 [v1] using BPF disco receiver for IPv6 
DEBU[0003] 2024/06/08 12:48:24 magicsock: disco key = d:17690707fda0de88 
DEBU[0003] 2024/06/08 12:48:24 Creating WireGuard device... 
DEBU[0003] 2024/06/08 12:48:24 Bringing WireGuard device up... 
DEBU[0003] 2024/06/08 12:48:24 wg: [v2] UDP bind has been updated 
DEBU[0003] 2024/06/08 12:48:24 wg: [v2] Interface state was Down, requested Up, now Up 
DEBU[0003] 2024/06/08 12:48:24 Bringing router up...    
DEBU[0003] 2024/06/08 12:48:24 [v1] warning: fakeRouter.Up: not implemented. 
DEBU[0003] 2024/06/08 12:48:24 Clearing router settings... 
DEBU[0003] 2024/06/08 12:48:24 [v1] warning: fakeRouter.Set: not implemented. 
DEBU[0003] 2024/06/08 12:48:24 Starting network monitor... 
DEBU[0003] 2024/06/08 12:48:24 Engine created.          
DEBU[0003] 2024/06/08 12:48:24 tsnet running state path /root/.config/tsnet-daytona/tailscaled.state 
DEBU[0003] 2024/06/08 12:48:24 pm: migrating "_daemon" profile to new format 
DEBU[0003] 2024/06/08 12:48:24 logpolicy: using system state directory "/var/lib/tailscale" 
DEBU[0003] 2024/06/08 12:48:24 [v1] netmap packet filter: (not ready yet) 
DEBU[0003] 2024/06/08 12:48:24 tsnet starting with hostname "server", varRoot "/root/.config/tsnet-daytona" 
DEBU[0003] 2024/06/08 12:48:24 Start                    
DEBU[0003] 2024/06/08 12:48:24 wg: [v2] Routine: receive incoming mkReceiveFunc - started 
DEBU[0003] 2024/06/08 12:48:24 wg: [v2] Routine: receive incoming receiveDERP - started 
DEBU[0003] 2024/06/08 12:48:24 wg: [v2] Routine: receive incoming mkReceiveFunc - started 
DEBU[0003] 2024/06/08 12:48:24 [vJSON]1{"Hostinfo":{"IPNVersion":"1.58.2-ERR-BuildInfo","BackendLogID":"98f903a86ce58f98c9e8be9b4277bfe82ef76b4e7ea7649f52ef47176d898889","OS":"linux","OSVersion":"6.5.0-1020-aws","Container":false,"Distro":"ubuntu","DistroVersion":"22.04","DistroCodeName":"jammy","Desktop":false,"Package":"tsnet","Hostname":"0cbd489f7a454f2db58e04c07e4830b71c","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.22.2","Cloud":"aws","Userspace":true,"UserspaceRouter":true,"AppConnector":false}} 
DEBU[0003] 2024/06/08 12:48:24 [v1] netmap packet filter: (not ready yet) 
DEBU[0003] 2024/06/08 12:48:24 [v1] got initial portlist info in 34ms 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] HostInfo: {"IPNVersion":"1.58.2-ERR-BuildInfo","BackendLogID":"98f903a86ce58f98c9e8be9b4277bfe82ef76b4e7ea7649f52ef47176d898889","OS":"linux","OSVersion":"6.5.0-1020-aws","Container":false,"Distro":"ubuntu","DistroVersion":"22.04","DistroCodeName":"jammy","Desktop":false,"Package":"tsnet","Hostname":"server","Machine":"x86_64","GoArch":"amd64","GoArchVar":"v1","GoVersion":"go1.22.2","Services":[{"Proto":"tcp","Port":22,"Description":"eic_run_authorized_keys"},{"Proto":"tcp","Port":53,"Description":"systemd-resolved"},{"Proto":"tcp","Port":3988,"Description":"docker-proxy"},{"Proto":"tcp","Port":31297,"Description":"node"},{"Proto":"tcp","Port":35271,"Description":"daytona"}],"Cloud":"aws","Userspace":true,"UserspaceRouter":true,"AppConnector":false} 
DEBU[0003] 2024/06/08 12:48:24 Backend: logs: be:98f903a86ce58f98c9e8be9b4277bfe82ef76b4e7ea7649f52ef47176d898889 fe: 
DEBU[0003] 2024/06/08 12:48:24 Switching ipn state NoState -> NeedsLogin (WantRunning=true, nm=false) 
DEBU[0003] 2024/06/08 12:48:24 blockEngineUpdates(true) 
DEBU[0003] 2024/06/08 12:48:24 [v1] magicsock: peermtu: peer MTU status is false 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] mapRoutine: state:new 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] authRoutine: state:new; goal=nil paused=false 
DEBU[0003] 2024/06/08 12:48:24 wgengine: Reconfig: configuring userspace WireGuard config (with 0/0 peers) 
DEBU[0003] 2024/06/08 12:48:24 health("overall"): error: not in map poll 
DEBU[0003] 2024/06/08 12:48:24 wgengine: Reconfig: configuring router 
DEBU[0003] 2024/06/08 12:48:24 [v1] warning: fakeRouter.Set: not implemented. 
DEBU[0003] 2024/06/08 12:48:24 wgengine: Reconfig: configuring DNS 
DEBU[0003] 2024/06/08 12:48:24 dns: Set: {DefaultResolvers:[] Routes:{} SearchDomains:[] Hosts:0} 
DEBU[0003] 2024/06/08 12:48:24 dns: Resolvercfg: {Routes:{} Hosts:0 LocalDomains:[], cloud="aws"} 
DEBU[0003] 2024/06/08 12:48:24 dns: OScfg: {}           
DEBU[0003] 2024/06/08 12:48:24 [v1] wgengine: Reconfig done 
DEBU[0003] 2024/06/08 12:48:24 LocalBackend state is NeedsLogin; running StartLoginInteractive... 
DEBU[0003] 2024/06/08 12:48:24 StartLoginInteractive: url=false 
DEBU[0003] 2024/06/08 12:48:24 control: client.Login(false, 10) 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] mapRoutine: context done. 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] mapRoutine: state:new 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] authRoutine: context done. 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] authRoutine: state:new; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:48:24 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:48:24 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:48:24 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:48:25 control: authRoutine: [v1] backoff: 8 msec 
DEBU[0003] 2024/06/08 12:48:25 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:48:25 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:48:25 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:48:25 control: authRoutine: [v1] backoff: 53 msec 
DEBU[0003] 2024/06/08 12:48:25 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:48:25 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:48:25 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:48:25 control: authRoutine: [v1] backoff: 46 msec 
DEBU[0003] 2024/06/08 12:48:25 Received error: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0003] 2024/06/08 12:48:25 control: LoginInteractive -> regen=true 
DEBU[0003] 2024/06/08 12:48:25 control: doLogin(regen=true, hasUrl=false) 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] TryLogin: fetch control key: 404 
DEBU[0003] 2024/06/08 12:48:25 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0003] 2024/06/08 12:48:25 control: authRoutine: [v1] backoff: 203 msec 
DEBU[0003] 2024/06/08 12:48:25 Received error: fetch control key: 404 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0004] 2024/06/08 12:48:25 control: LoginInteractive -> regen=true 
DEBU[0004] 2024/06/08 12:48:25 control: doLogin(regen=true, hasUrl=false) 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] TryLogin: fetch control key: 404 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0004] 2024/06/08 12:48:25 control: authRoutine: [v1] backoff: 270 msec 
DEBU[0004] 2024/06/08 12:48:25 Received error: fetch control key: 404 
DEBU[0004] Failed to connect to headscale frpc: control is not running 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0004] 2024/06/08 12:48:25 control: LoginInteractive -> regen=true 
DEBU[0004] 2024/06/08 12:48:25 control: doLogin(regen=true, hasUrl=false) 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] TryLogin: fetch control key: 404 
DEBU[0004] 2024/06/08 12:48:25 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0004] 2024/06/08 12:48:25 control: authRoutine: [v1] backoff: 441 msec 
DEBU[0004] 2024/06/08 12:48:25 Received error: fetch control key: 404 
DEBU[0004] 2024/06/08 12:48:26 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0004] 2024/06/08 12:48:26 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0004] 2024/06/08 12:48:26 control: LoginInteractive -> regen=true 
DEBU[0004] 2024/06/08 12:48:26 control: doLogin(regen=true, hasUrl=false) 
DEBU[0004] 2024/06/08 12:48:26 control: [v1] TryLogin: fetch control key: 404 
DEBU[0004] 2024/06/08 12:48:26 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0004] 2024/06/08 12:48:26 control: authRoutine: [v1] backoff: 588 msec 
DEBU[0004] 2024/06/08 12:48:26 Received error: fetch control key: 404 
DEBU[0005] 2024/06/08 12:48:26 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0005] 2024/06/08 12:48:26 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0005] 2024/06/08 12:48:26 control: LoginInteractive -> regen=true 
DEBU[0005] 2024/06/08 12:48:26 control: doLogin(regen=true, hasUrl=false) 
DEBU[0005] 2024/06/08 12:48:26 control: [v1] TryLogin: fetch control key: 404 
DEBU[0005] 2024/06/08 12:48:26 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0005] 2024/06/08 12:48:26 control: authRoutine: [v1] backoff: 743 msec 
DEBU[0005] 2024/06/08 12:48:26 Received error: fetch control key: 404 
DEBU[0006] 2024/06/08 12:48:27 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0006] 2024/06/08 12:48:27 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0006] 2024/06/08 12:48:27 control: LoginInteractive -> regen=true 
DEBU[0006] 2024/06/08 12:48:27 control: doLogin(regen=true, hasUrl=false) 
DEBU[0006] 2024/06/08 12:48:27 control: [v1] TryLogin: fetch control key: 404 
DEBU[0006] 2024/06/08 12:48:27 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0006] 2024/06/08 12:48:27 control: authRoutine: [v1] backoff: 418 msec 
DEBU[0006] 2024/06/08 12:48:27 Received error: fetch control key: 404 
DEBU[0006] Failed to connect to headscale frpc: control is not running 
DEBU[0006] 2024/06/08 12:48:28 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0006] 2024/06/08 12:48:28 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0006] 2024/06/08 12:48:28 control: LoginInteractive -> regen=true 
DEBU[0006] 2024/06/08 12:48:28 control: doLogin(regen=true, hasUrl=false) 
DEBU[0006] 2024/06/08 12:48:28 control: [v1] TryLogin: fetch control key: 404 
DEBU[0006] 2024/06/08 12:48:28 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0006] 2024/06/08 12:48:28 control: authRoutine: [v1] backoff: 1201 msec 
DEBU[0006] 2024/06/08 12:48:28 Received error: fetch control key: 404 
DEBU[0008] 2024/06/08 12:48:29 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0008] 2024/06/08 12:48:29 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0008] 2024/06/08 12:48:29 control: LoginInteractive -> regen=true 
DEBU[0008] 2024/06/08 12:48:29 control: doLogin(regen=true, hasUrl=false) 
DEBU[0008] 2024/06/08 12:48:29 control: [v1] TryLogin: fetch control key: 404 
DEBU[0008] 2024/06/08 12:48:29 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0008] 2024/06/08 12:48:29 control: authRoutine: [v1] backoff: 1608 msec 
DEBU[0008] 2024/06/08 12:48:29 Received error: fetch control key: 404 
DEBU[0008] Failed to connect to headscale frpc: control is not running 
DEBU[0009] 2024/06/08 12:48:31 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0009] 2024/06/08 12:48:31 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0009] 2024/06/08 12:48:31 control: LoginInteractive -> regen=true 
DEBU[0009] 2024/06/08 12:48:31 control: doLogin(regen=true, hasUrl=false) 
DEBU[0009] 2024/06/08 12:48:31 control: [v1] TryLogin: fetch control key: 404 
DEBU[0009] 2024/06/08 12:48:31 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0009] 2024/06/08 12:48:31 control: authRoutine: [v1] backoff: 1467 msec 
DEBU[0009] 2024/06/08 12:48:31 Received error: fetch control key: 404 
DEBU[0010] Failed to connect to headscale frpc: control is not running 
DEBU[0011] 2024/06/08 12:48:32 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0011] 2024/06/08 12:48:32 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0011] 2024/06/08 12:48:32 control: LoginInteractive -> regen=true 
DEBU[0011] 2024/06/08 12:48:32 control: doLogin(regen=true, hasUrl=false) 
DEBU[0011] 2024/06/08 12:48:32 control: [v1] TryLogin: fetch control key: 404 
DEBU[0011] 2024/06/08 12:48:32 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0011] 2024/06/08 12:48:32 control: authRoutine: [v1] backoff: 972 msec 
DEBU[0011] 2024/06/08 12:48:32 Received error: fetch control key: 404 
DEBU[0012] 2024/06/08 12:48:33 control: [v1] authRoutine: state:authenticating; wantLoggedIn=true 
DEBU[0012] 2024/06/08 12:48:33 control: [v1] direct.TryLogin(token=false, flags=10) 
DEBU[0012] 2024/06/08 12:48:33 control: LoginInteractive -> regen=true 
DEBU[0012] 2024/06/08 12:48:33 control: doLogin(regen=true, hasUrl=false) 
DEBU[0012] 2024/06/08 12:48:33 control: [v1] TryLogin: fetch control key: 404 
DEBU[0012] 2024/06/08 12:48:33 control: [v1] sendStatus: authRoutine-report: state:authenticating 
DEBU[0012] 2024/06/08 12:48:33 control: authRoutine: [v1] backoff: 1431 msec 
DEBU[0012] 2024/06/08 12:48:33 Received error: fetch control key: 404 
FATA[0012] control is not running  

@Tpuljak
Copy link
Member

Tpuljak commented Jun 8, 2024

@kabir-baba okay, one potential problem eliminated 😄

Are you maybe using a VPN?

If not, is there a chance you can try another network? Asking because we had a situation when a conferences WiFi connection was blocking reverse proxies.

@kabir-baba
Copy link
Author

@Tpuljak , but thats so strange , everytime I connect laptop to different WiFi networks , always there will be an issue with daytona

What could be the workaround as checking reverse proxy rules in very network is a thing ....hope u understand :)

Also can you explain why there is a dependency on FRP ?

@Tpuljak
Copy link
Member

Tpuljak commented Jun 8, 2024

@kabir-baba I understand your point and we're still exploring ways of detecting these specific networking errors and providing workarounds.

The FRP connection is required to allow workspaces to communicate with the Daytona Server and register on its Tailscale network. Additionally, it allows you to configure remote profiles (with daytona profile new) to server not running on your machine.

We have #625 opened which will tackle removing the strict dependency to FRP and allow users to directly communicate with the Server via its IP address.

In the meantime, the best thing I could suggest is that, if possible, you run Daytona on a remote machine that is inside a network that allows reverse proxies, you create a new api key with daytona api-key new and paste the outputted command into your local daytona CLI.

@daytonaBot
Copy link
Collaborator

This Issue has been automatically marked as "stale" because it has not had recent activity (for 14 days). It will be closed if no further activity occurs. Thanks for the feedback.

@Tpuljak Tpuljak added never stale An issue that never goes stale and removed Stale labels Jun 23, 2024
@Tpuljak Tpuljak self-assigned this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working never stale An issue that never goes stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants