It appears that on my Debian wheezy machine, the call to $server->shell_exec() strips the empty quotes in the command that intentionally tries to fail a MySQL connection. That results in a mysql error, but not the one the function expects, so the migrate rolls back, leaving me stuck.

A simple fix is to actually pass a trivial query rather than an empty one. Attached patch does just that, it attempts to run "SELECT VERSION()" after connecting to the database server.

CommentFileSizeAuthor
failed-to-fail-e.patch575 bytescafuego

Comments

anarcat’s picture

This looks good, although I would have personnally done "SELECT 1" instead. :)

exnihilo’s picture

Patch works for me, thank you (Debian testing/wheezy, PHP 5.4.0-3, MySQL 5.1.61, Apache/2.2.22).

Anonymous’s picture

Status: Needs review » Fixed

Good enough for me - committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.

  • Commit f607b56 on dev-drupal-8, 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by mig5:
    Issue #1573004 by cafuego - provision-migrate fails with 'Dummy...