-
Notifications
You must be signed in to change notification settings - Fork 32
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
Parse error near line 14: no such column: additional_info #76
Comments
Thanks for the report. I forgot to update the internal version string after I tagged the last release. There difference between both versions is only the fix of a typo, all other changes affect only the handling here on github. But of course this needs to be fixed. For the other error I need to investigate a bit further... |
Experiencing the same issue. I don't know anything about SQLite, but I think the issue may be here, specifically line 603 (being line 14 of the here-document). I am happy to do further testing/investigation (with some direction) or to tests patches. |
Nothing in that part of the code has been changed in the last 2 years. It's strange that the column does not exist, it's created just a few lines above 562. Let's first check, if your
|
|
That looks suspicious too. There should be much more tables. Please generate a Pi-hole debug log and post the token.
|
Your debug token is: https://tricorder.pi-hole.net/feYd7qeu/ Ran another one with database integrity check |
I un-install pi-hole and re-install Previously I have all option checked including 'Clear existing data' This seems to resolve the error. $sudo sqlite3 /etc/pihole/pihole-FTL.db sqlite> .tables sqlite> select sql from sqlite_master where name = 'queries'; |
|
Despite the integrity check did not report any issues, there were quite a few hints that the database was corrupted.
It might have been enough to move the database and re-start |
As the |
Seems the issue probably is corrupted databases. After confirming I had logging on, I stopped the pihole-FTL service, deleted the database file, and restarted the service to create a new database. The |
It seems I can close this issue - it turns out the reason was not the tool but corrupted databases. |
I downloaded 2.6.4, but it contains 2.6.3
And it error-ed out as below:
$./pihole_adlist_tool -d 0 -s total
*** Pihole Adlist Tool 2.6.3 ***
++++++++ Info ++++++++
[i] PIHOLE_DOCKER: No
[i] PIHOLE_DNSMASQ_VERSION: v2.89-9461807
[i] SQLITE_VERSION: 3.42.0
[i] DAYS_REQUESTED: all time
[i] TOP: Not shown
[i] SORT_ORDER: total_domains DESC
[i] UNIQUE: Not shown
[i] REGEX_MODE: Disabled
[i] There is an update available: 2.6.4
++++++++++++++++++++++
Would you like to analyze your current adlist configuration or first enable all adlists (current can be restored later)?
Please select: 1
[i] Keeping current adlist configuration
[i] Calculating.....
[i] This might take some time - please be patient.
Parse error near line 14: no such column: additional_info
INSERT INTO cname(additional_info, hits) SELECT additional_info, COUNT(domain)
error here ---^
`
The text was updated successfully, but these errors were encountered: