New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Debian 8 package list error
I have a debian 8 vps that has been running for some time now, today i tried to add nixstats agent to it for monitoring and got error messages, seems they are coming from running apt-get update?
root@code:~# apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://security.debian.org jessie/updates/main Sources [202 kB]
Get:3 http://security.debian.org jessie/updates/main amd64 Packages [478 kB]
Get:4 http://security.debian.org jessie/updates/main Translation-en [238 kB]
Ign http://deb.debian.org jessie InRelease
Get:5 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:6 http://deb.debian.org jessie Release.gpg [2434 B]
Get:7 http://deb.debian.org jessie-updates/main Sources [17.2 kB]
Get:8 http://deb.debian.org jessie-updates/main Translation-en [14.9 kB]
Get:9 http://deb.debian.org jessie Release [148 kB]
Get:10 http://deb.debian.org jessie-updates/main amd64 Packages [20.1 kB]
Get:11 http://deb.debian.org jessie/main Sources [7054 kB]
Get:12 http://deb.debian.org jessie/main amd64 Packages [6789 kB]
Get:13 http://deb.debian.org jessie/main Translation-en [4583 kB]
Fetched 19.8 MB in 4s (4291 kB/s)
Reading package lists... Error!
E: Unable to synchronize mmap - msync (5: Input/output error)
E: The package lists or status file could not be parsed or opened.
I have 50% disk space on the server and have gone as far as to re create the sources list for jessie and still get this error?
sources.list
deb http://deb.debian.org/debian jessie main
deb-src http://deb.debian.org/debian jessie main
deb http://deb.debian.org/debian jessie-updates main
deb-src http://deb.debian.org/debian jessie-updates main
deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main
Googling suggests this may be related to bad sectors on the drive, has anyone ever run into this issue before?
Comments
run free -h && df -h
output:
Well, you're not out of memory, and your HD isn't full, so that's good.
Try running:
apt-get -s clean
Decide if you agree with what it's going to do, and if so,
apt-get clean
then
apt-get update && dpkg -f install
then, you might consider a reboot into single user mode, and run
fsck -A
if that isn't resolved.I've never seen a /dev/vda on OVZ...
also try to run apt-get clean
is this KVM or OVZ? if the former maybe this hints to a thin-provisioned sparse image and no space left on the node to grow... just a wild guess.
It is a KVM from ZXhost at Hetzner.........
i tried apt-get clean with same results
Produces the same result also?
Are you running torrents or something similar? You don't show out of disk space, but it sure acts like you have no space available. I'd reboot the system in single user mode and run fsck.
Try
dmesg | tail -n20
to see if there is anything about a disk failure. Also you can safely delete all files under /var/lib/apt/lists asapt-get update
will just recreate them. Might be worth a try to domount -t tmpfs tmpfs /var/lib/apt/lists && mkdir /var/lib/apt/lists/partial
. That should rule out any kind of disk problem.@mksh
Running:
Results in the same error.
Starting a backup now
Ok, that kinda explains it.
Thats strange though as package lists should be written to RAM by mounting /var/lib/apt/lists on tmpfs. Guess there is other places where it wants to read/write also.
Probably a good idea as the disk doesn't seem all that healthy.
Have you tried reporting the issue to the host to investigate and resolve?
Yes first thing i did but its ZXhost and as of late not confident ill get a reply or a solution with how everything has been handled, so i asked here in the meantime.
Well, this is the first time I can recall that SpinRite has been the right answer.