Support

Site Restoration

#40341 Archive file is corrupt

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
8.1
CMS Type
WordPress
CMS Version
latest
Backup Tool Version
8.2.0
Kickstart version
latest

Latest post by nicholas on Thursday, 07 March 2024 01:24 CST

Benny7587

I created a 'succesful' backup and try to restore it to my staging website. The archive is split into 8x20MB (j01-j08) and a jpa file. After the backup the jpa file is 0 bytes (??).  This looked wierd to me so i tried several times but every time the same. 

When i do an install with kickstart (unpacking the archive files) i see the following error: The archive file is corrupt, truncated or archive parts are missing.

What might be the issue here?

 

 

nicholas
Akeeba Staff
Manager

Can you try setting the part size for split archives to 21 MiB and take a new backup? Do you still get a zero bytes file?

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!

Benny7587

Hi Nicholas,

After changing the spilt archive size to 21MB i suddenly get a  much larger backup. 481MB instead of 160MB. The jpa-file is 19.5MB now.

I make a backup every month via a cron job and when is look back the backups from december until today were all 160MB with a 0 MB jpa-file.

When i copy the new file-set the extraction is fine and i'm sure the rest of the install will also succeed.

For sure i will check the backups of my other websites and when the jpa-file is 0 bytes., I know there is something wrong...

nicholas
Akeeba Staff
Manager

Changing the part size won't change your backup size, but what happened here gave me a good clue to help you further (as I hoped it would, and even better to be perfectly honest).

The previous backups seems to have been incomplete.

That would explain why there were fewer parts and why the last part written to was 0 bytes.

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!

Benny7587

I finaly found the issue. On this specific website i have a downloadable exe file with a very long filename like: rustdesk-host=pt.xxxxxx.me,key=NOrO5X0BYZ34ahCZn+6EMbaHokDlbSrFsIIFpaNuVOY=,.exe

When this file is in the backup, the backup breaks and the jpa file is 0 bytes long.

Now that i excluded this file from the backup the backup is okay. Now that i know what the cause is, it's not a real problem for me anymore. 

nicholas
Akeeba Staff
Manager

Ah, I see! PHP timed out while taking a backup. The backup had never finished, that's why the archive was broken and Kickstart complaining about it.

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!

Support Information

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!