Support

Site Restoration

#34978 Invalid Header in Archive File

Posted in ‘Site restoration’
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

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Onefirefly

Hello, we are receiving the following error when trying to unpack a backup onto our server. We have adjusted the min and max execution time with no luck. Is there anything you can recommend?Β 

nicholas
Akeeba Staff
Manager

Can you please ZIP and attach the backup log file that corresponds to this backup archive?

Moreover, edit kickstart.php and uncomment the following line:

//define('KSDEBUG', 1);

so it now reads

define('KSDEBUG', 1);

and retry the extraction. It will still fail but it will create a file called debug.txt with information about what Kickstart was doing at the the time it encountered the error. Please include that in the ZIP file with the backup log that you send us.

The combination of the information in these two files will give me a much better insight as to what is going on.

Please note that even though this is a public tickets, attachments are still private i.e. only you and us can see them.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Onefirefly

Hi there,

Β 

My backup is too large to upload to this ticket, is there an alternate place I can put it?Β 

Β 

nicholas
Akeeba Staff
Manager

I do not need nor want you to upload the backup file.

I want you to send a ZIP file with exactly two things in it:

  • debug.txt generated by Kickstart when you follow my instructions
  • Akeeba Backup Log.txt which contains the log file you download from Akeeba Backup for the backup record that corresponds to this backup archive.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Onefirefly

See attached.

Β 

Thanks!Β 

nicholas
Akeeba Staff
Manager

Thank you. The log file tells me that it's what I was afraid of: the backup archive is corrupt because of a backup-time server issue.

The file images/drive-videos/patio-both-relaxing-with-wine-coastal-source-540.mp4 was supposed to be 11733828 bytes long. However, PHP could only find 3629489 bytes when reading the file. This means that the file header in the archive says that the file is about 11.2Mb whereas the actual size inside the archive is about 3.46Mb. When the file is smaller than what it's supposed to be the extraction fails. By the time it has extracted 11733828 it's in the middle of a different file, there is no file header to be found there and it doesn't know what to do but fail.

Is taking a new backup possible? If so, you can set the following options in the backup profile:

  • Disable step break before large files: check
  • Disable step break after large files: check
  • Disable proactive step breaking: check
  • Set an infinite PHP time limit: check

If the new backup fails to extract again the problem would be that the server reports one file size to PHP but can only read much less data. This would mean the filesystem on the server is probably corrupt. You would need to exclude this MP4 file from the backup.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Onefirefly

HiΒ Nicholas,Β 

I have removed the file and uploaded a new version and took a backup with the new settings. Unfortunately we are still seeing the same error. What are next steps?Β 

Thanks!Β 

nicholas
Akeeba Staff
Manager

Can you please change the backup settings I gave you and also set the Part size for split archives to 512Mb? This will create more than one files for your backup: .j01, .j02, ...., .jpa. Upload all of them to your new server. Kickstart only shows the .jpa file but actually uses (and needs!) all of these files to extract the backup archive.

If this still doesn't help please send me the backup log file again.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.