• 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

Update Parallels Panel 11.5.3 to 12.0.18. how to ?

NaSOnWeb

Basic Pleskian
Hi, i would like to update my plesk pannel to the current version 12.0.18.
I'm for now on 11.5.3
OS : Ubuntu 10.04.3 LTS
Hi, i would like to update my plesk pannel to the current version 12.0.18.
I'm for now on 11.5.3
OS : Ubuntu 10.04.3 LTS Parallels Panel version: 11.5.3

So I have some questions about that.

1 - I just want to make a backup of my configuration in first , just in case. but when I launch it by plesk manager i have this error

pmm utility 'PMMCli' raised an exception. Error code is: 1
See pmmcli.log to find out detailed information on this

I've seen in the doc this thread http://kb.odin.com/en/117976
my version file is not missing... and the procedure to update the database afraid me a little ...

2 - Can I update directly to the last version or is it a best way to update my plesk progressively, version by version since mine to the last ?
and how can I do that ? is it command lines (where to find the list of versions ? ) Please, if you can explain me step by step I'm not an expert in server administration

3 - is there a check before installation if I click the link to update plesk in the admin pannel homepage ? Could I cancel ?

4 - How can I be sure to don't crash my server ? I'm in production mode...


thanks a lot
 
1. Not enough details. Need results of troubleshooting, errors from backup logs, etc.
2. Yes, you can update Plesk directly to last version.
3. Yes, there is internal pre-upgrade checker which will notify you about possible problems.
4. Only full backup of your server will make you absolutely sure.
 
Hi, and thanks for your support Igor

here is the log of my last backup , if you can help me...
and for the full server backup it's a little hard to do this for me cause I have almost 1To online... so I will see...

[2014-10-19 19:34:21.964|10246] DEBUG: LOG: custom log /opt/psa/PMM/logs/backup-2014-10-19-19-34-21-312/backup.log
[2014-10-19 19:34:21.967|10246] INFO: Executing <subprocess[10247] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-19-193421.98'>
[2014-10-19 19:34:22.154|10246] INFO: Subprocess raised ExecuteException: Subprocess <subprocess[10247] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-19-193421.98'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

[2014-10-19 19:34:22.156|10246] CRITICAL: PMMUtility exception:
Subprocess <subprocess[10247] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-19-193421.98'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

Traceback (most recent call last):
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 2491, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 2354, in make_dump
return ActionRunner(MakeDumpAction, backup_task_description, None).doActivity()
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 164, in doActivity
result = self.processor.doActivity()
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 1349, in doActivity
raise PMMUtilityException('PMMCli', x)
PMMUtilityException: PMMCli was finished with exit code 1

[2014-10-19 19:34:22.157|10246] INFO: Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1000</errcode>
<errmsg>pmm utility 'PMMCli' raised an exception. Error code is: 1
See pmmcli.log to find out detailed information on this</errmsg>
</response>

a second question. Did the last version of plesk fix the bash vulnerability
(https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271) ?

thanks again !!!
 
Hi again...
I have a little problem when following procedure :'(

lsb_release -a | grep Description | awk '{print $2}' >> /usr/local/psa/version
No LSB modules are available.

edit : sorry, i do not seen
Note: do not pay attention on the possible waniing like: "No LSB modules are available."
 
I've followed the procedure but same error...
logs are like that

blah blah blah

[2014-10-20 10:28:19.280|30906] DEBUG: --> <pmmcli.MakeDumpAction object at 0xbaa510>
[2014-10-20 10:28:19.280|30906] INFO: stdin: <backup-task-description><misc owner-guid="9066a140-fa8e-4146-b6bd-13c779dc9bef" owner-type="server" verbose-level="5" owner-name="server"/><dumps-storage-credentials storage-type="local"><root-dir>/var/lib/psa/dumps</root-dir><file-name/></dumps-storage-credentials><backup-specification><backup-options type="configuration-only" compression-level="standard" suspend="false" mail-to="" description="Sauvegarde du serveur.&#13;&#10;Date de cr&#xE9;ation : Oct 20, 2014 10:28 AM" mssql-native-backup="true"/><object-to-backup type="server" id="1" name="server"/></backup-specification></backup-task-description>
[2014-10-20 10:28:19.283|30906] INFO: Packet succesfully validated.
[2014-10-20 10:28:19.284|30906] DEBUG: <pmmcli.ActionRunner object at 0x7f60680b4d10>: doActivity
[2014-10-20 10:28:19.284|30906] DEBUG: LOG: init 'backup-backup' (with session=False)
[2014-10-20 10:28:19.284|30906] DEBUG: LOG: no logs dir in session, create
[2014-10-20 10:28:19.284|30906] DEBUG: LOG: log dir /opt/psa/PMM/logs/backup-2014-10-20-10-28-19-373
[2014-10-20 10:28:19.284|30906] DEBUG: LOG: custom log /opt/psa/PMM/logs/backup-2014-10-20-10-28-19-373/backup.log
[2014-10-20 10:28:19.286|30906] INFO: Executing <subprocess[30907] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-20-102819.943'>
[2014-10-20 10:28:19.471|30906] INFO: Subprocess raised ExecuteException: Subprocess <subprocess[30907] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-20-102819.943'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

[2014-10-20 10:28:19.473|30906] CRITICAL: PMMUtility exception:
Subprocess <subprocess[30907] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-20-102819.943'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

Traceback (most recent call last):
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 2491, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 2354, in make_dump
return ActionRunner(MakeDumpAction, backup_task_description, None).doActivity()
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 164, in doActivity
result = self.processor.doActivity()
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 1349, in doActivity
raise PMMUtilityException('PMMCli', x)
PMMUtilityException: PMMCli was finished with exit code 1

[2014-10-20 10:28:19.473|30906] INFO: Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1000</errcode>
<errmsg>pmm utility 'PMMCli' raised an exception. Error code is: 1
See pmmcli.log to find out detailed information on this</errmsg>
</response>
 
Please check output of following command in CLI:

# /usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-20-102819.943
 
Hello Igor,
here is the result.
thank you :)

"my" variable $relativeDumpPath masks earlier declaration in same scope at /opt/psa/admin/bin/plesk_agent_manager line 789.
[32720]: 07:41:43 DEBUG ------------------------------------------------------------
[32720]: 07:41:43 DEBUG Migration status reporting initialized.
[32720]: 07:41:43 DEBUG Status file: /opt/psa/PMM/sessions/2014-10-20-102819.943/dump-status.xml
[32720]: 07:41:43 DEBUG ------------------------------------------------------------
Runtime error: Available disk space () is less than required by storage bundle (31457280) at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 519, <VERSION> line 2.
at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 519
Storage::Storage::reserveSpace('Storage::FileStorage=HASH(0x1d62738)') called at /opt/psa/PMM/agents/shared/Storage/FileStorage.pm line 45
Storage::FileStorage::_init('Storage::FileStorage=HASH(0x1d62738)', 'gzip_bundle', '', 'output_dir', '/var/lib/psa/dumps', 'split_size', undef, 'sign', 1, ...) called at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 22
Storage::Storage::new('Storage::FileStorage', 'gzip_bundle', '', 'output_dir', '/var/lib/psa/dumps', 'split_size', undef, 'sign', 1, ...) called at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 172
Storage::Storage::createFileStorage('', '/var/lib/psa/dumps', undef, 1, 31457280, undef) called at /opt/psa/admin/bin/plesk_agent_manager line 542
main::perform('verbose', 0, 'get-size', 1, 'split-size', undef, 'session-path', '/opt/psa/PMM/sessions/2014-10-20-102819.943', 'all', ...) called at /opt/psa/admin/bin/plesk_agent_manager line 1319
main::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try('CODE(0x62b850)', 'HASH(0x1d5a190)') called at /opt/psa/admin/bin/plesk_agent_manager line 1327
main::main() called at /opt/psa/admin/bin/plesk_agent_manager line 1331.
 
Available disk space () is less than required by storage bundle

Run

# df -h
# df -i

and check that you have enough free disk space on your server.
 
yep
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 2.2G 17G 12% /
/dev/root 20G 2.2G 17G 12% /
/dev 7.9G 168K 7.9G 1% /dev
none 7.9G 0 7.9G 0% /dev/shm
none 7.9G 624K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock
none 7.9G 0 7.9G 0% /lib/init/rw
/dev/md2 1.8T 1.1T 677G 62% /var
none 7.9G 624K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock

thanks for your help :)
 
Last edited:
Try to run

# cat /usr/local/psa/PMM/agents/shared/HelpFuncs.pm | grep df

You will see something like:

my $df = qx( df -P $mount) or die $!;

Try to modify this string in this file as:

my $df = qx( df -P -B1 $mount) or die $!;

and repeat backup procedure.
 
Hello Igor...
I've modified the file but ...
error again

[2014-10-29 18:45:32.690|15439] DEBUG: LOG: custom log /opt/psa/PMM/logs/backup-2014-10-29-18-45-32-991/backup.log
[2014-10-29 18:45:32.692|15439] INFO: Executing <subprocess[15440] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-29-184532.273'>
[2014-10-29 18:45:33.447|15439] INFO: Subprocess raised ExecuteException: Subprocess <subprocess[15440] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-29-184532.273'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

[2014-10-29 18:45:33.458|15439] CRITICAL: PMMUtility exception:
Subprocess <subprocess[15440] '/usr/bin/perl /opt/psa/admin/bin/plesk_agent_manager server --get-size -c --session-path=/opt/psa/PMM/sessions/2014-10-29-184532.273'> was finished with exit code 1
== STDOUT ====================

== STDERR ====================

Traceback (most recent call last):
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 2491, in main
data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 2354, in make_dump
return ActionRunner(MakeDumpAction, backup_task_description, None).doActivity()
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 164, in doActivity
result = self.processor.doActivity()
File "/opt/psa/admin/share/pmmcli/pmmcli.py", line 1349, in doActivity
raise PMMUtilityException('PMMCli', x)
PMMUtilityException: PMMCli was finished with exit code 1

[2014-10-29 18:45:33.459|15439] INFO: Outgoing packet:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>1000</errcode>
<errmsg>pmm utility 'PMMCli' raised an exception. Error code is: 1
See pmmcli.log to find out detailed information on this</errmsg>
</response>
 
If KB article and all recommendations did not help I suggest you contact Support Team. They will investigate and fix this problem directly on your server.
 
Hello Igor
i'm now on plesk 12.0.18

and the function un cat /usr/local/psa/PMM/agents/shared/HelpFuncs.pm is like that


Code:
sub getMountSpace {
  my $mount = shift;
  my $df = qx( df -P -k $mount) or die $!;
  while ( $df =~ /^(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+\%)\s+(\S+)$/gm ) {
  return (1024 * $2, 1024 * $4, $6);
  }
  return;
}

and in /opt/psa/PMM/agents/shared/Storage/Storage.pm

Code:
sub reserveSpace {
  my ($self ) = @_;
  if (exists $self->{space_reserved} ) {
  my $avail = (HelpFuncs::getMountSpace($self->getFullOutputPath()))[1];
  if( $avail < $self->{space_reserved} ) {
  my $errmsg = "Available disk space ($avail) is less than required by storage bundle ($self->{space_reserved})";
  Logging::error($errmsg,'fatal');
  print STDERR "$errmsg\n";
  exit(2);
  }
  my $namebase = $self->getFullOutputPath().'/.fs_'.(0+$self).'_';
  my $var = 0;
  while( -e "$namebase$var.tmp"){$var++;}
  $self->{space_reserver} = "$namebase$var";
  Logging::debug("Reserve disk space at $self->{space_reserver}");
  qx( dd if=/dev/zero of=$self->{space_reserver} bs=$self->{space_reserved} count=1);
  }
}


but the problem still persist :'(

in shell when I do df -P -kit seems to work

root@xxx:~# df -P -k
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 2.2G 17G 12% /
/dev/root 20G 2.2G 17G 12% /
/dev 7.9G 168K 7.9G 1% /dev
none 7.9G 0 7.9G 0% /dev/shm
none 7.9G 624K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock
none 7.9G 0 7.9G 0% /lib/init/rw
/dev/md2 1.8T 1.1T 677G 62% /var
none 7.9G 624K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock


do you have an idea ?
i've unchecked the disk space verification in backup settings with no more results ...

is it a way to launch the function reserveSpace and/or getMountSpace helper in shell ? to see the returned value ?
thanks
 
Back
Top