Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

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

Open
sr229 opened this issue May 23, 2019 · 7 comments
Open

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

sr229 opened this issue May 23, 2019 · 7 comments

Comments

@sr229
Copy link

sr229 commented May 23, 2019

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
Copy link
Author

sr229 commented May 23, 2019

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

@nathanpotter
Copy link
Contributor

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

@sr229
Copy link
Author

sr229 commented May 23, 2019

@nathanpotter for Katacoda, its UID/GID 0

@teddy-codes
Copy link
Contributor

teddy-codes commented May 23, 2019

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
Copy link
Author

sr229 commented May 24, 2019

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

@tony-engineering
Copy link

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

@tony-engineering
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants