[Pleroma] Error when trying to change URL

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.2.8
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

I am trying to change the Pleroma URL but it is not possible. The error log can be found here.

The story behind is I was using an URL, it was fine and then moved to a subdirectory of that URL. When trying to change it back to the root URL or to another one available, it was no possible anymore. The current URL also does not work; it shows a 502 bad gateway error message.

I have tried to restart nginx but it does not solve the issue.

I have checked nginx status:

admin@nimbus:~ $ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

The error was fixed after update. However, the instance is not federating anymore.