Skip to content

strapi import fails: error: [FATAL] EBUSY: resource busy or locked #15613

@exotexot

Description

@exotexot

Bug report

Required System information

  • Node.js version: 16
  • NPM version:
  • Strapi version: 4.6.0
  • Database: postgres
  • Operating system: unbuntu/docker

Describe the bug

I really appreciate the new new strapi export / import feature!
yarn strapi export is successful! I get the confirmation overview of my existing db entries.

I recreate another strapi instance, same content types are established.
strapi import crashes:

$ strapi import -f backups/my-strapi-export.tar.gz
? The import will delete all data in your database. Are you sure you want to proceed? Yes
Starting import...
[2023-01-27 18:17:21.936] error: [FATAL] EBUSY: resource busy or locked, rename '/opt/app/public/uploads' -> '/opt/app/public/uploads_backup_1674843441931'
Import process failed.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/opt/app #

Steps to reproduce the behavior

strapi import

Expected behavior

Successful strapi import

Metadata

Metadata

Labels

issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:data-transferSource is core/data-transfer packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

Status

Fixed/Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions