Foreman-maintain restore doesnt work!

hi all,

I create with foreman-maintain an offline backup so far so good.

After that I want to restore the backup, but I cannot loggin in UI after restore. I dont get any error during the restore process. before reboot the server systemctl status postgresql@12-main.service was active: (running), after reboot it was faild and systemctl status postgresql@10-main.service was active (running) does anyone know why?



# foreman-maintain restore /tmp/backups/foreman-backup-2023-03-16-10-14-08
Running Restore backup
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Validate backup has appropriate files:                                [OK]
--------------------------------------------------------------------------------
Validate hostname is the same as backup:                              [OK]
--------------------------------------------------------------------------------
Validate network interfaces match the backup:                         [OK]
--------------------------------------------------------------------------------
Confirm dropping databases and running restore:

WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
Do you want to proceed?, [y(yes), q(quit)] yes
                                                                      [OK]
--------------------------------------------------------------------------------
Restore configs from backup:
| Restoring configs                                                   [OK]
--------------------------------------------------------------------------------
Run installer reset:
- Installer reset                                                     [OK]
--------------------------------------------------------------------------------
Stop applicable services:

Stopping the following service(s):
postgresql, dynflow-sidekiq@orchestrator, foreman, puppetserver, foreman.socket, dynflow-sidekiq@worker-1, foreman-proxy
- All services stopped                                                [OK]
--------------------------------------------------------------------------------
Extract any existing tar files in backup:
/ Extracting pgsql data                                               [OK]
--------------------------------------------------------------------------------
Start applicable services:

Starting the following service(s):
postgresql, dynflow-sidekiq@orchestrator, foreman, puppetserver, dynflow-sidekiq@worker-1, foreman-proxy
| All services started                                                [OK]
--------------------------------------------------------------------------------
Run daemon reload:                                                    [OK]
--------------------------------------------------------------------------------
Procedures::Installer::Upgrade:										  [OK]
--------------------------------------------------------------------------------
Execute upgrade:run rake task:                                        [OK]
--------------------------------------------------------------------------------

Foreman and Proxy versions: foreman 3.4.1 , foreman-proxy 3.4.1

Distribution and version: Ubuntu 20.04.4 LTS

It works! but does anyone know why this postgresql phenomenon ?