sail icon indicating copy to clipboard operation
sail copied to clipboard

cd'ing to the project directory causes sail to fail

Open sr229 opened this issue 6 years ago • 7 comments

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

  • cd'ing to the directory causes a permission denied error, causing the command to fail
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 avatar May 23 '19 14:05 sr229

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

sr229 avatar May 23 '19 14:05 sr229

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

nathanpotter avatar May 23 '19 15:05 nathanpotter

@nathanpotter for Katacoda, its UID/GID 0

sr229 avatar May 23 '19 15:05 sr229

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?

teddy-codes avatar May 23 '19 18:05 teddy-codes

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

sr229 avatar May 24 '19 01:05 sr229

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

tony-engineering avatar Aug 10 '19 06:08 tony-engineering

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.

tony-engineering avatar Aug 11 '19 13:08 tony-engineering