coder / sail

Deprecated: Instant, pre-configured VS Code development environments.
https://sail.dev
MIT License
629 stars 36 forks source link

cd'ing to the project directory causes sail to fail #180

Open sr229 opened 5 years ago

sr229 commented 5 years ago

I'm building a Katacoda interactive tutorial for Sail however, I encountered a strange bug where:

2019-05-23 14:49:25 INFO        writing sail proxy logs to /tmp/sailproxy_ClarityCafe_Sagiri480131494
2019-05-23 14:49:46 INFO        loaded code-server in 21.178520957s
2019-05-23 14:49:46 ERROR       failed to wait for project to be online: container ClarityCafe_Sagiri not running
+ cd /home/user/Sagiri
bash: line 1: cd: /home/user/Sagiri: Permission denied
2019-05-23 14:49:46 ERROR       build run failed: container ClarityCafe_Sagiri not running

This might be related to #176, and #48

sr229 commented 5 years ago

For complete assurance of reproduction, use the official Ubuntu Playground by Katacoda.

nathanpotter commented 5 years ago

What does id show for you? Seems like this may be related to #52

sr229 commented 5 years ago

@nathanpotter for Katacoda, its UID/GID 0

teddy-codes commented 5 years ago

It looks like it was not running chown... Can you try with a newer release?

Edit: Realized that this was not fixed. Should I draft a change for this?

sr229 commented 5 years ago

Feel free to @roberthmiller, this will help us reach a greater audience if we can get this to work right now.

tony-engineering commented 5 years ago

I am having the same issue. Is this going to be fixed in a future release ? Or can I use a workaround ?

tony-engineering commented 5 years ago

I found the problem that caused this error on my side: I inadvertently installed docker and/or sail with root user. So I uninstalled and reinstalled with the correct user. Now it works fine.