cms icon indicating copy to clipboard operation
cms copied to clipboard

[3.x]: INSERT INTO `resourcepaths` ... ON DUPLICATE KEY UPDATE error

Open JayBox325 opened this issue 3 years ago • 1 comments

What happened?

Description

I have a CraftCMS 3.7.44 staging site on a Fortrabbit 8.1 instance, where I have exported the database. I am now setting up a new local Nitro instance with the same repo.

When I run ./craft install everything works perfectly and I can access the CMS. But when I import my production database, I can't log into the CMS (spinner gif just spins for eternity) and I'm getting the following in my web.log: web.log

Steps to reproduce

  1. Set up new nitro local project
  2. Export the production DB
  3. Import the production DB into the nitro project

Expected behavior

The local version should be a working copy of the production DB site.

Actual behavior

Can't log into the CMS.

Craft CMS version

3.7.44

PHP version

8.0

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

JayBox325 avatar Jun 08 '22 22:06 JayBox325

I’m seeing lots of DB-related issues in the logs. Most recent is:

Base table or view not found: 1146 Table 'arksen-multi-sites.categorygroups' doesn't exist

So it sounds like the DB restore didn’t work properly, or your connection settings in config/db.php or .env are incorrect.

brandonkelly avatar Jun 08 '22 22:06 brandonkelly