Skip to content

"Invalid Input Data Please Verify Unique Constraints " after migrating from OneClick to AWS #9369

@NOR-TB

Description

@NOR-TB

Bug report

Describe the bug

Moved my strapi build from digitaloceans one click service to aws self-installed strapi on ubuntu 18. with postgres rds.

Database was migrated using aws datamigration service. Content was successfully migrated. There were some initial errors, but repeat of the process with truncate enabled allowed the database to be moved successfully.

Strapi is showing the data, but when trying to edit the migrated content you get met with the error "Invalid Input Data Please Verify Unique Constraints ".

Steps to reproduce the behaviour

  1. Open a digitalocean one click strapi app add some content.
  2. Set up aws strapi server and database and s3 bucket and steps.
  3. move database from digitalocean to aws.
  4. try to change content after logging in.

Expected behavior

No error and successful edit of the fields.

System

  • Node.js version: 10.19.0
  • NPM version: 6.14.4
  • Strapi version: 3.46
  • Server: AWS EC2 Ubuntu 18
  • Database: postgres on aws rds
  • Operating system: windows os

Additional context

from the backside the postgres database is giving a 400 error. But if i were to add a item to the collection content, then that item works fine. I just cant edit or change SOME fields in the cms for content that was migrated over.

Ive tried with node_env to both dev and production.

ive tried strapi development mode.

ive tried strapi production.

ive tried updating all the npm packages and updating to latest strapi build.

still getting the same error.

is this issue related to security groups on aws? or the s3 bucket for file uploads?

any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: lowIf the issue only affects a very niche base of users and an easily implemented workaround can solvesource: core:databaseSource is core/database packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions