@EgonKlax because it's needed for compilation?
@mrdotx vim standard provide xxd, if you have installed an alternative vim that do not have it, you can have that error.
Git Clone URL: | https://aur.archlinux.org/pi-hole-ftl.git (read-only, click to copy) |
---|---|
Package Base: | pi-hole-ftl |
Description: | The Pi-hole FTL engine |
Upstream URL: | https://github.com/pi-hole/FTL |
Licenses: | EUPL-1.2 |
Conflicts: | dnsmasq |
Provides: | dnsmasq |
Submitter: | max.bra |
Maintainer: | max.bra (graysky) |
Last Packager: | max.bra |
Votes: | 56 |
Popularity: | 1.50 |
First Submitted: | 2017-05-07 15:23 (UTC) |
Last Updated: | 2024-08-10 09:53 (UTC) |
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 44 Next › Last »
@EgonKlax because it's needed for compilation?
@mrdotx vim standard provide xxd, if you have installed an alternative vim that do not have it, you can have that error.
Why was vim added as dependency for make?
I can't build the current release 5.20-1:
[ 21%] Building C object src/syscalls/CMakeFiles/syscalls.dir/write.c.o
[ 21%] Built target syscalls
[ 22%] Compiling inspect.lua to binary
/bin/sh: 1: RESOURCE_COMPILER-NOTFOUND: not found
make[2]: *** [src/lua/scripts/CMakeFiles/lua_scripts.dir/build.make:74: src/lua/scripts/inspect.lua.hex] Fehler 127
make[1]: *** [CMakeFiles/Makefile2:443: src/lua/scripts/CMakeFiles/lua_scripts.dir/all] Fehler 2
make[1]: *** Es wird auf noch nicht beendete Prozesse gewartet....
[ 23%] Building C object src/database/CMakeFiles/sqlite3.dir/sqlite3.c.o
Is there a missing dependency that I have not installed?
Is there a reason it should be?
Should the pi-hole-ftl.service be shipping with preset: disabled?
EDIT: looks like a fix is in the works
UPDATE: Fix committed
Having trouble with pi-hole-ftl 5.16.2-1 built and installed on 8/20
$ systemctl status --full --no-pager pihole-FTL.service
× pihole-FTL.service - Pi-hole FTLDNS engine
Loaded: loaded (/usr/lib/systemd/system/pihole-FTL.service; disabled; preset: disabled)
Active: failed (Result: exit-code) since Sat 2022-08-20 14:54:56 EDT; 2s ago
Duration: 235ms
Process: 38417 ExecStartPre=/usr/bin/chown -R pihole:pihole /etc/pihole (code=exited, status=0/SUCCESS)
Process: 38418 ExecStartPre=/usr/bin/chown root:root /etc/pihole/logrotate (code=exited, status=0/SUCCESS)
Process: 38419 ExecStartPre=/usr/bin/sh -c /usr/bin/rm -f /dev/shm/FTL-* (code=exited, status=0/SUCCESS)
Process: 38420 ExecStart=/usr/bin/pihole-FTL no-daemon (code=exited, status=1/FAILURE)
Main PID: 38420 (code=exited, status=1/FAILURE)
CPU: 73ms
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Scheduled restart job, restart counter is at 5.
Aug 20 14:54:56 Q1900-ITX systemd[1]: Stopped Pi-hole FTLDNS engine.
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Start request repeated too quickly.
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Failed with result 'exit-code'.
Aug 20 14:54:56 Q1900-ITX systemd[1]: Failed to start Pi-hole FTLDNS engine.
Could it be that it doesn't like that this machine has ipv6 disabled?
Aug 20 14:54:55 Q1900-ITX systemd[1]: Starting Pi-hole FTLDNS engine...
Aug 20 14:54:56 Q1900-ITX systemd[1]: Started Pi-hole FTLDNS engine.
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] Using log file /run/log/pihole-ftl/pihole-FTL.log
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] ########## FTL started on Q1900-ITX! ##########
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] FTL branch: master
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] FTL version: v5.16.2
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] FTL commit: builtfromreleasetarball
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] FTL date: 2022-08-18
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] FTL user: pihole
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] Compiled for x86_64 (compiled locally) using cc (GCC) 12.1.1 20220730
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.019 38420M] Creating mutex
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.020 38420M] Creating mutex
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.020 38420M] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] SOCKET_LISTENING: only local
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] AAAA_QUERY_ANALYSIS: Show AAAA queries
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] MAXDBDAYS: max age for stored queries is 365 days
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] RESOLVE_IPV6: Don't resolve IPv6 addresses
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] RESOLVE_IPV4: Resolve IPv4 addresses
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] DBINTERVAL: saving to DB file every 900 seconds
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] DBFILE: Using /mnt/lv00/pool/pihole/pihole-FTL.db
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] MAXLOGAGE: Importing up to 24.0 hours of log data
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] PRIVACYLEVEL: Set to 0
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] IGNORE_LOCALHOST: Show queries from localhost
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] BLOCKINGMODE: Null IPs for blocked domains
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] DBIMPORT: Importing history from database
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] PIDFILE: Using /run/pihole-ftl/pihole-FTL.pid
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.021 38420M] PORTFILE: Using /run/pihole-ftl/pihole-FTL.port
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] SOCKETFILE: Using /run/pihole-ftl/FTL.sock
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] MACVENDORDB: Using /etc/pihole/macvendor.db
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] GRAVITYDB: Using /etc/pihole/gravity.db
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] PARSE_ARP_CACHE: Active
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] CNAME_DEEP_INSPECT: Active
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] DELAY_STARTUP: No delay requested.
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] BLOCK_ESNI: Enabled, blocking _esni.{blocked domain}
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] NICE: Set process niceness to -10 (default)
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] MAXNETAGE: Removing IP addresses and host names from network table after 365 days
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] NAMES_FROM_NETDB: Enabled, trying to get names from network database
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] EDNS0_ECS: Overwrite client from ECS information
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] REFRESH_HOSTNAMES: Periodically refreshing IPv4 names
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] RATE_LIMIT: Rate-limiting client making more than 1000 queries in 60 seconds
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] LOCAL_IPV4: Automatic interface-dependent detection of address
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.022 38420M] LOCAL_IPV6: Automatic interface-dependent detection of address
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] BLOCK_IPV4: Automatic interface-dependent detection of address
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] BLOCK_IPV6: Automatic interface-dependent detection of address
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] SHOW_DNSSEC: Enabled, showing automatically generated DNSSEC queries
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] MOZILLA_CANARY: Enabled
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] PIHOLE_PTR: internal PTR generation enabled (pi.hole)
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] ADDR2LINE: Enabled
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] REPLY_WHEN_BUSY: Drop queries when the database is busy
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] BLOCK_TTL: 2 seconds
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] BLOCK_ICLOUD_PR: Enabled
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] CHECK_LOAD: Enabled
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] CHECK_SHMEM: Warning if shared-memory usage exceeds 90%
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] CHECK_DISK: Warning if certain disk usage exceeds 90%
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.023 38420M] Finished config file parsing
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.025 38420M] Database version is 12
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.025 38420M] Resizing "FTL-strings" from 40960 to (81920 * 1) == 81920 (/dev/shm: 716.8KB used, 4.0GB total, FTL uses 700.8KB)
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.025 38420M] Imported 0 alias-clients
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.025 38420M] Database successfully initialized
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.212 38420M] New upstream server: 8.8.8.8:53 (0/512)
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.216 38420M] New upstream server: 8.8.4.4:53 (1/512)
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.217 38420M] Imported 237 queries from the long-term database
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.217 38420M] -> Total DNS queries: 237
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.217 38420M] -> Cached DNS queries: 142
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.217 38420M] -> Forwarded DNS queries: 93
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.218 38420M] -> Blocked DNS queries: 2
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.218 38420M] -> Unknown DNS queries: 0
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.218 38420M] -> Unique domains: 35
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.218 38420M] -> Unique clients: 4
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.218 38420M] -> Known forward destinations: 2
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.218 38420M] Successfully accessed setupVars.conf
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.219 38420M] listening on 0.0.0.0 port 53
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.231 38420M] listening on :: port 53
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.234 38420M] PID of FTL process: 38420
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.234 38420M] Listening on port 4711 for incoming IPv4 telnet connections
Aug 20 14:54:56 Q1900-ITX pihole-FTL[38420]: [2022-08-20 14:54:56.239 38420M] Error opening IPv6 telnet socket: Address family not supported by protocol (97)
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Main process exited, code=exited, status=1/FAILURE
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Failed with result 'exit-code'.
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Scheduled restart job, restart counter is at 5.
Aug 20 14:54:56 Q1900-ITX systemd[1]: Stopped Pi-hole FTLDNS engine.
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Start request repeated too quickly.
Aug 20 14:54:56 Q1900-ITX systemd[1]: pihole-FTL.service: Failed with result 'exit-code'.
Aug 20 14:54:56 Q1900-ITX systemd[1]: Failed to start Pi-hole FTLDNS engine.
Downgraded to pi-hole-ftl 5.16.1-1 and the service works fine:
$ systemctl status pihole-FTL.service
● pihole-FTL.service - Pi-hole FTLDNS engine
Loaded: loaded (/usr/lib/systemd/system/pihole-FTL.service; disabled; preset: disabled)
Active: active (running) since Sat 2022-08-20 15:00:35 EDT; 13min ago
Process: 38652 ExecStartPre=/usr/bin/chown -R pihole:pihole /etc/pihole (code=exited, status=0/SUCCESS)
Process: 38653 ExecStartPre=/usr/bin/chown root:root /etc/pihole/logrotate (code=exited, status=0/SUCCESS)
Process: 38654 ExecStartPre=/usr/bin/sh -c /usr/bin/rm -f /dev/shm/FTL-* (code=exited, status=0/SUCCESS)
Main PID: 38655 (pihole-FTL)
Tasks: 6 (limit: 9158)
Memory: 16.6M
CPU: 4.710s
CGroup: /system.slice/pihole-FTL.service
└─38655 /usr/bin/pihole-FTL no-daemon
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.350 38655M] BLOCK_IPV6: Automatic interface-dependent de>
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.350 38655M] SHOW_DNSSEC: Enabled, showing automatically >
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.350 38655M] MOZILLA_CANARY: Enabled
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.350 38655M] PIHOLE_PTR: internal PTR generation enabled >
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.350 38655M] ADDR2LINE: Enabled
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.350 38655M] REPLY_WHEN_BUSY: Drop queries when the datab>
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.351 38655M] BLOCK_TTL: 2 seconds
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.351 38655M] BLOCK_ICLOUD_PR: Enabled
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:00:35.351 38655M] CHECK_LOAD: Enabled
Aug 20 15:00:35 Q1900-ITX pihole-FTL[38655]: [2022-08-20 15:
Hello, I have a problem for keeping longterm data, I made sure that the setting is correct and db file is readable/writable by pihole user. Any idea what could cause this?
hi pbasista, FTL need approximately 800MB of RAM to compile so a little swap can help and cross compilation too.
Hi, I am trying to build the current version 5.15:
Building Pi-hole FTL daemon
- Branch: master
- Architecture: x86_64 (compiled locally)
- Version: b0d0f1d
- Tag:
- Hash: b0d0f1d
- Commit date: 2022-05-14 18:29:30 +0200
But it fails on error coming from the SQLite part:
[100%] Built target FTL
[100%] Built target dnsmasq
{standard input}: Assembler messages:
{standard input}: Fatal error: Case value 1035 unexpected at line 2792 of file "/usr/src/debug/binutils-gdb/gas/write.c"
make[2]: *** [src/database/CMakeFiles/sqlite3.dir/build.make:90: src/database/CMakeFiles/sqlite3.dir/sqlite3.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:322: src/database/CMakeFiles/sqlite3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
I was unable to locate the offending file locally and I do not fully understand the context of this issue.
When I have rerun the makepkg
command again without clearing the already-built files, there was a segmentation fault:
[ 99%] Built target FTL
/home/peter/aur/pi-hole-ftl/src/FTL-5.15/src/database/sqlite3.c: In function ‘dbpageUpdate’:
/home/peter/aur/pi-hole-ftl/src/FTL-5.15/src/database/sqlite3.c:210270:31: warning: comparison of integer expressions of different signedness: ‘Pgno’ {aka ‘unsi
gned int’} and ‘int’ [-Wsign-compare]
210270 | if( pgno<1 || pBt==0 || pgno>(int)sqlite3BtreeLastPage(pBt) ){
| ^
{standard input}: Assembler messages:
{standard input}: Internal error (Segmentation fault).
Please report this bug.
make[2]: *** [src/database/CMakeFiles/sqlite3.dir/build.make:90: src/database/CMakeFiles/sqlite3.dir/sqlite3.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:322: src/database/CMakeFiles/sqlite3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Does anyone have an idea of what might be causing this issue?
Sorry for rushed mobile reply: low ram, configure swap.
Pinned Comments
max.bra commented on 2018-02-09 16:46 (UTC) (edited on 2019-10-18 23:13 (UTC) by max.bra)
ArchLinux Pi-hole is not officially supported by Pi-hole project. In case of bugs and malfunctions please DO NOT file a report upstream.
First of all check if the wiki (https://wiki.archlinux.org/index.php/Pi-hole) can help then ask here for assistance and tips.
When it will be excluded that the problem does not depend on ArchLinux we will file a bug upstream.