Failure to import site from .tar.gz file

What issue or error are you experiencing?

“Please try again with a compatible zip file”


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc






System Details

  • Local Version: Version 9.0.5+6706

  • Operating System (OS) and OS version: MacOS 14.6.1 (23G93)


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-logs.zip (7.9 KB)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Thanks for sharing logs, @DJS. They show that MySQL could not handle some of the SQL files in your .tar.gz backup file:

Error: Local was unable to import the following SQL files:
- /app/sql/avatar.sql
- /app/sql/crawler_blacklist.sql
- /app/sql/crawler.sql
- /app/sql/img_optm.sql
- /app/sql/img_optming.sql
- /app/sql/url_file.sql
- /app/sql/url.sql

The import errors mention SQL syntax that may have been generated with a different version of MySQL. (For example, “You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘id bigint(20) unsigned NOT NULL AUTO_INCREMENT,\n url varchar(1000) NOT NULL’”.)

You could try extracting the .tar.gz file, removing those SQL files, recompressing the archive and importing it into Local again. (You would lose the data in those files, but it may give you a site you can work with locally.)

Thanks Nick – good of you to give such a detailed answer. I’m not a techie at all and just trying to make my wife’s old website that we have backed up available for content scaping.

I have extracted the file per attached screenshot.

I tried loading MySQL to do editing but it does not recognise the .sql file in the extracted folder from the .tar.gz.

I have opened the .sql file content in text edit, but there are no /app/sql/… entries there.

I have searched other folders for /app/sql/ and none found.

Is there an easy way you know of to view these files and delete them? Any steer appreciated.

Cheers
Dean

I just sent a request via a direct message to see if it’s possible to obtain your import file.