Modify

Ticket #3565 (closed defect: fixed)

Opened 18 months ago

Last modified 17 months ago

Restoring configuration backup fails on a migrated server

Reported by: trym@… Owned by: cperez@…
Milestone: 2.2.X Component: backup
Severity: normal Keywords:
Cc:

Description

After migrating 2.0>2.2 _and_ running the fetchmail-fix script from ticked #3559, creating and restoring a configuration-backup fails with the following message:

Can't call method "attribute" on an undefined value

...after which the CA-certificate will be reset, and you have to make a new CA-certificate. Saving and restoring a new backup after this still does not work.

zentyal.log shows

ERROR> Backup.om:1165 EBox::Backup::__ANON__ - Error while restoring: Can't call method "attribute" on an undefined value

Attachments

Change History

comment:1 Changed 18 months ago by jamor@…

  • Owner changed from jacalvo@… to jamor@…

Hello Trym,

unfortunately I need more data to diagnose the problem. In case you don't have confidential data, could you send me the backup to jamor@… ?

comment:2 Changed 18 months ago by jamor@…

  • Component changed from base to backup

comment:3 Changed 18 months ago by trym@…

Mail with a sanitized configuration backup sent to specified address.

comment:4 Changed 18 months ago by jamor@…

  • Milestone set to 2.2.X

Thanks for your configuration backup Trym but I was unable to reproduce this; the restore went correctly.

Maybe it was correct because it is a installed server and not a migrated one. It is possible to have a backup of the server _before_ the migration?.

comment:5 Changed 18 months ago by jamor@…

  • Owner changed from jamor@… to cperez@…

comment:6 Changed 18 months ago by trym@…

Sure. Sending two configuration backups to the same address as last time, one 2.0, which restores correctly on 2.0, and a 2.2 backup of the same migrated server which will not restore.

comment:7 Changed 18 months ago by trym@…

I've reproduced this bug on a fresh 2.2 install. I'm not exactly sure of the right sequence of events, but it involves setting the administration-interface to listen on a non-default port, enable ssl for a virtual domain, set zarafa to listen only to that virtual domain, enable ssl-certificates for some webserver. Zentyal 2.2 will then fail in the same manner.

So this is not a migration bug after all, but a pure 2.2 bug.

comment:8 Changed 17 months ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to fixed

We have fixed it and it will be available on the next version of zentyal-ca, but in the meanwhile you can just download this CA.pm file:

 http://git.zentyal.org/zentyal.git/blob/0eb3a5f321dae657c326b35fe3e39383abda08ca:/main/ca/src/EBox/CA.pm

And copy it to /usr/share/perl5/EBox/CA.pm

Thanks for reporting it and let us know if you still have any issue after applying the patch.

Last edited 17 months ago by jacalvo@… (previous) (diff)
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.