Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After upgrading from latest v5 to v6, I get database errors but Pihole is working #1714

Open
oe3gwu opened this issue Feb 19, 2025 · 7 comments

Comments

@oe3gwu
Copy link

oe3gwu commented Feb 19, 2025

Versions

  • Core version is v6.0 (Latest: v6.0.1)
  • Web version is v6.0 (Latest: v6.0)
  • FTL version is v6.0 (Latest: v6.0)

Platform

  • OS and version: Ubuntu 22.04
  • Platform: Proxmox LXC Container with a Docker

Expected behavior

A running error free Pihole.

Actual behavior / bug

I just updated pihole with a docker compose down, docker compose pull and docker compose up -d and it is actually running and working, but in the logs, I get errors that should not be there and were not there with v5.

I NEVER connected to the DB and messed with it.

Steps to reproduce

Steps to reproduce the behavior:

  1. Update Pihole v5 to v6 using docker compose
  2. Start the docker container
  3. Check the logs.
  4. See error

Debug Token

Screenshots

Image

Additional context

pihole.log

Thank you!

@yubiuser yubiuser transferred this issue from pi-hole/pi-hole Feb 19, 2025
@yubiuser
Copy link
Member

WARNING: Database /etc/pihole/pihole-FTL.db is damaged and cannot be used.

Stop the container, move the old database to a backup location, restart the container.

@oe3gwu
Copy link
Author

oe3gwu commented Feb 20, 2025

WARNING: Database /etc/pihole/pihole-FTL.db is damaged and cannot be used.

Stop the container, move the old database to a backup location, restart the container.

Does the Database reorganize itself again, or do i loose something if I do this?

@yubiuser
Copy link
Member

You loose the long-term query database.

@aronmgv
Copy link

aronmgv commented Feb 21, 2025

Screenshots

Image

@oe3gwu Off topic, what app is that on the screenshot? doesnt look like portainer.. thanks!

@oe3gwu
Copy link
Author

oe3gwu commented Feb 21, 2025

Screenshots

Image

@oe3gwu Off topic, what app is that on the screenshot? doesnt look like portainer.. thanks!

It's the proxmox console of my lxd container.

@oe3gwu
Copy link
Author

oe3gwu commented Feb 21, 2025

You loose the long-term query database.

I even dont got the sqlite database on a persistent volume. I loose this data all time when i stop the container because the db is deleted. So it cant be inconsistent. Because even at a restart those log entries happen.

@terrlinde
Copy link

I also saw same Errors as oe3gwu after updating to the new container version 2025.02.4.
Longterm Logs were not saved and Query Logs only showed a short Period (under a minute) of Logs just after fresh bootup.
Additionaly I see entries like "database corruption", "database disk image is malformed" and "database FTL.db is damaged and cannot be used"

Image

@oe3gwu as yubiuser said, try to delete the old database from volume. usually the FTL.db is mounted outside the container and is in /etc/pihole. Check if you mounted it somewhere, stop the container, rename FTL.db to FTL.db.old and start it again. Worked for me, now logs are beeing stored, Querly Log is showing actual data, no Errors in FTL.log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants