craftcms / nitro

Speedy local dev environment for @craftcms.
https://getnitro.sh
MIT License
178 stars 24 forks source link

Nitro fails importing DB from .tar.gz; succeeds from .sql #444

Closed proimage closed 2 years ago

proimage commented 2 years ago

Description

When I tried to import a .tar.gz file, it failed with this error:

Error: rpc error: code = Internal desc = error importing the database Exit Status: 1

When I manually extracted the .sql from the archive (using 7-Zip) and tried importing it, it worked fine.

Steps to reproduce

  1. Tar & Gzip an .sql file
  2. Try to import it using nitro db import ______

Additional info

Server: Docker Engine - Community Engine: Version: 20.10.11 API version: 1.41 (minimum version 1.12) Go version: go1.16.9 Git commit: 847da18 Built: Thu Nov 18 00:35:39 2021 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.12 GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d runc: Version: 1.0.2 GitCommit: v1.0.2-0-g52b36a2 docker-init: Version: 0.19.0 GitCommit: de40ad0

jasonmccallister commented 2 years ago

We only accounted for zip and sql files, we should probably account for tar and gz files.

jasonmccallister commented 2 years ago

Hi, we are closing this issue as we have decided to retire Nitro, so no additional work will occur on this project. You can read the official blog post here https://craftcms.com/blog/retiring-craft-nitro. We appreciate everyones feedback and involvement and we look forward to refocusing our efforts on Cloud!

If you're looking for a new local development environment, we recommend DDEV and have a knowledge base article to help you with the transition: https://craftcms.com/knowledge-base/migrating-from-craft-nitro-to-ddev.