OK,
found the real error is here:
2018-10-26 08:16:17 1874: pg_cmd running: pg_restore -w -U engine -h
localhost -p 5432 -d engine -j 2
/tmp/engine-backup.uqg1Ha3mFP/db/engine_backup.db
pg_restore: [archiver] unsupported version (1.13) in file header
So pg_restore is restoring nothing and everything else after that fails
with strange results.
On Wed, Oct 31, 2018 at 7:52 AM Maton, Brett <matonb(a)ltresources.co.uk>
wrote:
Raised bug report
https://bugzilla.redhat.com/show_bug.cgi?id=1644550
5 days with no hosted engine to manage production servers....
On Tue, 30 Oct 2018 at 06:45, Maton, Brett <matonb(a)ltresources.co.uk>
wrote:
> Any suggestions on the FATAL: Failed checking DbJustRestored error ?
>
> On Sat, 27 Oct 2018 at 16:01, Maton, Brett <matonb(a)ltresources.co.uk>
> wrote:
>
>> Not sure what you mean by ovirt-engine-appliance, I just deploy with
>> 'hosted-engine --deploy...' and keep it upto date.
>>
>> On Fri, 26 Oct 2018 at 13:23, Simone Tiraboschi <stirabos(a)redhat.com>
>> wrote:
>>
>>> Adding also Didi on this.
>>> Brett, are you using the latest ovirt-engine-appliance?
>>>
>>> On Fri, Oct 26, 2018 at 1:31 PM Maton, Brett
<matonb(a)ltresources.co.uk>
>>> wrote:
>>>
>>>> Hi Simone,
>>>>
>>>> I'm seeing the same error with new hosted-engine0setup RPM...
>>>> ...
>>>> [ ERROR ] fatal: [ovirt.gh.ltresources.co.uk]: FAILED! =>
{"changed":
>>>> true, "cmd": "engine-backup --mode=restore
>>>> --log=/var/log/ovirt-engine/setup/restore-backup-$(date -u
>>>> +%Y%m%d%H%M%S).log --file=/root/engine_backup --provision-all-databases
>>>> --restore-permissions", "delta":
"0:00:12.219742", "end": "2018-10-26
>>>> 12:28:20.127547", "msg": "non-zero return code",
"rc": 1, "start":
>>>> "2018-10-26 12:28:07.907805", "stderr": "FATAL:
Failed checking
>>>> DbJustRestored", "stderr_lines": ["FATAL: Failed
checking DbJustRestored"],
>>>> "stdout": "Preparing to restore:\n- Unpacking file
>>>> '/root/engine_backup'\nRestoring:\n- Files\nProvisioning
PostgreSQL
>>>> users/databases:\n- user 'engine', database 'engine'\n-
user
>>>> 'ovirt_engine_history', database
'ovirt_engine_history'\nRestoring:\n-
>>>> Engine database 'engine'\n - Cleaning up temporary tables in
engine
>>>> database 'engine'", "stdout_lines":
["Preparing to restore:", "- Unpacking
>>>> file '/root/engine_backup'", "Restoring:", "-
Files", "Provisioning
>>>> PostgreSQL users/databases:", "- user 'engine',
database 'engine'", "- user
>>>> 'ovirt_engine_history', database
'ovirt_engine_history'", "Restoring:", "-
>>>> Engine database 'engine'", " - Cleaning up temporary
tables in engine
>>>> database 'engine'"]}
>>>> ...
>>>>
>>>> On Fri, 26 Oct 2018 at 09:19, Simone Tiraboschi
<stirabos(a)redhat.com>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 26, 2018 at 9:52 AM Maton, Brett <
>>>>> matonb(a)ltresources.co.uk> wrote:
>>>>>
>>>>>> Hi Simone,
>>>>>>
>>>>>> Can I simply installed the 4.2.7 hosted-engine-setup rpm on top
of
>>>>>> the 4.2.6 installation on the node I'm using to redeploy SHE,
or should I
>>>>>> bump everything to the 4.2.7 pre-release ?
>>>>>>
>>>>>
>>>>> You can simply update ovirt-hosted-engine-setup rpm
>>>>>
>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Brett
>>>>>>
>>>>>> On Fri, 26 Oct 2018 at 08:35, Simone Tiraboschi
<stirabos(a)redhat.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Oct 26, 2018 at 9:23 AM Maton, Brett <
>>>>>>> matonb(a)ltresources.co.uk> wrote:
>>>>>>>
>>>>>>>> oVirt: 4.2.6.2-1
>>>>>>>>
>>>>>>>> I'm Moving hosted engine from one storage domain to
another by
>>>>>>>> backing up and restoring the engine.
>>>>>>>>
>>>>>>>> New VM provisioned in new storage domain, I get as far as
trying
>>>>>>>> to restore the backup:
>>>>>>>>
>>>>>>>> but am getting this DbJustRestored Error:
>>>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>> you probably hit:
>>>>>>>
https://bugzilla.redhat.com/show_bug.cgi?id=1620314
>>>>>>>
>>>>>>> That feature has been reworked for 4.2.7: with next release
you
>>>>>>> will be able to run
>>>>>>> hosted-engine --deploy
--restore-from-file=yourbackup.tar.gz
>>>>>>> that will automatically inject your backup file.
>>>>>>>
>>>>>>> If you want to have a preview of that feature you can try
with
>>>>>>>
>>>>>>>
https://jenkins.ovirt.org/job/ovirt-hosted-engine-setup_4.2_build-artifac...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> engine-backup --mode=restore --file=engine.backup
>>>>>>>> --log=engine-restore.log --provision-db
--provision-dwh-db
>>>>>>>> --restore-permissions
>>>>>>>> Preparing to restore:
>>>>>>>> - Unpacking file 'engine.backup'
>>>>>>>> Restoring:
>>>>>>>> - Files
>>>>>>>> Provisioning PostgreSQL users/databases:
>>>>>>>> - user 'engine', database 'engine'
>>>>>>>> - user 'ovirt_engine_history', database
'ovirt_engine_history'
>>>>>>>> Restoring:
>>>>>>>> - Engine database 'engine'
>>>>>>>> - Cleaning up temporary tables in engine database
'engine'
>>>>>>>> FATAL: Failed checking DbJustRestored
>>>>>>>>
>>>>>>>> restore log attached, any suggestions ?
>>>>>>>> _______________________________________________
>>>>>>>> Users mailing list -- users(a)ovirt.org
>>>>>>>> To unsubscribe send an email to users-leave(a)ovirt.org
>>>>>>>> Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
>>>>>>>> oVirt Code of Conduct:
>>>>>>>>
https://www.ovirt.org/community/about/community-guidelines/
>>>>>>>> List Archives:
>>>>>>>>
https://lists.ovirt.org/archives/list/users@ovirt.org/message/NJ4USBWDAN3...
>>>>>>>>
>>>>>>>