Import WP site to local issue

I am attempting to import a WP site back up into local. I’ve already downloaded the back file(.zip). Once I get through the initial wizard it gives me the following error.

Attached -
Errors x 3
Screenshot of the backup I downloaded from HostGator

local error ss-1
local error ss-2
local error ss-3

Troubleshooting

Windows prompts me for Admin Privileges. However, when I say yes it still doesn’t take

Appreciate any help.

Regards,
Gabe

Hi @GDBM!

Do you have any antivirus, security, or firewall applications that could be blocking Local? More details about troubleshooting this here: Router Mode

Are you running other developer applications simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.

If you’re still having trouble could you provide some more details to help us take a further look?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Thanks for the reply, appreciate it!

I’m only running Windows Defender
The only Dev app running in Local

Windows 10
Local Version: 7.2.1+6433

I believe these are the logs. Let me know

2023/09/26 20:37:23 [emerg] 12856#13100: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 20:37:23 [emerg] 11024#10664: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 20:37:24 [emerg] 12380#9352: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 23:05:32 [emerg] 2432#8600: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 23:05:33 [emerg] 8484#11736: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 23:05:33 [emerg] 3888#4316: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 23:07:29 [emerg] 8744#8640: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 23:07:30 [emerg] 10608#2700: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/26 23:07:31 [emerg] 13164#3516: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 11:50:39 [emerg] 3360#10192: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 11:50:40 [emerg] 9356#8920: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 11:50:41 [emerg] 12380#5604: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:02:50 [emerg] 11368#9048: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:02:51 [emerg] 12532#13820: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:02:52 [emerg] 8756#1380: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:07:27 [emerg] 5716#9028: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:07:28 [emerg] 13532#8272: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:07:29 [emerg] 2412#13940: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:25:58 [emerg] 13468#1628: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:25:59 [emerg] 14236#7696: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
2023/09/27 12:26:00 [emerg] 13764#14232: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

Thanks again…

Based on those errors it seems like something on your machine is still blocking Local. Either Windows Defender or another program. You could try checking this:

You could also try changing your Router Mode. Preferences>Advanced>RouterMode>Localhost

Adjustment:
Preferences>Advanced>RouterMode>Localhost

Troubleshooting:

The Permissions error didn’t appear this time. Here are some screenshots that show the sequence of events.

Error: The Following SQL files failed to import.
ss5


ss2
ss3
ss4

ss6
ss7 - error
ss8

Please try again with a compatible zip file indicates there might be some deeper issue with the contents of the zip file or the database. Where did this backup come from?

You could attempt a more manual import. The steps would look like this:

  • Unzip the file in a common location, like the desktop
  • Create a new, blank site in Local. Use whatever username/password you like since you’ll overwrite the DB with this site archive’s dump.
  • The wp-content folder created with the new site you can rename wp-content-old or just delete it if you wish. Copy the wp-content folder from your backup to the newly created site’s location to take its place.
  • Copy the correct SQL file to the site root (App>Public)
  • Within Local, click Open Site Shell
  • Import the SQL file with the command wp db import filename
  • If that works, now Search and replace the domains. This might require more than one S/R, for example:
    wp search-replace production.com mysite.local
    wp search-replace https://mysite.local http://mysite.local

Is there a video of this process?

We don’t have a video for this. Something a little bit more simple you could try is unzipping your site file, and reducing it down just to wp-content and SQL files and then zipping it back up. Removing any unnecessary core files, backups, etc that could be confusing the import process.

Thanks for everything so far Nick. I’ll keep you posted.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.