Skip to content

Could not parse PKey: no start line (ArgumentError)

derkaan edited this page Oct 27, 2015 · 1 revision

Expection when creating/downloading MySQL dump

If you get a similar exception during the step of creating and downloading the MySQL dump - like this one:

remote | mysqldump --host=<your db host> --user=<db user> --password=<your pass> <your db name> --result-file=/path/to/your/wordpress/wp-content/dump.sql

/var/lib/gems/2.1.0/gems/net-ssh-2.9.3.beta1/lib/net/ssh/key_factory.rb:77:in ``read': Could not parse PKey: no start line (ArgumentError)

Then it is most likely caused by your net-ssh gem version (net-ssh version=2.9.3.beta1).

Downgrading to net-ssh 2.9.2 usually helps to solve it.

If possible in your environment then install net-ssh in version 2.9.2 and uninstall net-ssh 2.9.3.beta1.

Install net-ssh 2.9.2:

gem install net-ssh --version=2.9.2

Uninstall net-ssh 2.9.3.beta1:

gem uninstall net-ssh

This command lists you all versions of your installed net-ssh gems. Pick the one you want to uninstall (2.9.3.beta1).

Now you should be able to run wordmove again without any net-ssh exception.