dokku / dokku-mongo

a mongo plugin for dokku
MIT License
174 stars 32 forks source link

mongo:import returns Failed: gzip: invalid header #108

Closed fmendoza closed 6 years ago

fmendoza commented 6 years ago

I executed the export command in one of my servers following the docs like this:

dokku mongo:export lolipop > lolipop.dump.gz

And when I tried to import it in my other server running dokku as well:

dokku mongo:import lolipop < database.dump.gz

I received this error message Failed: gzip: invalid header

josegonzalez commented 6 years ago

Is dokku mongo:export lolipop erroring somewhere? Run it without piping output elsewhere.

fmendoza commented 6 years ago

I suspect that my old server have a old version of this plugin without gzip compression in mongo:export command.

fmendoza commented 6 years ago

That was it. You can close this issue.

Neamar commented 4 years ago

For anyone reading this in the future:

dokku plugins:update mongo
dokku mongo:upgrade <service> # <---- !!! will create downtime !!!
dokku mongo:export <service>
josegonzalez commented 4 years ago

Upgrade isn't strictly necessary if both mongo installs are the same version.