• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Auto update failed

Paul Creedy

Basic Pleskian
I've received this alert via email from my Plesk installation

Could someone advice me on what I need to do? It asks to resolve manually but doesn't give me enough information to know how or what I'm supposed to to


Some problems occurred with the System Updates tool on your server plesk1.p1-datacentre.cymru. Please resolve them manually.

Reason: 2018-04-20 06:27:00 INFO: pum is called with arguments: ['--list', '--repo-info', '--json']
2018-04-20 06:27:00 ERROR: Previous Plesk installer call finished unsuccessfully. PUM will not perform any update operations until Plesk installation is fixed.
2018-04-20 06:27:00 ERROR: Exited with returncode 50.

If I go into Tools > Systems updates this error is present
Error: Unable to get packages list: 2018-04-20 07:15:40 INFO: pum is called with arguments: ['--list', '--repo-info', '--json'] 2018-04-20 07:15:40 ERROR: Previous Plesk installer call finished unsuccessfully. PUM will not perform any update operations until Plesk installation is fixed. 2018-04-20 07:15:40 ERROR: Exited with returncode 50.


My installation:
Plesk Onyx
Version 17.5.3 Update #45
 
On the home page I now have
Failed to update Plesk. To solve this problem, you can send the update log to Plesk support. View the update logs (April 20, 2018). Copy the logs to your computer before you close this message. To close this message, click here.

At the end of the logs I have this

Launching component and product checkers...
Downloading file PSA_17.5.3/examiners/disk_space_check.sh: 0%
Downloading file PSA_17.5.3/examiners/disk_space_check.sh: 100% was finished.
Checking whether the package dependencies are resolved.
Installing packages
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

ERROR: An error occurred on attempt to install packages.
Attention! Your software might be inoperable.
Please contact product technical support.

Under Tools > Updates, I have no updates that need applying
Under packages, everything listed says Up-to-date


In the article it says to do this, but I don't know how to remove these flags?
If all the issues were fixed, but the issue with Plesk Update exists, try to remove the following flags:

# rm /var/lock/parallels-panel-maintenance-mode.flag
# rm /var/lock/parallels-panel-upgrade-failure.flag
 
as described in the KB -> Search for a solution in Plesk Knowledge Base if any error appears during this step.
Well I guess this one is what you are looking for: Plesk update failes: Could not get lock /var/lib/dpkg/lock

remove flags would be only neccessary when all errors are solved and it still does not work

I'm obviously out of my league here as this is all new to me on a linux box.

Tried ps auxx | grep 'dpkg\|apt'

And I get this, with a different number for 7214 each time I run it
datacen+ 7214 0.0 0.0 12944 1028 pts/0 S+ 19:56 0:00 grep --color=auto dpkg\|apt

Tried to kill 7214 but it then says 'no such process'

I tried a manual update with sudo apt-get update, seemed to be going well then got this at the end:

W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)

Tried removing the flags but in both cases it said the file did not exist.
# rm /var/lock/parallels-panel-maintenance-mode.flag
# rm /var/lock/parallels-panel-upgrade-failure.flag

Also tried rebooting the server.

I then tried going to Update and Upgrades and got the attached screenshot, however no authentication details seem to work. I tried plesk portal log in, and server account log in.

So I tried sudo install plesk installer and I got
BUSY: Update operation was locked by another update process.
exit status 1

I've now also tried /usr/local/psa/admin/sbin/autoinstaller but that also gives the same error.
 

Attachments

  • Capture.PNG
    Capture.PNG
    28.6 KB · Views: 10
Last edited:
Logged out and back in with Chrome incognito and now the upgrades page shows the following screenshot and the only thing that is selectable is the Add/Remove Components icon, and still getting the error message
"Failed to update Plesk. To solve this problem, you can send the update log to Plesk support. View the update logs (April 20, 2018). Copy the logs to your computer before you close this message. To close this message, click here."
 

Attachments

  • Capture.PNG
    Capture.PNG
    28.3 KB · Views: 7
Hey Paul, just to be sure which OS & version you are running?

after reboot open a terminal session and run on CLI
Code:
sudo apt-get clean && sudo apt-get update
before you try to do something within the Plesk panel

And I get this, with a different number for 7214 each time I run it
datacen+ 7214 0.0 0.0 12944 1028 pts/0 S+ 19:56 0:00 grep --color=auto dpkg\|ap
This means no other proces was running only the grep process
 
I submitted this to support and they went through the same steps. Luckily by the time they checked, whatever was holding a lock on the files had released them and the issue had gone away.

They were also able to fix my Wordpress issue Issue - Wordpress toolkit update progress stuck

For anyone else having the same issue I've posted the steps that support followed below:

Log file contained the following record:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

At the moment, when I was logged in, there were no processes, that lock this file (the only record in ps aux is the grep command itself):
# ps auxx | grep 'dpkg\|apt'
root 15621 0.0 0.0 12944 928 pts/0 S+ 21:56 0:00 grep --color=auto dpkg\|apt

I have checked also /var/log/plesk/install/autoinstaller3.log and found no issues during the last update, that was today to try reproducing the issue and verify if it persists at the moment.
Then I have re-initiated update:
# plesk installer install-all-updates

[...]
Retrieving information about the installed license key...
You already have the latest version of product(s) and all the selected component
installed. Installation will not continue.

Which means, that this issue, that you have faced was intermittent. This file was locked during one of the updates tries. Then Plesk installer was re-initiated updates when the file was free and the update went successfully.

At the moment all updates are installed.

As for the update task being stuck, as far, as I understood from the thread, the update task stuck for 10 days already. Which means, that task has hung. To restart it, I have done the following:

1. Created a backup of Plesk database:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysqldump -u admin --skip-extended-insert psa > psa.dump.`date +%F.%s`.sql
2. Deleted tables, which had the task with the WordPress plugin update task:
# plesk db
mysql> truncate longtasks;
Query OK, 0 rows affected (0.20 sec)
mysql> truncate longtaskparams;
Query OK, 0 rows affected (0.06 sec)
3.Restarted the update plugin task iin WordPress > Plugins > select all > Update:
 
Back
Top