Errors when updating PiHole

Hi i get this error whenever i try Pihole -up or Pihole -g.

I have over 120g free on the drive and doesn't look like there are any other issues with storage. PIhole works as expected.

any ideas?

https://tricorder.pi-hole.net/VgEODQoK/

[✓] Preparing new gravity database
[i] Creating new gravity databases...
[✗] Unable to copy data from /etc/pihole/gravity.db to /etc/pihole/gravity.db_temp
Runtime error near line 42: disk I/O error (10)
[i] Attempting to restore previous database from backup no. 1

[✗] Unable to copy data from /etc/pihole/gravity.db to /etc/pihole/gravity.db_temp
Runtime error near line 42: disk I/O error (10)
[✓] Cleaning up stray matter
[✓] FTL is listening on port 53
[✓] UDP (IPv4)
[✓] TCP (IPv4)
[✓] UDP (IPv6)
[✓] TCP (IPv6)

You're getting a disk I/O error—likely due to file corruption or permission issues, not space.

:white_check_mark: Quick Fix:

  1. Stop Pi-hole:

    sudo service pihole-FTL stop
    
  2. Delete corrupted DB:

    sudo rm /etc/pihole/gravity.db
    
  3. Rebuild gravity DB:

    sudo pihole -g
    sudo service pihole-FTL start
    

If issue persists, run sudo fsck on your SD card and check dmesg for hardware errors. Let me know if you're on Docker or Pi.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.