Closed linhtc closed 1 year ago
when I set "gcs" driver for upload, it failed with this error
'disks' => [ 'uploads' => [ 'driver' => 'gcs', 'root' => storage_path('app/uploads'), 'url' => '/storage/app/uploads', 'visibility' => 'public', 'throw' => true, 'use_path_style_endpoint' => true, ],
[2023-07-06 03:54:22] local.ERROR: Google\Cloud\Core\Exception\NotFoundException: Not Found in /app/vendor/google/cloud-core/src/RequestWrapper.php:397 Stack trace: #0 /app/vendor/google/cloud-core/src/RequestWrapper.php(214): Google\Cloud\Core\RequestWrapper->convertToGoogleException(Object(GuzzleHttp\Exception\ClientException)) #1 /app/vendor/google/cloud-core/src/RestTrait.php(101): Google\Cloud\Core\RequestWrapper->send(Object(GuzzleHttp\Psr7\Request), Array) #2 /app/vendor/google/cloud-storage/src/Connection/Rest.php(730): Google\Cloud\Storage\Connection\Rest->traitSend('objects', 'list', Array) #3 /app/vendor/google/cloud-storage/src/Connection/Rest.php(258): Google\Cloud\Storage\Connection\Rest->send('objects', 'list', Array) #4 /app/vendor/google/cloud-core/src/Iterator/PageIteratorTrait.php(238): Google\Cloud\Storage\Connection\Rest->listObjects(Array) #5 /app/vendor/google/cloud-storage/src/ObjectPageIterator.php(55): Google\Cloud\Storage\ObjectPageIterator->executeCall() #6 /app/vendor/google/cloud-core/src/Iterator/ItemIteratorTrait.php(136): Google\Cloud\Storage\ObjectPageIterator->current() #7 /app/vendor/league/flysystem-google-cloud-storage/GoogleCloudStorageAdapter.php(112): Google\Cloud\Storage\ObjectIterator->valid() #8 /app/vendor/league/flysystem/src/Filesystem.php(49): League\Flysystem\GoogleCloudStorage\GoogleCloudStorageAdapter->directoryExists('public/64a/63a/...') #9 /app/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php(181): League\Flysystem\Filesystem->has('public/64a/63a/...') #10 [internal function]: Illuminate\Filesystem\FilesystemAdapter->exists('public/64a/63a/...') #11 /app/vendor/october/rain/src/Database/Attach/File.php(942): call_user_func_array(Array, Array) #12 /app/vendor/october/rain/src/Database/Attach/File.php(870): October\Rain\Database\Attach\File->storageCmd('exists', 'public/64a/63a/...') #13 /app/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(438): October\Rain\Database\Attach\File->October\Rain\Database\Attach\{closure}() #14 /app/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(408): Illuminate\Cache\Repository->rememberForever('database-file::...', Object(Closure)) #15 /app/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Cache\CacheManager->__call('rememberForever', Array) #16 /app/vendor/october/rain/src/Database/Attach/File.php(869): Illuminate\Support\Facades\Facade::__callStatic('rememberForever', Array) #17 /app/vendor/october/rain/src/Database/Attach/File.php(582): October\Rain\Database\Attach\File->hasFile('64a63a721633304...') #18 /app/modules/system/models/File.php(37): October\Rain\Database\Attach\File->getThumbUrl('90', '90', Array) #19 /app/vendor/october/rain/src/Database/Attach/File.php(619): System\Models\File->getThumbUrl('90', '90', Array) #20 /app/modules/backend/formwidgets/FileUpload.php(501): October\Rain\Database\Attach\File->getThumb('90', '90', Array) #21 /app/modules/backend/formwidgets/FileUpload.php(244): Backend\FormWidgets\FileUpload->decorateFileAttributes(Object(System\Models\File)) #22 /app/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(235): Backend\FormWidgets\FileUpload->Backend\FormWidgets\{closure}(Object(System\Models\File), 0) #23 /app/modules/backend/formwidgets/FileUpload.php(243): Illuminate\Support\Collection->each(Object(Closure)) #24 /app/modules/backend/formwidgets/FileUpload.php(178): Backend\FormWidgets\FileUpload->getFileList() #25 /app/modules/backend/formwidgets/FileUpload.php(154): Backend\FormWidgets\FileUpload->prepareVars() #26 /app/modules/backend/widgets/form/partials/_field_widget.php(5): Backend\FormWidgets\FileUpload->render() #27 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #28 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #29 /app/modules/backend/widgets/Form.php(299): Backend\Classes\WidgetBase->makePartial('_field_widget', Array) #30 /app/modules/backend/widgets/form/partials/_field.php(25): Backend\Widgets\Form->renderFieldElement(Object(Backend\Classes\FormField)) #31 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #32 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #33 /app/modules/backend/widgets/form/partials/_field-container.php(9): Backend\Classes\WidgetBase->makePartial('_field', Array) #34 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #35 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #36 /app/modules/backend/widgets/form/partials/_form_fields.php(11): Backend\Classes\WidgetBase->makePartial('_field-containe...', Array) #37 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #38 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #39 /app/modules/backend/widgets/form/partials/_section.php(16): Backend\Classes\WidgetBase->makePartial('_form_fields', Array) #40 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #41 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #42 /app/modules/backend/widgets/form/partials/_form.php(3): Backend\Classes\WidgetBase->makePartial('_section', Array) #43 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #44 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #45 /app/modules/backend/widgets/form/partials/_form-container.php(8): Backend\Classes\WidgetBase->makePartial('_form') #46 /app/modules/system/traits/ViewMaker.php(263): include('/app/modules/ba...') #47 /app/modules/system/traits/ViewMaker.php(98): Backend\Classes\WidgetBase->makeFileContents('/app/modules/ba...', Array) #48 /app/modules/backend/widgets/Form.php(227): Backend\Classes\WidgetBase->makePartial('_form-container', Array) #49 /app/modules/backend/behaviors/FormController.php(430): Backend\Widgets\Form->render(Array) #50 [internal function]: Backend\Behaviors\FormController->formRender() #51 /app/vendor/october/rain/src/Extension/ExtendableTrait.php(506): call_user_func_array(Array, Array) #52 /app/vendor/october/rain/src/Extension/Extendable.php(46): October\Rain\Extension\Extendable->extendableCall('formRender', Array) #53 /app/plugins/sas/founder/partials/controllers/update.htm(13): October\Rain\Extension\Extendable->__call('formRender', Array) #54 /app/modules/system/traits/ViewMaker.php(263): include('/app/plugins/sa...') #55 /app/modules/system/traits/ViewMaker.php(112): Backend\Classes\Controller->makeFileContents('/app/plugins/sa...') #56 /app/modules/backend/classes/Controller.php(397): Backend\Classes\Controller->makeView('update') #57 /app/modules/backend/classes/Controller.php(265): Backend\Classes\Controller->execPageAction('update', Array) #58 /app/modules/backend/classes/BackendController.php(118): Backend\Classes\Controller->run('update', Array) #59 /app/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Backend\Classes\BackendController->run('sas/pnp/shops/u...') #60 /app/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction('run', Array) #61 /app/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Backend\Classes\BackendController), 'run') #62 /app/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #63 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run() #64 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #65 /app/plugins/sas/founder/middleware/EmployeeMiddleware.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #66 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sas\Founder\Middleware\EmployeeMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #67 /app/plugins/sas/founder/middleware/CoreMiddleware.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #68 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sas\Founder\Middleware\CoreMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #69 /app/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #70 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure)) #71 /app/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #72 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #73 /app/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #74 /app/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure)) #75 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #76 /app/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #77 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure)) #78 /app/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #79 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure)) #80 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #81 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #82 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #83 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route)) #84 /app/vendor/october/rain/src/Router/CoreRouter.php(32): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #85 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): October\Rain\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request)) #86 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) #87 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #88 /app/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(23): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure)) #89 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure)) #90 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #91 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(165): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #92 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(134): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #93 /app/index.php(45): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #94 {main}
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
when I set "gcs" driver for upload, it failed with this error