• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Prestashop application install fail

papak

Basic Pleskian
Hi,

We try to install for new customer Prestashop 1.7.0.4 through Plesk but installation stuck on 96% and fail.

We tried this:

https://support.plesk.com/hc/en-us/...script-process-usr-bin-php-killed-by-signal-1

Also we disabled Selinux, increased PHP memory limit but nothing helped.

/var/log/plesk/panel.log show:

[2017-02-22 14:13:34] ERR [panel] Exception:
[2017-02-22 14:13:34] ERR [panel] Script execution failed:
[2017-02-22 14:13:34] ERR [panel] CommonPanel_Aps_ServiceCreationHelper::installService Non-zero exit status returned by script.
[2017-02-22 14:13:40] ERR [panel] Task failed: id=900, pid=25169, type=aps-install, error=Non-zero exit status returned by script.
[2017-02-22 14:13:40] ERR [panel] APS Catalog error: Installation of Prestashop at http://domain.com/ failed. Non-zero exit status returned by script.
[2017-02-22 14:13:40] ERR [panel] The following error has occurred during the installation of application: <pre>Installation of Prestashop at http://domain.com/ failed. Non-zero exit status returned by script.</pre>
[2017-02-22 14:22:57] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/sappmng' '--run-application-script' '--script-file-name=configure' '--script-name=install' '--script-language=php' '--user-name=web531d' '--php-cli=/usr/bin/php' '--php-ini=/var/www/vhosts/system/domain.com/etc/php.ini' '--application-full-name=file:////usr/local/psa/var/apspackages/apscatalogHOxDEi.zipedc1b4c9-ed31-33/cache'] with exit code [123]
[2017-02-22 14:22:57] ERR [1] '/usr/local/psa/admin/bin/sappmng' '--run-application-script' '--script-file-name=configure' '--script-name=install' '--script-language=php' '--user-name=web531d' '--php-cli=/usr/bin/php' '--php-ini=/var/www/vhosts/system/domain.com/etc/php.ini' '--application-full-name=file:////usr/local/psa/var/apspackages/apscatalogHOxDEi.zipedc1b4c9-ed31-33/cache' failed with code 123.

stdout:


stderr:

[2017-02-22 14:22:57] ERR [panel] Exception:
[2017-02-22 14:22:57] ERR [panel] Script execution failed:
[2017-02-22 14:22:57] ERR [panel] CommonPanel_Aps_ServiceCreationHelper::installService Non-zero exit status returned by script.
[2017-02-22 14:23:01] ERR [panel] Task failed: id=901, pid=27397, type=aps-install, error=Non-zero exit status returned by script.
[2017-02-22 14:23:01] ERR [panel] APS Catalog error: Installation of Prestashop at http://domain.com/ failed. Non-zero exit status returned by script.
[2017-02-22 14:23:02] ERR [panel] The following error has occurred during the installation of application: <pre>Installation of Prestashop at http://domain.com/ failed. Non-zero exit status returned by script.</pre>

Any idea what could be wrong or is it bug in Plesk?

Thanks in advance.

Regards,
Mike
 
Try to run

# plesk bin aps --clear-cache

before aps installation and try again.
 
Try to run

# plesk bin aps --clear-cache

before aps installation and try again.

Good morning,
I have a similar issue but when I run the command to clear the cache I receive the following error message:

ERR [panel] Can not remove package from APS controller: ODBC error #HY000: [MySQL][ODBC 5.2(w) Driver][mysqld-5.5.52-MariaDB]Cannot delete or update a parent row: a foreign key constraint fails (`apsc`.`aps_application`, CONSTRAINT `FK_aps_application_aps_package` FOREIGN KEY (`package_id`) REFERENCES `aps_package` (`id`))

I have also tried to install prestashop 1.7 with the "standard" procedure, by creating the database beforehand, uploading the installer into the destination folder and launching the Prestashop install wizard but I receive a different erro message saying some tables cannot be created (I have already checked that the DB user I created has all necessary permissions).

Does anybody have any suggestion, please?

Thank you very much in advance for your help.
 
ERR [panel] Can not remove package from APS controller: ODBC error #HY000: [MySQL][ODBC 5.2(w) Driver][mysqld-5.5.52-MariaDB]Cannot delete or update a parent row: a foreign key constraint fails (`apsc`.`aps_application`, CONSTRAINT `FK_aps_application_aps_package` FOREIGN KEY (`package_id`) REFERENCES `aps_package` (`id`))
If you cannot delete entry with this error, try to run following SQL command

MariaDB [psa]l> SET FOREIGN_KEY_CHECKS = 0;

Then repeat your action and if it will be completed correctly, run

MariaDB [psa]l> SET FOREIGN_KEY_CHECKS = 1;
 
Back
Top