daytona icon indicating copy to clipboard operation
daytona copied to clipboard

Daytona executable binary being removed after use

Open eschabell opened this issue 11 months ago • 2 comments

Describe the bug Was trying to play with this on my M2 and got this weird behavior:

  1. curl https://download.daytona.io/daytona/get-server.sh | bash

Results: daytona executable in my $HOME/bin directory.

  1. run in a console "daytona server" and it starts fine, but the executable is now gone.

  2. download a new one and if the server is running it's removed right away.

  3. If I stop the server, run the get-server.sh and install a new executable in the $HOME/bin and run a "./daytona help" it displays the help command and removes the executable... weird right???

Looks like running the executable results in removal of that file.

To Reproduce See above.

Expected behavior Would not expect the installed binary to be deleted every time trying to use it?

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Macbook M2
  • Browser: N/A
  • Daytona Version: current

Additional context Add any other context about the problem here.

eschabell avatar Mar 11 '24 19:03 eschabell

Hi @eschabell! Thanks for trying it out 😄

Also I couldn't reproduce this. The only way binary would be removed, actually not removed but overwritten is if you run the script again and it installs the binary on the same path.

Just to check could you try manually:

curl -sf -L https://download.daytona.io/daytona/latest/daytona-darwin-arm64 -o $HOME/bin/daytona
chmod +x $HOME/bin/daytona

Also you can open Finder on that path and monitor when and if daytona file would be removed. Maybe some security setting?

zzorica avatar Mar 11 '24 20:03 zzorica

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.

daytonaBot avatar Mar 26 '24 01:03 daytonaBot

Due to the lack of activity in the last 7 days since it was marked as "stale", we are closing this Issue. Do not hesitate to reopen it later if necessary.

daytonaBot avatar Apr 27 '24 01:04 daytonaBot