Skip to content

Daytona server - control is not running  #664

Closed
@kabir-baba

Description

@kabir-baba

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnever staleAn issue that never goes stale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions