Error update failed

Post Reply
XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Error update failed

Post by XAOC »

Cron <[email protected]> sudo /usr/local/vesta/bin/v-update-sys-vesta-all

Error: vesta update failed
Error: vesta-nginx update failed
Error: vesta-php update failed

Image

Clean install on Debian 9, it's the same with HestiaCP, while on standard VestaCP I don't have any issues regarding automatic updates.
Does anyone have a clue what's going on?

dpeca
Site Admin
Posts: 163
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by dpeca »

What is the content of these files:
/usr/local/vesta/log/update-vesta.log
/usr/local/vesta/log/update-vesta-nginx.log
/usr/local/vesta/log/update-vesta-php.log

XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Re: Error update failed

Post by XAOC »

update-vesta.log

Code: Select all

Hit:1 http://apt.myvestacp.com/stretch stretch InRelease
Reading package lists...
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?
update-vesta-nginx.log

Code: Select all

Hit:1 http://apt.myvestacp.com/stretch stretch InRelease
Reading package lists...
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?
update-vesta-php.log

Code: Select all

Hit:1 http://apt.myvestacp.com/stretch stretch InRelease
Reading package lists...
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?
Last edited by XAOC on Tue Aug 25, 2020 3:48 pm, edited 1 time in total.

dpeca
Site Admin
Posts: 163
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by dpeca »

You obviously have some 'apt' proccess that get locked in background.

What will happen if you run in SSH, as root, this:

Code: Select all

apt update
apt install vesta vesta-nginx vesta-php
?

XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Re: Error update failed

Post by XAOC »

apt update

Image

apt install vesta vesta-nginx vesta-php

Image

dpeca
Site Admin
Posts: 163
Joined: Fri Jun 19, 2020 9:59 am
Re: Error update failed

Post by dpeca »

Yes, as I suspected.

Try to unlock it by following this: https://itsfoss.com/could-not-get-lock-error/

XAOC
Posts: 4
Joined: Tue Aug 25, 2020 7:32 am
Re: Error update failed

Post by XAOC »

These commands fixed my problem:

Code: Select all

sudo lsof /var/lib/dpkg/lock
sudo lsof /var/lib/apt/lists/lock
sudo lsof /var/cache/apt/archives/lock

Code: Select all

sudo dpkg --configure -a
Thank you dpeca


Post Reply