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

error while starting in 10-storage.sh #13

Closed
Sythelux opened this issue Jan 11, 2025 · 2 comments
Closed

error while starting in 10-storage.sh #13

Sythelux opened this issue Jan 11, 2025 · 2 comments

Comments

@Sythelux
Copy link

Sythelux commented Jan 11, 2025

I just tried to update to the latest version (1.7.0)

and get the following error

web  | [entrypoint / 10-storage.sh] - πŸ‘· Running [cp --force --recursive storage.skel/. ./storage/] as [www-data]
web  | [entrypoint / 10-storage.sh] - βœ… OK!
web  | [entrypoint / 10-storage.sh] - πŸ‘· Running [php artisan storage:link] as [www-data]
web  | [entrypoint / 10-storage.sh] - (stderr) [2025-01-11 22:38:00] production.ERROR: Target [Laravel\Pulse\Contracts\ResolvesUsers] is not instantiable while building [App\Providers\AppServiceProvider]. {"exception":"[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Target [Laravel\Pulse\Contracts\ResolvesUsers] is not instantiable while building [App\Providers\AppServiceProvider]. at /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:1201)
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / 10-storage.sh] - (stderr) [stacktrace]
web  | [entrypoint / 10-storage.sh] - (stderr) #0 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(953): Illuminate\Container\Container->notInstantiable()
web  | [entrypoint / 10-storage.sh] - (stderr) #1 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(819): Illuminate\Container\Container->build()
web  | [entrypoint / 10-storage.sh] - (stderr) #2 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1048): Illuminate\Container\Container->resolve()
web  | [entrypoint / 10-storage.sh] - (stderr) #3 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(755): Illuminate\Foundation\Application->resolve()
web  | [entrypoint / 10-storage.sh] - (stderr) #4 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1030): Illuminate\Container\Container->make()
web  | [entrypoint / 10-storage.sh] - (stdout) Illuminate\Contracts\Container\BindingResolutionException
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / 10-storage.sh] - (stdout) Target [Laravel\Pulse\Contracts\ResolvesUsers] is not instantiable while building [App\Providers\AppServiceProvider].
web  | [entrypoint / 10-storage.sh] - (stderr) #5 /var/www/vendor/laravel/pulse/src/Pulse.php(430): Illuminate\Foundation\Application->make()
web  | [entrypoint / 10-storage.sh] - (stderr) #6 /var/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(361): Laravel\Pulse\Pulse->user()
web  | [entrypoint / 10-storage.sh] - (stderr) #7 /var/www/app/Providers/AppServiceProvider.php(74): Illuminate\Support\Facades\Facade::__callStatic()
web  | [entrypoint / 10-storage.sh] - (stderr) #8 /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Providers\AppServiceProvider->boot()
web  | [entrypoint / 10-storage.sh] - (stderr) #9 /var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
web  | [entrypoint / 10-storage.sh] - (stderr) #10 /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\Container\Util::unwrapIfClosure()
web  | [entrypoint / 10-storage.sh] - (stderr) #11 /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
web  | [entrypoint / 10-storage.sh] - (stderr) #12 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Container\BoundMethod::call()
web  | [entrypoint / 10-storage.sh] - (stderr) #13 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1121): Illuminate\Container\Container->call()
web  | [entrypoint / 10-storage.sh] - (stderr) #14 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1102): Illuminate\Foundation\Application->bootProvider()
web  | [entrypoint / 10-storage.sh] - (stderr) #15 [internal function]: Illuminate\Foundation\Application->Illuminate\Foundation\{closure}()
web  | [entrypoint / 10-storage.sh] - (stderr) #16 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1101): array_walk()
web  | [entrypoint / 10-storage.sh] - (stderr) #17 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\Foundation\Application->boot()
web  | [entrypoint / 10-storage.sh] - (stderr) #18 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(316): Illuminate\Foundation\Bootstrap\BootProviders->bootstrap()
web  | [entrypoint / 10-storage.sh] - (stderr) #19 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(474): Illuminate\Foundation\Application->bootstrapWith()
web  | [entrypoint / 10-storage.sh] - (stderr) #20 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(196): Illuminate\Foundation\Console\Kernel->bootstrap()
web  | [entrypoint / 10-storage.sh] - (stderr) #21 /var/www/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
web  | [entrypoint / 10-storage.sh] - (stderr) #22 {main}
web  | [entrypoint / 10-storage.sh] - (stderr) "}
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / 10-storage.sh] - (stdout) at vendor/laravel/framework/src/Illuminate/Container/Container.php:1201
web  | [entrypoint / 10-storage.sh] - (stdout) 1197β–•         } else {
web  | [entrypoint / 10-storage.sh] - (stdout) 1198β–•             $message = "Target [$concrete] is not instantiable.";
web  | [entrypoint / 10-storage.sh] - (stdout) 1199β–•         }
web  | [entrypoint / 10-storage.sh] - (stdout) 1200β–•
web  | [entrypoint / 10-storage.sh] - (stdout) ➜ 1201β–•         throw new BindingResolutionException($message);
web  | [entrypoint / 10-storage.sh] - (stdout) 1202β–•     }
web  | [entrypoint / 10-storage.sh] - (stdout) 1203β–•
web  | [entrypoint / 10-storage.sh] - (stdout) 1204β–•     /**
web  | [entrypoint / 10-storage.sh] - (stdout) 1205β–•      * Throw an exception for an unresolvable primitive.
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / 10-storage.sh] - (stdout) +7 vendor frames 
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / 10-storage.sh] - (stdout) 8   app/Providers/AppServiceProvider.php:74
web  | [entrypoint / 10-storage.sh] - (stdout) Illuminate\Support\Facades\Facade::__callStatic()
web  | [entrypoint / 10-storage.sh] - (stdout) +7 vendor frames 
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / 10-storage.sh] - (stdout) 16  [internal]:0
web  | [entrypoint / 10-storage.sh] - (stdout) Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
web  | [entrypoint / 10-storage.sh] - (stdout) 
web  | [entrypoint / entrypoint.sh] - πŸ”“ Releasing lock [/var/www/storage/docker/lock/entrypoint.sh]
web  | [entrypoint / 10-storage.sh] - ERROR - ❌ Error!

any idea, what goes wrong.

@Murazaki
Copy link

I've seen this error. I think it might be cache related.
You can fix it by calling composer install from inside the web container :

docker compose run --entrypoint bash web then composer install did the trick for me.

I could not determine where exactly the issue was though.

@Sythelux
Copy link
Author

this helped, thank you!

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