Article ID: 126306, created on Jul 24, 2015, last review on Jul 24, 2015

  • Applies to:
  • Plesk Automation 11.5

Symptoms

When trying to install Plesk Automation it fails with the following output:

2015-07-21 11:22:26,685 [ERROR]: Failed to execute command: ['/usr/local/psa/bin/secret_key', '--create', '-ip-address', '127.0.0.1']
2015-07-21 11:22:26,685 [ERROR]: See installation log file /tmp/ppa_installer.log for details.

If trying to execute the last command manually it returns "Session expired" message:

# /usr/local/psa/bin/secret_key --create -ip-address 127.0.0.1
Session expired

Cause

PHP could not determine current system time zone. The system time zone and time zone in Plesk PHP do not match:

System:

# date
Tue Jul 21 16:40:19 ACST 2015

Plesk PHP:

# /usr/local/psa/bin/sw-engine-pleskrun  -r 'date_default_timezone_set(@date_default_timezone_get()); echo(date(DATE_RFC2822)."\n");'
Tue, 21 Jul 2015 02:10:23 -0500

Resolution

  1. Choose a time zone for PHP which matches to the system one and has a name supported by PHP. The list of the time zones supported by PHP is available here:

    http://php.net/manual/en/timezones.php

    For example, system time zone ACST (UTC +9:30) is not presented in PHP, but there is the time zone with the same offset named Australia/Darwin.

  2. Open /usr/local/psa/admin/conf/php.ini file used by Plesk and add the following line:

    date.timezone = "Australia/Darwin"
    
  3. Re-run installation script.

Search Words

/usr/local/psa/bin/secret_key

unable to install PA

installation fails

Failed to execute command

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF