Update failing

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx, apache2 or another reverse proxy, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

I expect the update task to update Core, FTL and Web interface. I also expect it running a gravity update afterwards and restarting all services (where applicable), all of that without an error.

Actual Behaviour:

I get this error when running sudo pihole -up:

[✓] Building dependency package pihole-meta.deb
[✓] Installing Pi-hole dependency package

[i] Checking for updates...
[i] Pi-hole Core:     update available
Fehler: inflate: data stream error (incorrect data check)
Fehler: failed to read delta base object 265732469f219b89c9304b03e7707742f3d90415 at offset 608897 from .git/objects/pack/pack-84ab58176f3b896ec6985e36c33f2a979019efe5.pack
Fehler: failed to read delta base object 9f5b66cb5eb1ae1b232a6340d4b00d0e9af1592b at offset 610517 from .git/objects/pack/pack-84ab58176f3b896ec6985e36c33f2a979019efe5.pack
Schwerwiegend: Gepacktes Objekt 44077ff2bc95b7c2f4d918f8b7cc836c3c0bedfa (gespeichert in .git/objects/pack/pack-84ab58176f3b896ec6985e36c33f2a979019efe5.pack) ist beschädigt.
Schwerwiegend: fetch-pack: ungültige index-pack Ausgabe

Error: Unable to update local repository. Contact Pi-hole Support.

It seems like the .pack file is damaged. What can i do?

Debug Token:

Replace this text with the debug token provided from running pihole -d

Maybe you can try to fix the repository.

Please try sudo pihole -r.
Does it work or fail with the same error?

Thanks for your answer. sudo pihole -r seems to run smoothly:

  [✓] Done.

  [i] The install log is located at: /etc/pihole/install.log
  [✓] Update complete!

Core version is v6.1.4 (Latest: v6.2.2)
Web version is v6.2.1 (Latest: v6.3)
FTL version is v6.3.2 (Latest: v6.3.2)

There is nothing remarkable in the install.log.

But sudo pihole -up afterwards returns

  [✓] Building dependency package pihole-meta.deb
  [✓] Installing Pi-hole dependency package

  [i] Checking for updates...
  [i] Pi-hole Core:     update available

  Error: Web Admin repo is missing from system!
  Please re-run install script from https://pi-hole.net

So do i really have to re-install?

Maybe it is a permission issue... I really don't know.

Try to nuke the web repo and clone it again:

sudo rm -rf /var/www/html/admin
sudo git clone https://github.com/pi-hole/web.git /var/www/html/admin

After that, run pihole -r again, just to make sure everything is correct.

Does that fix the issue?

Thank you! That did the job. All updates went well. I’ll write that down for the next time something like this happens.

Awesome! :+1: