System broke after update (cant start hestiacp)

I faced the error 500 and applied some fixes as per the steps mentioned in my replies to this topic.

But I am still unable to access the control panel as I see the error 500

I tried to upgrade but I see the same error as the topic of this article and the mentioned solution did not work in my case

curl -s https://nginx.org/keys/nginx_signing.key | sudo gpg --dearmor > /usr/share/keyrings/nginx-keyring.gpg