Open architechpro opened 3 years ago
Hi,
In our production logs we get certain amount of 500 errors related to moments when Opcache Clear command is running. Access log shows following:
172.31.42.150 - - [14/Apr/2021:01:35:31 +0000] "GET /opcache-api/clear?key=eyJpdiI6IlFMT2h2VWsrTEpmcUM0K2M5ZUR3RlE9PSIsInZhbHVlIjoiQ0hQbllUd0ZqeGdXTnVCNVRHeUV4QT09IiwibWFjIjoiOTFjM2VmYmJlZjAwYzY5MGNkMmFhZWQ1ZmZmOGUwNGNjOTY3ZmM5YjIwZDJlZmRlZGY4ZjU4M2FhOGE4NjRjMCJ9 HTTP/1.1" 403 6641 "-" "GuzzleHttp/7" "3.128.24.47"
And Laravel log shows:
local.ERROR: HTTP request returned status code 403: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width= (truncated...) {"exception":"[object] (Illuminate\\Http\\Client\\RequestException(code: 403): HTTP request returned status code 403: <!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"utf-8\"> <meta name=\"viewport\" content=\"width= (truncated...) at /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Http/Client/Response.php:241) [stacktrace] #0 /var/app/current/courses/vendor/appstract/laravel-opcache/src/Commands/Clear.php(34): Illuminate\\Http\\Client\\Response->throw() #1 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Appstract\\Opcache\\Commands\\Clear->handle() #2 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() #3 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure)) #4 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure)) #5 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Container/Container.php(610): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL) #6 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Console/Command.php(136): Illuminate\\Container\\Container->call(Array) #7 /var/app/current/courses/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) #8 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle)) #9 /var/app/current/courses/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #10 /var/app/current/courses/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Appstract\\Opcache\\Commands\\Clear), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #11 /var/app/current/courses/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #12 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #13 /var/app/current/courses/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #14 /var/app/current/courses/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput)) #15 {main} "}
When we log in to production instance over SSH and check opcache status or perform commands manually, it's always fine, but just wanted to reach out regarding this strange behavior we monitor in our logs.
Hi,
In our production logs we get certain amount of 500 errors related to moments when Opcache Clear command is running. Access log shows following:
172.31.42.150 - - [14/Apr/2021:01:35:31 +0000] "GET /opcache-api/clear?key=eyJpdiI6IlFMT2h2VWsrTEpmcUM0K2M5ZUR3RlE9PSIsInZhbHVlIjoiQ0hQbllUd0ZqeGdXTnVCNVRHeUV4QT09IiwibWFjIjoiOTFjM2VmYmJlZjAwYzY5MGNkMmFhZWQ1ZmZmOGUwNGNjOTY3ZmM5YjIwZDJlZmRlZGY4ZjU4M2FhOGE4NjRjMCJ9 HTTP/1.1" 403 6641 "-" "GuzzleHttp/7" "3.128.24.47"
And Laravel log shows:
When we log in to production instance over SSH and check opcache status or perform commands manually, it's always fine, but just wanted to reach out regarding this strange behavior we monitor in our logs.