Support

Akeeba Backup for Joomla!

#41839 Invalid Header when Restoring Backup

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.3.0
PHP version
8.3
Akeeba Backup version
10.0.3

Latest post by webman on Thursday, 17 April 2025 03:43 CDT

webman

Hi there,

we are using Akeeba Backup on Update in combination with Panopticon. 
Yesterday there were errors after the update and we tried to restore the backup. But it didn't work. (It still was Akeeba Backup 9.9.11)

Now I updated Akeeba Backup on one site and made all extension updates. Then I made the Joomla update which took the backup automatically.
But I wasn't able to restore this backup. The error is:

Extraction of the backup archive has failed.
The last error message was:

Invalid header in archive file, part 0, offset 163. Please make sure to download and upload backup archive files using SFTP, or FTP in Binary transfer mode and do check that their file size matches the sizes reported in the Manage Backups page of Akeeba Backup / Akeeba Solo.

We use a custom profile for the backup which transfers the backup automatically to another FTP server using FTPS.
When I create a backup with the default profile which does not transfer the backup then the restoration works as expected. 

I changed the settings in our profile to no delete the backup after transfer. Both files have exactly the same size. I tried to restore the backup that was not transferred and that was in the same directory as the one I created with the default backup (it also has the same file size). 

But I get the same error message whe restoring the local backup, so I think the problem is not the transfer via FTPS but somewhere else in the profile settings.

Please find the log attached. 

Can you think of a setting that would create this error? What can I do about this?

If you need any further information, please feel free to contacting me. 

Kind regards, 

Tanja Vogt

tampe125
Akeeba Staff

Hello,

let's see what's causing the problem inside the archive. Please try to restore the backup using Kickstart locally and edit the file to enable the debug mode. You'll have to remove the forward slashes from the line containing the string KS_DEBUG.

Then start the extraction again. It will still fail, but you'll get a debug.txt file; please zip it and attach it here, so we can review what's going on.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

webman

Hi Davide,

when I use the Kickstart.php the restoration works. Please find debug attached. 

I also testet with one of the backups that were transferred via FTPS yesterday and with the kickstart this also works. 

Only when I use our custom profile and want to restore via manage backups the restoration fails. So I seems there is everything ok with the backup itself. 

Kind regards,

Tanja Vogt

tampe125
Akeeba Staff

So just to be sure: if you use the backup with the custom profile and restore it using Kickstart, it works? If you do the same using the embedded restoration system from manage backups, it fails?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

webman

Yes, that is correct.

tampe125
Akeeba Staff

ok, that seems a bit strange, since it's exactly the same code, just executed in a different way. Can you please try to install Akeeba Backup twice in a row, without uninstalling it? Just to be sure that all the files are updated.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

webman

Hello Davide,

I installed Akeeba Backup twice again.
Same error. 

But I think I found the problem: When I start the restoration via backend then the encrytion key is automatically filled by our pw manager.
When I enter the correct pw it works as expected.

So everything working now. 

If the error message had included something with incorrect pw, I would have been able to solve the problem on my own. Maybe you can have a look at the error message.

 

Thank you very much for your help!

Kind regards, Tanja

tampe125
Akeeba Staff

Ah! Now it makes sense! You're restoring JPS archives? In this case the error is expected to happen: the password is used to decrypt the data that is inside the archive, if the password, is wrong, the whole extraction fails.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

webman

Yes, that makes also sense to me. But I suggest to change the error message, if you can see that the pw is wrong so that maybe other users with the same problem are able to find a solution themselves.

Support Information

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!