-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
gravity.sh error caused by ~/.sqliterc #4650
Comments
Debug log please. |
Thought this was clear, but here you go https://tricorder.pi-hole.net/bjC86KUS/ sqlite3 loads ~./sqliterc, example of error here (gravity.sh) # Retrieve source URLs from gravity database
# We source only enabled adlists, SQLite3 stores boolean values as 0 (false) or 1 (true)
mapfile -t sources <<< "$(pihole-FTL sqlite3 "${gravityDBfile}" "SELECT address FROM vw_adlist;" 2> /dev/null)"
mapfile -t sourceIDs <<< "$(pihole-FTL sqlite3 "${gravityDBfile}" "SELECT id FROM vw_adlist;" 2> /dev/null)" Remedy: Either do not load sqlite init files or explicitly set needed settings. |
Thanks for the report. Loading the Sure we could just remove the whole Adding From the man pages
|
Can you explain why the |
Yeah, the lack of a switch to disable loading the rcfile is really uncool. |
No reald good usecase, I had tested something where I intensively used sqlite and the rcfile was a leftover because it was convienient. Nontheless I think we could add some resilience to the scripts if we include the |
This issue has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/all-adlist-connections-refused-no-cached-lists-available/66840/17 |
Will be fixed by pi-hole/FTL#1820 and corresponding |
Fixed by #5519. |
Versions
Pi-hole version is v5.9 (Latest: v5.9)
AdminLTE version is v5.11 (Latest: v5.11)
FTL version is v5.14 (Latest: v5.14)
Platform
Debian 11.2 in LXC on Proxmox 7
Expected behavior
pihole updateGravity
runs without issuesActual behavior / bug
pihole updateGravity
fails withSteps to reproduce
The cause is an existing .sqliterc in the pihole users $home.
Steps to reproduce the behavior:
.headers on
pihole updateGravity
Additional context
I did not find good documentation on how to prevent sqlite3 from loading ~/.sqliterc, but it can be overridden using
--init
parameter.sqlite3 --init /dev/null
worked for me (ex. on line 380 in gravity.sh).The text was updated successfully, but these errors were encountered: