• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Migration from Ensim 3.5 to Plesk 8.1 fails

J

j0rus

Guest
Seemed to work OK with 8.0, but I just tried to migrate a site after upgrading to 8.1 and get the following:

Error during dump file retrieving.
Remote agent failed with the following stderr messages: 18:13:51 INFO FileFinder: pwd resolved to /bin/pwd
18:13:51 INFO ------------------------------------------------------------
18:13:51 INFO Migration status reporting initialized.
18:13:51 INFO Status file: /migration/supervisor.18829/dumping-status.xml
18:13:51 INFO ------------------------------------------------------------
18:13:51 INFO FileFinder: psql resolved to /usr/bin/psql
18:13:51 INFO FileFinder: pg_dump resolved to /usr/bin/pg_dump
18:13:51 INFO New connection: postgresql shell connection. db appldb, user , local socket
18:13:51 INFO ------------------------------------------------------------
18:13:51 INFO FILE storage initialized.
18:13:51 INFO Base directory: /migration/supervisor.18829/
18:13:51 INFO Gzip bundles: yes
18:13:51 INFO Bundle split size: do not split
18:13:51 INFO ------------------------------------------------------------
18:13:51 INFO Work dir: /migration/supervisor.18829
18:13:51 INFO Dump file: /migration/supervisor.18829/dump.xml
18:13:51 INFO Status file:
18:13:51 TRACE SQL: SELECT DISTINCT reseller_info.reseller_id, username FROM reseller_info LEFT JOIN reseller ON reseller_info.reseller_id = reseller.reseller_id WHERE (reseller_info.reseller_id <> 0) OR (site_id IS NOT NULL)
psql: FATAL 1: no PostgreSQL user name specified in startup packet

18:13:51 WARN Unfinished SQL query: SELECT DISTINCT reseller_info.reseller_id, username FROM reseller_info LEFT JOIN reseller ON reseller_info.reseller_id = reseller.reseller_id WHERE (reseller_info.reseller_id <> 0) OR (site_id IS NOT NULL)
18:13:51 TRACE SQL: SELECT COUNT(site_id) FROM reseller WHERE reseller_id IN ('0')
psql: FATAL 1: no PostgreSQL user name specified in startup packet

Unable to retrieve sites list from reseller table at /migration/supervisor.18829/EnsimX.pl line 287.
 
no PostgreSQL user name specified in startup packet
the following things might help:

1. deactivate whatever postgresql support you have on your old machine
2. install psql on your new machine
 
Originally posted by DReffects
the following things might help:

1. deactivate whatever postgresql support you have on your old machine
2. install psql on your new machine

1. Ensim stores its appliance config in postgres and I sort of need that info to begin a migration.

2. Don't think this has anything to do with the new machine. I think EnsimX.pl isn't parsing the user correctly while running on the old box ONLY.


How can I modify the migration scripts to use a hard coded postgres username?
 
Support of the SWSoft was resolve this problem by patch of the file /usr/local/psa/PMM/agents/shared/Db/PostgresqlShellBackend.pm

--- PostgresqlShellBackend.pm (revision 80467)
+++ PostgresqlShellBackend.pm (working copy)
@@ -16,8 +16,8 @@
sub _getCmd {
my ($self, $cmd, $additionalOptions) = @_;

- $cmd = "PGUSER=$self->{user} $cmd";
- $cmd = "PGPASSWORD=$self->{password} $cmd";
+ $cmd = "PGUSER=$self->{user} $cmd" if $self->{user};
+ $cmd = "PGPASSWORD=$self->{password} $cmd" if $self->{password};
$cmd .= " -h '$self->{host}'" if $self->{host} and $self->{host} ne 'localhost';
$cmd .= " $additionalOptions" if $additionalOptions;
 
Originally posted by sergk
Support of the SWSoft was resolve this problem by patch of the file /usr/local/psa/PMM/agents/shared/Db/PostgresqlShellBackend.pm

--- PostgresqlShellBackend.pm (revision 80467)
+++ PostgresqlShellBackend.pm (working copy)
@@ -16,8 +16,8 @@
sub _getCmd {
my ($self, $cmd, $additionalOptions) = @_;

- $cmd = "PGUSER=$self->{user} $cmd";
- $cmd = "PGPASSWORD=$self->{password} $cmd";
+ $cmd = "PGUSER=$self->{user} $cmd" if $self->{user};
+ $cmd = "PGPASSWORD=$self->{password} $cmd" if $self->{password};
$cmd .= " -h '$self->{host}'" if $self->{host} and $self->{host} ne 'localhost';
$cmd .= " $additionalOptions" if $additionalOptions;

Patch worked great, thanks much! :)
 
Back
Top