'Lost Connection To API' after update

Very same situation here.
https://tricorder.pi-hole.net/3v7goeja53

   [2021-04-17 00:01:00.772 4281/T4285] SQLite3 message: statement aborts at 3: [SELECT MAX(ID) FROM queries] database disk image is malformed (11)
   [2021-04-17 00:01:00.772 4281/T4285] Encountered step error in get_max_query_ID(): database disk image is malformed

   [2021-04-17 00:01:01.422 4281M] SQLite3 message: database corruption at line 81887 of [5d4c65779d] (11)

You got a corrupted database, this is causing all the problemes. You could try to repair it, or just move/delete the old database.

Such errors are usually happen due to EOL SD-Cards or sudden power losses which lead to filesystem errors. Do you have a proper power supply for your device?

Don‘t take it by heart but before the update this did not happen and yes, power supply is more then sufficient and so card is fresh.

Do you really say two people after one update in one day is just random?

some hours later the dns connection was lost and I had no chance to connect to the internet. I needed to restart dns.

(Moved to a separate topic of its own, since your screenshot implies a different issue from what's described by Farish_Blades in GUI showing no Pihole V5.3.1: Statistics and Error Msg “Undefined %” in “Precent Blocked".)

this token I got after I restarted the DNS:

Your debug token is: https://tricorder.pi-hole.net/lx7qtdpx3k

Did you modify your Pi-hole installation?

    SPEEDTEST_MODE=official
    SPEEDTESTSCHEDULE=1
    SPEEDTEST_SERVER=14156
    SPEEDTEST_CHART_DAYS=1

Did you delete pihole-FTL.db before? Because the database is still malformated

   [2021-04-17 11:56:00.812 1890/T1894] SQLite3 message: statement aborts at 3: [SELECT MAX(ID) FROM queries] database disk image is malformed (11)
   [2021-04-17 11:56:00.812 1890/T1894] Encountered step error in get_max_query_ID(): database disk image is malformed
   [2021-04-17 11:56:00.812 1890/T1894] Error while trying to close database: database is locked
   [2021-04-17 11:56:00.813 1890/T1894] Encountered error while trying to store queries in long-term database: database is locked
   [2021-04-17 11:56:00.837 1890/T1894] ERROR: SQL query "DELETE FROM network_addresses WHERE lastSeen < 1587117360;" failed: database is locked
   [2021-04-17 11:56:00.837 1890/T1894] Error while trying to close database: database is locked
   [2021-04-17 11:56:00.837 1890/T1894] Error while trying to close database: database is locked
   [2021-04-17 11:56:34.953 1890M] SQLite3 message: database corruption at line 81887 of [5d4c65779d] (11)
   [2021-04-17 11:56:34.953 1890M] SQLite3 message: statement aborts at 25: [SELECT hwaddr FROM network WHERE id = (SELECT network_id FROM network_addresses WHERE ip = ? GROUP BY ip HAVING max(lastSeen));] database disk image is malformed (11)
   [2021-04-17 11:56:34.954 1890M] SQLite3 message: database corruption at line 81887 of [5d4c65779d] (11)

Still think so, but we'll have a look at this.

So, once again a debug after I deleted the DB as you requested:

[✓] Your debug token is: https://tricorder.pi-hole.net/6zslh16n1q

Yes, this was a Mod I used before updating to v5 (when you introduced the Black Theme etc.)

image

Just a general comment.

Running commands that were not asked for you to run will cause you to have a bad time.

I had the same issue like:

and after that I lost the connection to API.

what's the plan now?

I am not allowed to follow instructions from other threads but as well I do not see any recommendations from your side?

I don't have any suggestions for you. If you want to copy paste commands that may make your situation even worse then go right ahead. If you want to throw attitude then you can do what ever your dear heart desires.

It is not about throwing attitudes it is to find a solution "together"...

It is very easy for me to roll back but this does not solve the issue since from my perspective I am not the only one having that issue and this is not related to my SD Card.

I considered to find a solution together and if there is a bugfix you can rollout for more people...

The plan is that you have to wait for free support on the weekend to the software you paid nothing for.

wtf, are you kidding?

I am offering you my installation to find a solution as a kind of tester and you want to argue about ?

ok go on...

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