Unable to update Joomla: Non-zero exit status returned by script

Created:

2016-11-16 13:03:43 UTC

Modified:

2017-08-08 13:35:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to update Joomla: Non-zero exit status returned by script

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to install Joomla update, the following error appears in Plesk:

Non-zero exit status returned by script

In /usr/local/psa/admin/logs/panel.log the following error can be found:

stdout:
Unable to execute SQL statement (DELETE FROM `jos_users` WHERE `id`=221 AND `username`='admin' AND `email`='admin-email@example.com'): Table 'admin_db.jos_users' doesn't exist
stderr:

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 65

Cause

Incorrect dbprefix defined in configuration.php under website vhost directory.

Resolution

  1. Check which dbprefix is currently in use for the website via Plesk > Subscriptions > example.com > Databases > click on joomla database > PhpMyAdmin

  2. Check dbprefix in /var/www/vhost/example.com/httpdocs/configuration.php :

    # grep 'dbprefix' /var/www/vhost/example.com/httpdocs/configuration.php
    public $dbprefix = 'jos_';
  3. Replace this prefix with the one, determined in step #1 in /var/www/vhost/example.com/httpdocs/configuration.php .

  4. Try to update Joomla again.

Have more questions? Submit a request
Please sign in to leave a comment.