Debian upgrade to Bookworm breaks after awhile

Install worked fine, prompted update from 7.x to 8.x, which was only available in Debian Bookworm repositories. I got a bad gateway 502, but just had to update:

vi /etc/nginx/sites-available/default
  fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;  <-- change line to next one
  fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
/etc/init.d/php8.2-fpm restart

Then it ran fine for a day, then white-screened the browser with a 500 error (tried FF/Chrome). I try to run ./validate.php it hangs (for 20 minutes now with minimal mem/cpu usage). Here’s what’s running for php:

ps aux | grep php
root         482  0.0  2.3 244540 23404 ?        Ss   May18   0:02 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
www-data     538  0.0  0.8 244860  8356 ?        S    May18   0:00 php-fpm: pool www
www-data     539  0.0  0.8 244860  8356 ?        S    May18   0:00 php-fpm: pool www
root       18347  0.0  3.7 267964 36964 ?        Ss   11:28   0:00 php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)
www-data   18348  0.0  3.6 270728 36040 ?        S    11:28   0:00 php-fpm: pool www
www-data   18349  0.0  3.1 268680 31016 ?        S    11:28   0:00 php-fpm: pool www
root       18805  0.0  4.1 141892 40608 pts/0    S+   12:04   0:00 php ./validate.php
root       18812  0.0  0.0   2576   908 pts/0    S+   12:04   0:00 sh -c /opt/librenms/scripts/composer_wrapper.php --version
root       18813  0.0  3.5 135748 34528 pts/0    S+   12:04   0:00 php /opt/librenms/scripts/composer_wrapper.php --version
root       18836  0.0  0.0   2576   872 pts/0    S+   12:04   0:00 sh -c php /opt/librenms/composer.phar --version --ansi 2>&1
root       18837  0.0  3.9 140628 39156 pts/0    S+   12:04   0:00 php /opt/librenms/composer.phar --version --ansi

I tried to kill php5-fpm and reload php8.2-fpm, but it made no difference.

#6 /opt/librenms/ve" while reading response header from upstream, client: 10.x.x.x, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "10.x.x.x"
2023/05/19 12:34:53 [error] 18246#18246: *12 FastCGI sent in stderr: "PHP message: PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /opt/librenms/vendor/php-flasher/flasher-laravel/ServiceProvider/Providers/Laravel.php on line 212; PHP message: PHP Fatal error:  Declaration of App\Exceptions\Handler::render($request, Exception $exception) must be compatible with Illuminate\Foundation\Exceptions\Handler::render($request, Throwable $e) in /opt/librenms/app/Exceptions/Handler.php on line 36; PHP message: PHP Fatal error:  Uncaught ReflectionException: Class "App\Exceptions\Handler" does not exist in /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php:877
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(877): ReflectionClass->__construct()
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build()
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve()
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(295): Illuminate\Foundation\Application->resolve()
#4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(873): Illuminate\Container\Container->Illuminate\Container\{closure}()
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build()
#6 /opt/librenms/ve" while reading response header from upstream, client: 10.x.x.x, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "10.x.x.x"

Where else should I be looking?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.