Support

Akeeba Backup for Joomla!

#17716 Invalid archive format

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
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by on Sunday, 17 November 2013 18:00 CST

user79065
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (unknown)
PHP version: 5.3
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Akeeba Backup version: last version

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 2Mb, please upload it on your server and post a link to it.

Description of my issue: Sometimes when i try to extract files from jpa archive (through front end backup with cronjob and upload automatically to dropbox), Akeeba eXtract Wizard, then after minutes while it's extracting, says "Invalid archive format"
Any solutions?
This is my last log: http://www.kingdomgame.it/akeebalog.txt

dlb
One thing you have to watch out for is the change in operating systems and file name rules. For example, the file name "foo:bar.txt" is legal under Linux, but not legal under Windows. That is a pretty common cause of extraction problems. Using the "skip most problem files" will bypass this type of error.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
I did it "skip most problem" files in Akeeba eXtract Wizard but nothing has changed

dlb
There are a couple of "is it plugged in?" items to consider:
  • Always download your archives vis FTP in binary mode. Auto is not good enough, if your ftp program does not recognize the file type, it could switch to text mode. Text mode will absolutely corrupt your archive.
  • If you have a multi-part archive, make sure all of the parts are downloaded.
  • Make sure you have enough disk space.
Are you getting any more error message from the eXtract Wizard or is it just "invalid archive?"

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
At the moment i got always the same error, but i said, only sometimes with some backups i have this problem, so not always. I don't download from ftp but i leave dropbox sincronize with my pc all the files uploaded while akeeba makes backup.

nicholas
Akeeba Staff
Manager
Please help me understand this.

1. If you use Kickstart to extract the archive downloaded through Dropbox does it work?

2. If you download the backup archive with FTP does it work with eXtract Wizard?

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!

user79065
I must try it! I will let you know soon!

user79065
I tried to extract jpa backups downloaded from ftp through akeeba extract wizard but now it extract just some files and folders. That's so strange!
Nicholas can you check my configuration about akeeba? maybe i set up bad my configuration or i think maybe some setting of admin tools can disruptive to it! It's much important because i've a big site and i need all backups working..

nicholas
Akeeba Staff
Manager
When you say "it extracts just some files and folders" what do you mean? Which folders are missing? I need this information to read your log effectively.

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!

user79065
Last time that i tried, it extract just few folders like images, modules like com_k2 and some files that are in the root. The rest haven't been extracted.. Maybe admin tools makes something in this problem..

user79065
I tried to extract last backups and that's are data that it extracted.
Nicholas, if i give you admin access can you check my akeeba and admin tools configuration pls? It's so important..

dlb
You said some archives do extract properly. Can you tell me if the log you linked to in your first message was a good archive or a bad one? That log looks like a complete backup, you have more files in it than were extracted in the list in your last message.

If Admin Tools was the problem, the files would not be added to the archive. I do not think it is a configuration problem with Admin Tools.

Do not post your login details, this is a public ticket. If we need them, we will switch it to private to protect your login and password details.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
Of couse, i saw that.
However as you want Dale :) Should be better that you check settings...

user79065
Last backup always downloaded from dropbox in jpa format, akeeba extract wizard extracted just few folders and files and if i disable "skip most errors", it says "Could not create file C:\xampp\htdocs\kickstart\site-www..\games-week.jpg"
In kickstart instead, it can't to extract nothing and says enabling skip most errors: "impossible create a folder images/eventi-videoludici/games-week/" and if i disable skip most errors: "File C:/xampp/htdocs/kickstart/images/eventi-videoludici/games-week/games-week.jpg is not writable"

I repeat, it is strange that sometimes can extract all files and folders and sometimes not at all..

