• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the current Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Issue Plesk Migrator fails on mysql connection

KDawson

Basic Pleskian
Server operating system version
Ubuntu 24.04 LTS
Plesk version and microupdate number
18.0.61
Running Plesk migrator shows:

Failed to fetch information from target servers

Cause: Command execution failed on the local server with non-zero exit code.

command: MYSQL_PWD="$(cat /etc/psa/.psa.shadow)" mysql --silent --skip-column-names -u admin psa -e 'SHOW VARIABLES LIKE '"'"'socket'"'"''
exit code: 1

stdout:

stderr: ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)
How do I get past this?
 
For what it's worth, here are the mysql versions on migration source & target.

Source:
> mysql --version
mysql Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1

Target:
> mysql --version
mysql Ver 15.1 Distrib 10.11.7-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

I was migrating sites between this pair without problems yesterday. Overnight, Plesk Obsidian 18.0.61 Update 5 was installed (f that matters).
 
Also FWIW, /run/mysqld/mysqld.sock exists (it has all along). It ends with an "=" in an ls listing and the file utillity shows its type as "socket."

Doing ps -ax | grep mysql returns nothing, but ps ax | grep maria shows a mariadb process running.
 
Back
Top