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

php artisan storage:link fails #722

Closed
network211 opened this issue Feb 13, 2017 · 4 comments
Closed

php artisan storage:link fails #722

network211 opened this issue Feb 13, 2017 · 4 comments

Comments

@network211
Copy link

  • Laravel Version: 5.3.30
  • Voyager Version: 0.10.14
  • PHP Version: 7.1.0
  • Database Driver & Version: mysql version 14.14 distr 5.7.16

Description:

Getting the same error as in closed case #48

Generally the voyager admin panel works ok with a number (but not all) of broken images.

I am running the system on homestead. The storage folder has full 777 permissions

My app.php contains

 /*
    * Package Service Providers...
   */
   TCG\Voyager\VoyagerServiceProvider::class,
    Intervention\Image\ImageServiceProvider::class,

When I run

 php artisan storage:link -vvv

I get:

  [ErrorException]
  symlink(): Protocol error

Exception trace:
 () at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:217
 Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at n/a:n/a
 symlink() at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:217
 Illuminate\Filesystem\Filesystem->link() at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:34
 Illuminate\Foundation\Console\StorageLinkCommand->fire() at n/a:n/a
 call_user_func_array() at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Container/Container.php:508
 Illuminate\Container\Container->call() at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Console/Command.php:169
 Illuminate\Console\Command->execute() at /home/vagrant/Code/voyager/vendor/symfony/console/Command/Command.php:261
 Symfony\Component\Console\Command\Command->run() at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Console/Command.php:155
 Illuminate\Console\Command->run() at /home/vagrant/Code/voyager/vendor/symfony/console/Application.php:817
 Symfony\Component\Console\Application->doRunCommand() at /home/vagrant/Code/voyager/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at /home/vagrant/Code/voyager/vendor/symfony/console/Application.php:116
 Symfony\Component\Console\Application->run() at /home/vagrant/Code/voyager/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:121
 Illuminate\Foundation\Console\Kernel->handle() at /home/vagrant/Code/voyager/artisan:35

Steps To Reproduce:

@sarath-c-sandwich
Copy link

Do you use Window 10? or Linux?

@network211
Copy link
Author

I am running the app under Homestead. This is a special vagrant VM with Ubuntu 16.04 (https://laravel.com/docs/5.3/homestead).

It is running under Virtual box in windows 10

@network211
Copy link
Author

I have found the solution:
http://stackoverflow.com/questions/39496598/laravel-5-3-storagelink-symlink-protocol-error

I needed to restart my Homestead/Vagrant instance in a command window that has administrator basis:

@davidmaraba
Copy link

Check on filesystems.php

        'url' => env('APP_URL').'/storage',

Edit that part to point to the exact location of your images folder.

@thedevdojo thedevdojo locked as resolved and limited conversation to collaborators Jul 23, 2019
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

3 participants