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

symlink Protocol Error #79

Open
Jerome-Fraissinet opened this issue Jul 25, 2018 · 1 comment
Open

symlink Protocol Error #79

Jerome-Fraissinet opened this issue Jul 25, 2018 · 1 comment

Comments

@Jerome-Fraissinet
Copy link

My VBox is in windows 10 and I got this error
Cannot create a symlink for "/vagrant/data/magento2/app/design/frontend/Magento/luma/web/images/logo.svg" and place it to "/vagrant/data/magento2/pub/static/frontend/Magento/luma/en_US/images/logo.svg" Warning!symlink(): Protocol error

do you have some idea ?
I already add on Vagrantfile
vb.customize ['setextradata', :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant", '1']

@purnesh42H
Copy link

The error sometimes return after you shutdown the VM and restart or still persists even after having above. Basically you need to again tell VirtualBox to enable symlinks. Here's the complete solution

Obviously have this in your vagrant file, as suggested above

config.vm.provider "virtualbox" do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/Folder_Name", "1"]
end

I recommended comment out any sync folder and let default ./(at host) synced at /vagrant(at guest). This will make sure your shared folder(Folder_Name) name is always vagrant as mentioned here https://www.vagrantup.com/docs/synced-folders/. Also, you won't face issues with ssh

If the symlink protocol error returns after restart or still persists run

VBoxManage setextradata "VM_Name" VBoxInternal2/SharedFoldersEnableSymlinksCreate/Folder_Name 1

vagrant halt
vagrant up

vagrant ssh

Usually, VBoxManagee is located at C:\Program Files\Oracle\VirtualBox\

Verify working of symlink by going to /vagrant and running

touch test.txt && ln -s test.txt test1.txt

PS: I have tried this on Windows Home which has limited accessibility to security settings

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

No branches or pull requests

2 participants