dlb
  1. Is the log file for this backup still available? If so, please zip and post it.
  2. Are you extracting over an existing site or to an empty folder?
  3. Does the file File C:/xampp/htdocs/kickstart/images/eventi-videoludici/games-week/games-week.jpg already exist in that folder? If so, is it writable, or read only?
  4. The folder name "eventi-videoludici" suggests that English may not be your native language. Are there any non-alpha characters in the path name, non-ASCII characters that may not be valid in a file or folder name on the target operating system?
Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
Hi Dale!
The last log is not available 'cause i set in "show only warning and errors" in configuration profile, but tomorrow i will post it!
About if folders and files are writable, maybe yes, in ftp are set in 755, anyway i used the admin tools function to optimizing permissions folders some days ago.
Usually i extract all in my desktop in a new folder..
English is not my mother language, however there are not file or folders that contains strange characters..

dlb
A log from an archive that will not extract would be helpful. That will tell me if the files were added to the archive. It will also give me an idea about how the files were transferred to Dropbox. I will watch out for the log tomorrow. Thank you.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
Good Morning :)
This is the log of last backup!
log akeeba
I tried to extract archive without problems -.-" it extract all files and folders...

dlb
I'm glad this morning's backup extracts properly, but that doesn't help to solve the problem. I need a log from a broken archive to see if I can spot any problems during the archive creation. Can you please try again on Monday and see if the archive is broken?

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
hi Dale,
this is log akeeba of wrong backup (saturday backup). Now i try to extract sunday backup..

dlb
Just a couple of off topic observations, you have a ton of images in the folder /images/.tmb that look like they may be cached images. Also the folder media/k2/items/cache looks like a cache folder. If you investigate these two folders and find they really are caches and don't need to be backed up, you could significantly reduce the size of your backup file.

I do not see any obvious missing folders in the backup. There are no warnings about files that could not be read. One interesting thing that I see is that the .jpa file, which is the smaller file, took 14 seconds to upload, the .j01 file, the larger file, took only 6 seconds.

You have let Dropbox sync the files to your local computer and the archive will not extract with Kickstart or the eXtract Wizard, you get an "invalid archive format" error. Is that correct?

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

user79065
It's correct Dale. Dropbox is however syncronized with my pc. Akeeba makes backup at 00.00 everyday by cronjob (front-end backup), then when i turn on my pc next morning, dropbox syncs and downloading all archive with my pc. Then with akeeba extract wizard or Kickstart tried to extract data from archive.

nicholas
Akeeba Staff
Manager
Can you please uncheck (clear the checkbox so that it is no longer checked) the option "Process each part immediately" and retry?

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!

user79065
Done it! I'll notice you tomorrow with new log. I hope it will go fine!

user79065
Same problem Nicholas, it can't extract all.. This is new log and this is log of sunday

nicholas
Akeeba Staff
Manager
I can't see a problem in the backup process. What is the exact error message you are receiving from Kickstart and Akeeba eXtract Wizard?

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!

user79065
Always the same error. in akeeba extract wizard if i disable "skip most errors", it says "Could not create file C:\xampp\htdocs\kickstart\site-www..\games-week.jpg"
In kickstart instead, it can't to extract nothing and says enabling skip most errors: "impossible create a folder images/eventi-videoludici/games-week/" and if i disable skip most errors: "File C:/xampp/htdocs/kickstart/images/eventi-videoludici/games-week/games-week.jpg is not writable"

I think htaccess or data permission are the problems... Can admin tools make a problem like this? I recommend that you check my admin tools and akeeba backup configuration if is it possible...

nicholas
Akeeba Staff
Manager
Wait, what?! In the beginning of the ticket you were telling us about an "Invalid archive format". What you are describing now is an entirely different issue. In fact, it is an issue that is not only unrelated to our software, its solution is documented by yours truly about three years ago: https://www.akeebabackup.com/documentation/troubleshooter/kscantextract.html#kstslocal Read the paragraph starting with "If you are on a Windows XP Professional, Vista (all versions) or 7 (all versions) machine". As a result there is nothing for me to check (unless you live somewhere near Athens, Greece, in which case I can check your computer's permissions – following the same steps as the ones in the documentation page above).

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!

user79065
I read that guide before write a ticket nicholas but i didn't solve my problem.. Always the same error...

