Error update failed
Error update failed
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

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?
Error: vesta update failed
Error: vesta-nginx update failed
Error: vesta-php update failed

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?
Re: Error update failed
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
/usr/local/vesta/log/update-vesta.log
/usr/local/vesta/log/update-vesta-nginx.log
/usr/local/vesta/log/update-vesta-php.log
Re: Error update failed
update-vesta.log
update-vesta-nginx.log
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?
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?
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.
Re: Error update failed
You obviously have some 'apt' proccess that get locked in background.
What will happen if you run in SSH, as root, this:
?
What will happen if you run in SSH, as root, this:
Code: Select all
apt update
apt install vesta vesta-nginx vesta-php
Re: Error update failed
apt update

apt install vesta vesta-nginx vesta-php


apt install vesta vesta-nginx vesta-php

Re: Error update failed
Yes, as I suspected.
Try to unlock it by following this: https://itsfoss.com/could-not-get-lock-error/
Try to unlock it by following this: https://itsfoss.com/could-not-get-lock-error/
Re: Error update failed
These commands fixed my problem:
Thank you dpeca
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