Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbolic links don't work in Mounted Host Folders #890

Closed
tslater opened this issue Dec 5, 2016 · 13 comments
Closed

Symbolic links don't work in Mounted Host Folders #890

tslater opened this issue Dec 5, 2016 · 13 comments
Labels
co/xhyve kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/macos

Comments

@tslater
Copy link

tslater commented Dec 5, 2016

Minikube version: v0.12.2

Environment:

  • OS : MacOS v10.12.1
  • VM Driver: xhyve
  • Docker version (e.g. docker -v): Docker version 1.12.2
  • Install tools: brew

What happened:
I received an error "ln: symlinktestfilelinked.txt: Operation not permitted"

What you expected to happen:
Create a successful symbolic link

How to reproduce it (as minimally and precisely as possible):

minikube ssh
cd /Users/your-user-dir
touch symlinktestfilesource.txt
ln -s symlinktestfilesource.txt symlinktestfilelinked.txt 

Anything else do we need to know:
This is important to me because I try and do things like npm install inside the container (for local development), and I'll get errors about it not being able to make symbolic links.

@r2d4 r2d4 added co/xhyve kind/bug Categorizes issue or PR as related to a bug. os/macos labels Dec 5, 2016
@iameli
Copy link

iameli commented Feb 26, 2017

Anyone have any ideas for this? This blocks the xhyve driver for our use case, which is a shame 'cause it's otherwise so much faster. I'd love to spend some time digging into it, but I have no idea where to start.

@SpencerMalone
Copy link

Any updates? I did note that this is the case for the default more custom configured /Users folder, as well as folders mounted with minikube mount

@SpencerMalone
Copy link

SpencerMalone commented May 30, 2017

Interestingly, with the virtualbox driver, the following behavour is exhibited:

  • When looking in the default /Users folder on a mac, symbolic links work

  • If you mount a directory using minikube mount, the symbolic links will NOT work

ex:

$ cd /mnt/web/_domains/login/
$ ls -l
total 7
<redacted>
-rwxr-xr-x 1 4294967294 4294967294  13 Aug  1  2016 _cache
<redacted>
$ cd  Users/<redacted>/web/_domains/login/
$ ls -l
total 48
lrwxr-xr-x 1 docker docker  13 Aug  1  2016 _cache -> ../../_cache/

EDIT: Guess that makes sense, looking at it. One is a shared folder on the VM, the other is a mount using 9p like with xhyve. Is this a limitation with 9p?

@gh-aw
Copy link

gh-aw commented Aug 31, 2017

I too am running in to this issue in the same environment as above. Any word on this?

@scheler
Copy link

scheler commented Oct 3, 2017

+1

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 7, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 10, 2018
@iameli
Copy link

iameli commented Feb 12, 2018

FWIW this issue moved our team from minikube to Kubernetes for Docker for Mac, which is working fine

@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@jpswade
Copy link

jpswade commented Aug 8, 2018

This is still an issue with minikube.

oot@deca1a6f4779:/usr/src/test# touch test
root@deca1a6f4779:/usr/src/test# ln -s test test1
ln: failed to create symbolic link 'test1': Operation not permitted

@jpswade
Copy link

jpswade commented Aug 9, 2018

@iameli What was the fix? Could it be brought into minikube? Is minikube abandoned in favour of Docker for Mac?

@marxangels
Copy link

/reopen

@k8s-ci-robot
Copy link
Contributor

@toruksmakto: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/xhyve kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/macos
Projects
None yet
Development

No branches or pull requests

10 participants