nicholas
Akeeba Staff
Manager
The problem is that Kickstart and eXtract Wizard can't extract the file in XAMPP's directory. The only reasons I know are a. permissions (see the guide) and b. lack of disk space. One easy way to find out if there are permissions issues is using Akeeba eXtract Wizard (NOT Kickstart!) to extract the backup archive in your desktop (NOT XAMPP's folder). Does this work? If not, what is the exact error message you are receiving (if possible upload a screenshot)?

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!

user79065
This is what it says when i disable "skip most errors" and i extract to desktop--> image 1
This is what is do when i enable "skip most errors" and i extract to xampp folder --> image 2

nicholas
Akeeba Staff
Manager
And finally I understand what is going on. Sorry, your archive cannot be extracted on Windows because of the file names on your server. Stay with me, I will try explaining this (it's VERY complicated).

First some background information.

Linux and other UNIX-like operating systems such as Mac OS X, Solaris etc use case-sensitive filesystems. This means that the filenames ABC, abc, Abc and aBc point to four different files.

Windows is, just like in everything else, an exception: its filesystem is case-insensitive. This means that the filenames ABC, abc, Abc and aBc point to the one and the same file.

Files and directories names have to live under the same filesystem. This means that you cannot have a file and a directory with the same filename. On Linux, since the filesystem is case-sensitive, you can have a file called Abc and a directory called abc. On Windows this would be impossible, as both names would have to point to the same thing.

Now, back to your site. Let's see these interesting log lines:
DEBUG   |131012 00:01:10|-- Adding images/eventi-videoludici/Games-week to archive (source: <root>/images/eventi-videoludici/Games-week)
INFO    |131012 00:01:24|Scanning directories of <root>/images/eventi-videoludici/games-week
INFO    |131012 00:01:24|Scanning files of <root>/images/eventi-videoludici/games-week
DEBUG   |131012 00:01:24|Packing files
DEBUG   |131012 00:01:24|-- Adding images/eventi-videoludici/games-week/games-week.jpg to archive (source: <root>/images/eventi-videoludici/games-week/games-week.jpg)


And let me explain what I read in them. Inside the folder images/eventi-videoludici/:
  • There is a FILE called Games-week (first letter is uppercase)
  • There is a DIRECTORY called games-week (all lowercase)
  • Inside the games-week directory there is a FILE called games-week.jpg


During extraction we first extract the FILE Games-week. Immediately afterwards we try to extract the games-week.jpg file which is inside a directory called games-week. So we have to create the DIRECTORY called games-week first. As soon as we try to create the directory Windows tells us that this is impossible. It tells us that this is impossible because Windows sees that there is a file with the same name. However the error it produces is exactly the same as if your disk was full or if your write permissions would not allow the file to be written. That's why you get the error message that the file is unwriteable when, in fact, the real problem is that it's impossible to create this directory on Windows.

BUMMER!

The solution is to go to Akeeba Backup, Files and Directories Exclusion, go inside the images directory (from the left pane), then go inside the eventi-videoludici directory (from the left pane) and exclude the Games-week file (from the RIGHT pane, not from the left pane). This will tell Akeeba Backup to not backup the file which causes this issue.

I cannot guarantee that you do not have any other similar naming issues on your site. Spotting this one took me half an hour and I knew what I was looking for.

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!

user79065
Thanks so much for your answer.
i'll let to know tomorrow what will happen!
Many thanks nicholas!

user79065
Hello,
now it says: "Could not open C:/xampp/htdocs/kickstart/images/eventi-videoludici/games-week/games-week.jpg for writing."
So i'm excluse also this file but i can't go with attempts.. Isn't there any fast solution for this or other problem like this..?

nicholas
Akeeba Staff
Manager
Um, it's exactly the same problem as before, for the reasons I already explained...

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!

user79065
Maybe now works fine! In case of another problem, i'll let know you! Thanks!

nicholas
Akeeba Staff
Manager
You're welcome! I'm glad we could solve that very tricky issue :)

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: 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!