daytonaio / daytona

The Open Source Dev Environment Manager.
https://daytona.io
Apache License 2.0
8.01k stars 770 forks source link

[Windows] Unable to create workspace for repos containing .devcontainer #736

Open anuragkainth opened 2 months ago

anuragkainth commented 2 months ago

Describe the bug On creation of Daytona workspace for repos containing .devcontainer, giving: "failed to create workspace: container exited with status 2"

To Reproduce Steps to reproduce the behavior:

  1. Create a workspace using daytona create command.
  2. Enter repo containing .devcontainer, example: https://github.com/daytonaio/daytona
  3. See error

Screenshots image

Desktop (please complete the following information):

Additional context Workspace getting created successfully for repos not having .devcontainer file.

lbrecic commented 1 month ago

/bounty $30

algora-pbc[bot] commented 1 month ago

💎 $60 bounty • Daytona

Steps to solve:

  1. Start working: Comment /attempt #736 with your implementation plan
  2. Submit work: Create a pull request including /claim #736 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.

Please respect others by working on PRs that you are allowed to submit attempts to.

e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.

If you can not submit an attempt, you will not receive your payout.

Thank you for contributing to daytonaio/daytona!

Add a bounty • Share on socials

RS-labhub commented 1 month ago

This is working fine for me on Ubuntu and Linux (used codespaces and gitpod). I'm not able to run it locally on my windows due to insufficient space. Though I guess removing the devcontainer flags from the https://github.com/daytonaio/daytona/blob/main/pkg/cmd/workspace/create.go will work! If you allow me, I can open a PR, but w/o testing. 🙂

idagelic commented 1 month ago

@RS-labhub Not sure I understood you correctly, are you proposing solving this by not using a devcontainer at all? That is not a viable option, also opening a PR without making sure it works by testing cannot be accepted

RS-labhub commented 1 month ago

@RS-labhub Not sure I understood you correctly, are you proposing solving this by not using a devcontainer at all? That is not a viable option, also opening a PR without making sure it works by testing cannot be accepted

That's what the problem. My PC doesn't have space, even if I clean it thoroughly, it won't fulfil the min. requirements.

btw I thought, you guys are on holiday as it's a weekend 🙂