checked the system.log and this is what I got
cat var/log/system.log
[2024-01-26T22:55:02.516098+00:00] main.CRITICAL: Can't create directory /var/www/vhosts/example.com/commerce.example.com/generated/code/Magento/Store/Model/Website/.
Class Magento\Store\Model\Website\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. [] []
[2024-01-26T22:55:02.520653+00:00] main.ERROR: There are no commands defined in the "indexer" namespace.
#0 /var/www/vhosts/example.com/commerce.example.com/vendor/symfony/console/Application.php(701): Symfony\Component\Console\Application->findNamespace()
#1 /var/www/vhosts/example.com/commerce.example.com/vendor/symfony/console/Application.php(259): Symfony\Component\Console\Application->find()
#2 /var/www/vhosts/example.com/commerce.example.com/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun()
#3 /var/www/vhosts/example.com/commerce.example.com/vendor/symfony/console/Application.php(171): Magento\Framework\Console\Cli->doRun()
#4 /var/www/vhosts/example.com/commerce.example.com/bin/magento(23): Symfony\Component\Console\Application->run()
#5 {main} [] []
[2024-01-26T22:55:03.311459+00:00] main.CRITICAL: Can't create directory /var/www/vhosts/example.com/commerce.example.com/generated/code/Magento/Store/Model/Website/.
Class Magento\Store\Model\Website\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. [] []
[2024-01-26T22:55:03.313815+00:00] main.ERROR: There are no commands defined in the "cache" namespace.
#0 /var/www/vhosts/example.com/commerce.example.com/vendor/symfony/console/Application.php(701): Symfony\Component\Console\Application->findNamespace()
#1 /var/www/vhosts/example.com/commerce.example.com/vendor/symfony/console/Application.php(259): Symfony\Component\Console\Application->find()
#2 /var/www/vhosts/example.com/commerce.example.com/vendor/magento/framework/Console/Cli.php(116): Symfony\Component\Console\Application->doRun()
#3 /var/www/vhosts/example.com/commerce.example.com/vendor/symfony/console/Application.php(171): Magento\Framework\Console\Cli->doRun()
#4 /var/www/vhosts/example.com/commerce.example.com/bin/magento(23): Symfony\Component\Console\Application->run()
#5 {main} [] []
[2024-01-26T22:59:02.105163+00:00] main.CRITICAL: Can't create directory /var/www/vhosts/example.com/commerce.example.com/generated/code/Magento/Framework/App/ResourceConnection/.
Class Magento\Framework\App\ResourceConnection\Proxy generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. [] []