Mastodon 4.2.8 update fails because of missing DB


My YunoHost server

Hardware: Dedicated Server, 16 GB Memory, decent
YunoHost version: 11.2.12
I have access to my server : Through SSH & through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: Mastodon 4.2.8~ynh1 update to 4.2.8~ynh2

Description of my issue

I tried to update my mastodon app. The logs can be seen here:

I tried running the update twice, but the exact same error appeared.

The message in the logs:

2024-05-31 23:35:17,956: DEBUG - Caused by:
2024-05-31 23:35:17,956: DEBUG - PG::ConnectionBad: FATAL:  database "mastodon" does not exist

I did not chance anything in the config file. But reading through the complerete log-file I saw, that in the beginning mastodon_production database was dropped. Is this the normal behaviour?

Thanks a lot for your help.

All the best