-
Notifications
You must be signed in to change notification settings - Fork 507
Closed
Description
- Sail Version: 1.4.9
- Laravel Version: 8.33.1
- PHP Version: 8.0
- Database Driver & Version: MySQL 8.0.23-1debian10
Description:
Unable to write to storage folder.
Steps To Reproduce:
I have installed Sail into an existing Laravel 8 application as per the installation guide. The container and associated services come up and yield no errors.
When I attempt to access the application from the browser, the exception mentioned above shows up.
Normally, all you need to do is chmod
and/or chown
the /storage/ folder in order for Laravel to run.
When I try to publish the Dockerfiles (in order to attempt to set permissions), I get this other exception:
./vendor/bin/sail artisan sail:publish -vvv
League\Flysystem\Exception
Impossible to create the root directory "/var/www/html/docker/7.4".
at vendor/league/flysystem/src/Adapter/Local.php:112
108▕ clearstatcache(false, $root);
109▕
110▕ if ( ! is_dir($root)) {
111▕ $errorMessage = isset($mkdirError['message']) ? $mkdirError['message'] : '';
➜ 112▕ throw new Exception(sprintf('Impossible to create the root directory "%s". %s', $root, $errorMessage));
113▕ }
114▕ }
115▕ }
116▕
1 vendor/league/flysystem/src/Adapter/Local.php:133
League\Flysystem\Adapter\Local::ensureDirectory()
2 vendor/league/flysystem/src/Filesystem.php:102
League\Flysystem\Adapter\Local::write()
3 vendor/league/flysystem/src/MountManager.php:597
League\Flysystem\Filesystem::put()
4 vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:254
League\Flysystem\MountManager::put()
5 vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:238
Illuminate\Foundation\Console\VendorPublishCommand::moveManagedFiles()
6 vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:203
Illuminate\Foundation\Console\VendorPublishCommand::publishDirectory()
7 vendor/laravel/framework/src/Illuminate/Foundation/Console/VendorPublishCommand.php:166
Illuminate\Foundation\Console\VendorPublishCommand::publishItem()
(...)
mreduar
Metadata
Metadata
Assignees
Labels
No labels