renick
November 24, 2024, 10:06pm
#1
Hey
Did you ever had the issue, that a resizer image returns 404 on the first hit? Currently, I’ve a page where I resize small but plenty images. I need to reload the page like 2-3 times till all the thumbnails are proper available.
Can’t find any issues in the logs. Any ideas what’s the cause of that?
renick
November 24, 2024, 10:13pm
#2
I just got this error when hitting a resizer link. Instead of the redirect, I got this error. But only on the first hit of the link. The second hit returns the image url properly
ApplicationException: The resizer file ‘ab104eecd8a56ab1a67867dcad8b8e96’ is not found. in /usr/www/users/xxx/prod/modules/system/classes/ResizeImages.php:115 Stack trace: #0 /usr/www/users/xxx/prod/modules/system/classes/SystemController.php(68): System\Classes\ResizeImages->getContents() #1 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): System\Classes\SystemController->resize() #2 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction() #3 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate\Routing\ControllerDispatcher->dispatch() #4 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController() #5 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php(806): Illuminate\Routing\Route->run() #6 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing{closure}() #7 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() #8 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php(805): Illuminate\Pipeline\Pipeline->then() #9 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php(784): Illuminate\Routing\Router->runRouteWithinStack() #10 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Routing/Router.php(748): Illuminate\Routing\Router->runRoute() #11 /usr/www/users/xxx/prod/vendor/october/rain/src/Router/CoreRouter.php(32): Illuminate\Routing\Router->dispatchToRoute() #12 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): October\Rain\Router\CoreRouter->dispatch() #13 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}() #14 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(99): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() #15 /usr/www/users/xxx/prod/vendor/october/rain/src/Foundation/Http/Middleware/CheckForMaintenanceMode.php(23): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle() #16 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): October\Rain\Foundation\Http\Middleware\CheckForMaintenanceMode->handle() #17 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}() #18 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then() #19 /usr/www/users/xxx/prod/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() #20 /usr/www/users/xxx/prod/index.php(69): Illuminate\Foundation\Http\Kernel->handle() #21 {main}
renick
November 24, 2024, 10:18pm
#3
Okay, I just looked again at the Cache.
Seems that the cache driver APC doesn’t work too well atm. Switched back to redis, and the error is vanished. Not sure why APC suddenly starts breaking sth.
So it’s not a resizer issue
1 Like