Page 1 of 1

Error: myVesta update failed

Posted: Tue Aug 25, 2020 7:40 am
by XAOC
Cron <admin@server> 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?

Re: Error update failed

Posted: Tue Aug 25, 2020 3:39 pm
by myVesta
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

Re: Error update failed

Posted: Tue Aug 25, 2020 3:44 pm
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?

Re: Error update failed

Posted: Tue Aug 25, 2020 4:04 pm
by myVesta
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
?

Re: Error update failed

Posted: Tue Aug 25, 2020 4:37 pm
by XAOC
apt update

Image

apt install vesta vesta-nginx vesta-php

Image

Re: Error update failed

Posted: Tue Aug 25, 2020 4:41 pm
by myVesta
Yes, as I suspected.

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

Re: Error update failed

Posted: Tue Aug 25, 2020 5:24 pm
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

Re: Error update failed

Posted: Wed Jul 28, 2021 11:41 am
by absolutemusik
I am not sure whether the server information is correct. Please suggest. I have got the error message below when typing apt update.

-- message --

Get:6 http://apt.myvestacp.com/buster buster InRelease [2,305 B]
Err:6 http://apt.myvestacp.com/buster buster InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 88807D4B2221338C
Fetched 2,305 B in 1s (1,929 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
115 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://apt.myvestacp.com/buster buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 88807D4B2221338C
W: Failed to fetch http://apt.myvestacp.com/buster/dists/buster/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 88807D4B2221338C
W: Some index files failed to download. They have been ignored, or old ones used instead.

Re: Error update failed

Posted: Wed Jul 28, 2021 12:01 pm
by myVesta
absolutemusik wrote: Wed Jul 28, 2021 11:41 am I am not sure whether the server information is correct. Please suggest. I have got the error message below when typing apt update.
See this article -> signatures couldn't be verified, public key is not available NO_PUBKEY 88807D4B2221338C