>>> blocky: Building testing/blocky 0.18-r1 (using abuild 3.9.0-r0) started Thu, 12 May 2022 07:26:14 +0000 >>> blocky: Checking sanity of /home/buildozer/aports/testing/blocky/APKBUILD... >>> blocky: Analyzing dependencies... >>> blocky: Installing for build: build-base go (1/2) Installing go (1.18.2-r0) (2/2) Installing .makedepends-blocky (20220512.072615) Executing busybox-1.35.0-r13.trigger OK: 681 MiB in 100 packages >>> blocky: Cleaning up srcdir >>> blocky: Cleaning up pkgdir >>> blocky: Fetching https://distfiles.alpinelinux.org/distfiles/edge/blocky-0.18.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 641k 100 641k 0 0 5996k 0 --:--:-- --:--:-- --:--:-- 6055k >>> blocky: Fetching https://distfiles.alpinelinux.org/distfiles/edge/blocky-0.18.tar.gz >>> blocky: Checking sha512sums... blocky-0.18.tar.gz: OK >>> blocky: Unpacking /var/cache/distfiles/edge/blocky-0.18.tar.gz... go install github.com/abice/go-enum@v0.3.8 go: downloading github.com/abice/go-enum v0.3.8 go: downloading github.com/urfave/cli/v2 v2.3.0 go: downloading github.com/labstack/gommon v0.3.0 go: downloading github.com/Masterminds/sprig v2.22.0+incompatible go: downloading golang.org/x/tools v0.1.5 go: downloading github.com/mattn/go-colorable v0.1.8 go: downloading golang.org/x/sys v0.0.0-20210510120138-977fb7262007 go: downloading github.com/Masterminds/goutils v1.1.1 go: downloading github.com/google/uuid v1.2.0 go: downloading github.com/Masterminds/semver v1.5.0 go: downloading github.com/mitchellh/copystructure v1.1.2 go: downloading golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf go: downloading github.com/huandu/xstrings v1.3.2 go: downloading github.com/mitchellh/reflectwalk v1.0.1 go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0 go generate ./... go: downloading github.com/miekg/dns v1.1.46 go: downloading github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b go: downloading github.com/mroth/weightedrand v0.4.1 go: downloading github.com/avast/retry-go/v4 v4.0.3 go: downloading github.com/spf13/cobra v1.3.0 go: downloading github.com/hashicorp/go-multierror v1.1.1 go: downloading github.com/go-redis/redis/v8 v8.11.4 go: downloading github.com/prometheus/client_golang v1.12.1 go: downloading github.com/creasty/defaults v1.5.2 go: downloading github.com/sirupsen/logrus v1.8.1 go: downloading github.com/hashicorp/golang-lru v0.5.4 go: downloading github.com/onsi/gomega v1.18.1 go: downloading github.com/go-chi/chi/v5 v5.0.7 go: downloading gorm.io/driver/postgres v1.2.3 go: downloading golang.org/x/net v0.0.0-20211209124913-491a49abca63 go: downloading gorm.io/gorm v1.22.5 go: downloading gorm.io/driver/mysql v1.2.3 go: downloading github.com/x-cray/logrus-prefixed-formatter v0.5.2 go: downloading github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef go: downloading github.com/go-chi/cors v1.2.0 go: downloading github.com/stretchr/objx v0.3.0 go: downloading github.com/hashicorp/errwrap v1.1.0 go: downloading github.com/jackc/pgx/v4 v4.14.0 go: downloading golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 go: downloading golang.org/x/crypto v0.0.0-20211209193657-4570a0811e8b go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d go: downloading github.com/jinzhu/now v1.1.4 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading github.com/go-sql-driver/mysql v1.6.0 go: downloading github.com/cespare/xxhash/v2 v2.1.2 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f go: downloading github.com/prometheus/common v0.32.1 go: downloading github.com/prometheus/client_model v0.2.0 go: downloading github.com/golang/protobuf v1.5.2 go: downloading google.golang.org/protobuf v1.27.1 go: downloading github.com/prometheus/procfs v0.7.3 go: downloading github.com/jackc/pgtype v1.9.0 go: downloading github.com/jackc/pgconn v1.10.1 go: downloading github.com/jackc/pgproto3/v2 v2.2.0 go: downloading github.com/jackc/pgio v1.0.0 go: downloading github.com/mattn/go-colorable v0.1.12 go: downloading github.com/mattn/go-isatty v0.0.14 go: downloading github.com/jackc/chunkreader/v2 v2.0.1 go: downloading github.com/jackc/pgpassfile v1.0.0 go: downloading github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 go-enum started. file: config.go go-enum finished. file: config.go go-enum started. file: list_cache.go go-enum finished. file: list_cache.go go-enum started. file: logger.go go-enum finished. file: logger.go go-enum started. file: models.go go-enum finished. file: models.go go build -v -ldflags="-w -s -X github.com/0xERR0R/blocky/util.Version=0.18 -X github.com/0xERR0R/blocky/util.BuildTime=20220512-072619" -o bin/blocky golang.org/x/net/internal/iana google.golang.org/protobuf/internal/set golang.org/x/sys/internal/unsafeheader github.com/dgryski/go-rendezvous google.golang.org/protobuf/internal/flags runtime/metrics github.com/hashicorp/golang-lru/simplelru google.golang.org/protobuf/internal/pragma golang.org/x/text/internal/tag github.com/jackc/chunkreader/v2 github.com/go-redis/redis/v8/internal/rand golang.org/x/crypto/pbkdf2 github.com/mroth/weightedrand golang.org/x/text/runes github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg github.com/go-redis/redis/v8/internal/util golang.org/x/text/width github.com/jinzhu/inflection github.com/hashicorp/errwrap github.com/jinzhu/now github.com/cespare/xxhash/v2 github.com/jackc/pgio github.com/jackc/pgconn/internal/ctxwatch github.com/0xERR0R/blocky/web google.golang.org/protobuf/internal/detrand github.com/prometheus/procfs/internal/util github.com/jackc/pgpassfile golang.org/x/sys/unix github.com/hako/durafmt github.com/creasty/defaults github.com/avast/retry-go/v4 golang.org/x/net/bpf google.golang.org/protobuf/internal/version github.com/prometheus/common/model github.com/prometheus/procfs/internal/fs github.com/hashicorp/go-multierror github.com/go-redis/redis/v8/internal/hashtag github.com/go-redis/redis/v8/internal/hscan github.com/go-redis/redis/v8/internal/proto gorm.io/gorm/utils github.com/jackc/pgservicefile github.com/go-redis/redis/v8/internal google.golang.org/protobuf/internal/errors github.com/jackc/pgx/v4/internal/sanitize golang.org/x/text/unicode/bidi gorm.io/gorm/clause github.com/hashicorp/golang-lru github.com/jackc/pgproto3/v2 github.com/stretchr/objx golang.org/x/text/internal/language internal/profile github.com/spf13/cobra github.com/go-sql-driver/mysql github.com/jackc/pgtype github.com/go-chi/chi/v5 net/rpc gorm.io/gorm/logger golang.org/x/net/publicsuffix github.com/go-chi/cors google.golang.org/protobuf/encoding/protowire github.com/0xERR0R/blocky/cache/expirationcache github.com/go-redis/redis/v8/internal/pool google.golang.org/protobuf/reflect/protoreflect gorm.io/gorm/schema github.com/asaskevich/EventBus github.com/go-redis/redis/v8 golang.org/x/text/secure/bidirule github.com/0xERR0R/blocky/evt github.com/stretchr/testify/mock golang.org/x/text/internal/language/compact google.golang.org/protobuf/internal/encoding/messageset google.golang.org/protobuf/internal/descopts google.golang.org/protobuf/internal/strs google.golang.org/protobuf/internal/order google.golang.org/protobuf/runtime/protoiface google.golang.org/protobuf/internal/descfmt google.golang.org/protobuf/internal/genid net/http/pprof google.golang.org/protobuf/reflect/protoregistry google.golang.org/protobuf/internal/encoding/text golang.org/x/text/language gorm.io/gorm github.com/go-chi/chi/v5/middleware google.golang.org/protobuf/proto google.golang.org/protobuf/internal/encoding/defval golang.org/x/text/internal github.com/mattn/go-isatty golang.org/x/term golang.org/x/net/internal/socket github.com/sirupsen/logrus github.com/prometheus/procfs golang.org/x/text/cases github.com/mattn/go-colorable github.com/mgutz/ansi google.golang.org/protobuf/encoding/prototext google.golang.org/protobuf/internal/filedesc golang.org/x/crypto/ssh/terminal golang.org/x/net/ipv4 golang.org/x/net/ipv6 golang.org/x/text/secure/precis github.com/x-cray/logrus-prefixed-formatter github.com/0xERR0R/blocky/log github.com/0xERR0R/blocky/config gorm.io/gorm/migrator gorm.io/gorm/callbacks github.com/miekg/dns google.golang.org/protobuf/internal/encoding/tag github.com/jackc/pgconn google.golang.org/protobuf/internal/impl gorm.io/driver/mysql github.com/jackc/pgconn/stmtcache github.com/jackc/pgx/v4 github.com/jackc/pgx/v4/stdlib google.golang.org/protobuf/internal/filetype google.golang.org/protobuf/runtime/protoimpl gorm.io/driver/postgres google.golang.org/protobuf/types/known/timestamppb google.golang.org/protobuf/types/known/anypb google.golang.org/protobuf/types/known/durationpb google.golang.org/protobuf/types/descriptorpb github.com/golang/protobuf/ptypes/timestamp github.com/0xERR0R/blocky/util github.com/0xERR0R/blocky/model github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/0xERR0R/blocky/cache/stringcache github.com/0xERR0R/blocky/api github.com/0xERR0R/blocky/querylog github.com/0xERR0R/blocky/lists google.golang.org/protobuf/reflect/protodesc github.com/golang/protobuf/proto github.com/matttproud/golang_protobuf_extensions/pbutil github.com/prometheus/client_model/go github.com/golang/protobuf/ptypes github.com/0xERR0R/blocky/redis github.com/prometheus/client_golang/prometheus/internal github.com/prometheus/common/expfmt github.com/prometheus/client_golang/prometheus github.com/prometheus/client_golang/prometheus/collectors github.com/prometheus/client_golang/prometheus/promhttp github.com/0xERR0R/blocky/metrics github.com/0xERR0R/blocky/resolver github.com/0xERR0R/blocky/server github.com/0xERR0R/blocky/cmd github.com/0xERR0R/blocky go test -v -coverprofile=coverage.txt -covermode=atomic -cover ./... go: downloading github.com/onsi/ginkgo v1.16.5 go: downloading github.com/alicebob/miniredis/v2 v2.18.0 go: downloading gorm.io/driver/sqlite v1.2.6 go: downloading github.com/mattn/go-sqlite3 v1.14.9 go: downloading github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da go: downloading github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a go: downloading github.com/nxadm/tail v1.4.8 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 go: downloading github.com/fsnotify/fsnotify v1.5.1 ? github.com/0xERR0R/blocky [no test files] === RUN TestResolver Running Suite: API Suite ======================== Random Seed: 1652340403 Will run 5 of 5 specs ••••• Ran 5 of 5 Specs in 0.001 seconds SUCCESS! -- 5 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestResolver (0.01s) PASS coverage: 90.6% of statements ok github.com/0xERR0R/blocky/api 0.014s coverage: 90.6% of statements === RUN TestCache Running Suite: Expiration cache suite ===================================== Random Seed: 1652340403 Will run 11 of 11 specs ••••••••••• Ran 11 of 11 Specs in 0.261 seconds SUCCESS! -- 11 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestCache (0.27s) PASS coverage: 100.0% of statements ok github.com/0xERR0R/blocky/cache/expirationcache 0.278s coverage: 100.0% of statements === RUN TestCache Running Suite: String cache suite ================================= Random Seed: 1652340403 Will run 6 of 6 specs •••••• Ran 6 of 6 Specs in 0.001 seconds SUCCESS! -- 6 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestCache (0.01s) PASS coverage: 100.0% of statements ok github.com/0xERR0R/blocky/cache/stringcache 0.014s coverage: 100.0% of statements === RUN TestCmd Running Suite: Command Suite ============================ Random Seed: 1652340404 Will run 21 of 21 specs [2022-05-12 07:26:44]  INFO OK •[2022-05-12 07:26:44] FATAL NOK: 500 Internal Server Error •[2022-05-12 07:26:44] FATAL can't executePost "http://127.0.0.1:0/api/lists/refresh": dial tcp 127.0.0.1:0: connect: connection refused •blocky Version: undefined Build time: undefined •[2022-05-12 07:26:44]  INFO Query result for 'google.de' (A): [2022-05-12 07:26:44]  INFO reason: Reason [2022-05-12 07:26:44]  INFO response type: Type [2022-05-12 07:26:44]  INFO response: Response [2022-05-12 07:26:44]  INFO return code: NOERROR •[2022-05-12 07:26:44] FATAL NOK: 500 Internal Server Error •[2022-05-12 07:26:44] FATAL unknown query type 'X' •[2022-05-12 07:26:44] FATAL can't executePost "http://127.0.0.1:0/api/query": dial tcp 127.0.0.1:0: connect: connection refused •[2022-05-12 07:26:44]  INFO OK •[2022-05-12 07:26:44] FATAL can't executeGet "http://127.0.0.1:0/api/blocking/enable": dial tcp 127.0.0.1:0: connect: connection refused •[2022-05-12 07:26:44] FATAL NOK: 500 Internal Server Error •[2022-05-12 07:26:44]  INFO OK •[2022-05-12 07:26:44] FATAL can't executeGet "http://127.0.0.1:0/api/blocking/disable?duration=0s&groups=": dial tcp 127.0.0.1:0: connect: connection refused •[2022-05-12 07:26:44] FATAL NOK: 500 Internal Server Error •[2022-05-12 07:26:44]  INFO blocking enabled •[2022-05-12 07:26:44]  INFO blocking disabled for groups: abc, for 5 seconds •[2022-05-12 07:26:44]  INFO blocking disabled for groups: abc •[2022-05-12 07:26:44] FATAL can't executeGet "http://127.0.0.1:0/api/blocking/status": dial tcp 127.0.0.1:0: connect: connection refused •[2022-05-12 07:26:44] FATAL NOK: 500 Internal Server Error •[2022-05-12 07:26:44]  INFO _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ [2022-05-12 07:26:44]  INFO _/ _/ [2022-05-12 07:26:44]  INFO _/ _/ [2022-05-12 07:26:44]  INFO _/ _/ _/ _/ _/ [2022-05-12 07:26:44]  INFO _/ _/_/_/ _/ _/_/ _/_/_/ _/ _/ _/ _/ _/ [2022-05-12 07:26:44]  INFO _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ [2022-05-12 07:26:44]  INFO _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ [2022-05-12 07:26:44]  INFO _/ _/_/_/ _/ _/_/ _/_/_/ _/ _/ _/_/_/ _/ [2022-05-12 07:26:44]  INFO _/ _/ _/ [2022-05-12 07:26:44]  INFO _/ _/_/ _/ [2022-05-12 07:26:44]  INFO _/ _/ [2022-05-12 07:26:44]  INFO _/ _/ [2022-05-12 07:26:44]  INFO _/ Version: undefined Build time: undefined _/ [2022-05-12 07:26:44]  INFO _/ _/ [2022-05-12 07:26:44]  INFO _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ [2022-05-12 07:26:44] FATAL Can't read config file: open : no such file or directory [2022-05-12 07:26:44] FATAL parallel_best_resolver: no external DNS resolvers configured as default upstream resolvers. Please configure at least one under 'default' configuration name [2022-05-12 07:26:44]  INFO server: current configuration: [2022-05-12 07:26:44]  INFO server: -> resolver: 'IPv6DisablingResolver' [2022-05-12 07:26:44]  INFO server: accept AAAA [2022-05-12 07:26:44]  INFO server: -> resolver: 'ClientNamesResolver' [2022-05-12 07:26:44]  INFO server: deactivated, use only IP address [2022-05-12 07:26:44]  INFO server: -> resolver: 'QueryLoggingResolver' [2022-05-12 07:26:44]  INFO server: type: "console" [2022-05-12 07:26:44]  INFO server: target: "" [2022-05-12 07:26:44]  INFO server: logRetentionDays: 0 [2022-05-12 07:26:44]  INFO server: -> resolver: 'MetricsResolver' [2022-05-12 07:26:44]  INFO server: metrics: [2022-05-12 07:26:44]  INFO server: Enable = false [2022-05-12 07:26:44]  INFO server: Path = /metrics [2022-05-12 07:26:44]  INFO server: -> resolver: 'CustomDNSResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'HostsFileResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'BlockingResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'CachingResolver' [2022-05-12 07:26:44]  INFO server: minCacheTimeInSec = 0 [2022-05-12 07:26:44]  INFO server: maxCacheTimeSec = 0 [2022-05-12 07:26:44]  INFO server: cacheTimeNegative = 30 minutes [2022-05-12 07:26:44]  INFO server: prefetching = false [2022-05-12 07:26:44]  INFO server: cache items count = 0 [2022-05-12 07:26:44]  INFO server: -> resolver: 'ConditionalUpstreamResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'ParallelBestResolver' [2022-05-12 07:26:44]  INFO server: upstream resolvers: [2022-05-12 07:26:44]  INFO server: - DNS listening on addrs/ports: [53] [2022-05-12 07:26:44]  INFO server: - TLS listening on addrs/ports: [] [2022-05-12 07:26:44]  INFO server: - HTTP listening on addrs/ports: [] [2022-05-12 07:26:44]  INFO server: - HTTPS listening on addrs/ports: [] [2022-05-12 07:26:44]  INFO server: runtime information: [2022-05-12 07:26:44]  INFO server: MEM Alloc = 0 MB [2022-05-12 07:26:44]  INFO server: MEM HeapAlloc = 0 MB [2022-05-12 07:26:44]  INFO server: MEM Sys = 12 MB [2022-05-12 07:26:44]  INFO server: MEM NumGC = 3 [2022-05-12 07:26:44]  INFO server: RUN NumCPU = 32 [2022-05-12 07:26:44]  INFO server: RUN NumGoroutine = 11 [2022-05-12 07:26:44]  INFO server: Starting server [2022-05-12 07:26:44] FATAL server: start tcp listener failed: listen tcp :53: bind: permission denied [2022-05-12 07:26:44] FATAL server: start udp listener failed: listen udp :53: bind: permission denied •A fast and configurable DNS Proxy and ad-blocker for local network. Complete documentation is available at https://github.com/0xERR0R/blocky Usage: blocky [flags] blocky [command] Available Commands: blocking Control status of blocking resolver completion Generate the autocompletion script for the specified shell help Help about any command lists lists operations query performs DNS query refresh refreshes all lists serve start blocky DNS server (default command) version Print the version number of blocky Flags: --apiHost string host of blocky (API). Default overridden by config and CLI. (default "localhost") --apiPort uint16 port of blocky (API). Default overridden by config and CLI. (default 4000) -c, --config string path to config file (default "./config.yml") -h, --help help for blocky Use "blocky [command] --help" for more information about a command. • Ran 21 of 21 Specs in 0.120 seconds SUCCESS! -- 21 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestCmd (0.16s) PASS coverage: 91.1% of statements ok github.com/0xERR0R/blocky/cmd 0.178s coverage: 91.1% of statements === RUN TestConfig Running Suite: Config Suite =========================== Random Seed: 1652340403 Will run 38 of 38 specs •[2022-05-12 07:26:43] FATAL wrong file structure: yaml: unmarshal errors: line 1: cannot unmarshal !!str `malform...` into config.Config •[2022-05-12 07:26:43] FATAL wrong file structure: time: invalid duration "wrongduration" •[2022-05-12 07:26:43] FATAL wrong file structure: invalid IP address '192.168.178.WRONG' •[2022-05-12 07:26:43] FATAL wrong file structure: can't convert upstream 'wrongprotocol:4.4.4.4:53': wrong host name 'wrongprotocol:4.4.4.4:53' •[2022-05-12 07:26:43] FATAL wrong file structure: can't convert upstream 'wrongprotocol:8.8.4.4': can't convert port to number (1 - 65535) strconv.ParseUint: parsing "8.8.4.4": invalid syntax •[2022-05-12 07:26:43] FATAL wrong file structure: yaml: unmarshal errors: line 1: cannot unmarshal !!str `///` into config.Config •••[2022-05-12 07:26:43] FATAL certFile and keyFile parameters are mandatory for TLS •[2022-05-12 07:26:43] FATAL certFile and keyFile parameters are mandatory for HTTPS •[2022-05-12 07:26:43] FATAL Can't read config file: open config.yml: no such file or directory ••••••••••••••••••••••••••• Ran 38 of 38 Specs in 0.003 seconds SUCCESS! -- 38 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestConfig (0.02s) PASS coverage: 79.2% of statements ok github.com/0xERR0R/blocky/config 0.025s coverage: 79.2% of statements ? github.com/0xERR0R/blocky/evt [no test files] ? github.com/0xERR0R/blocky/helpertest [no test files] === RUN TestLists Running Suite: Lists Suite ========================== Random Seed: 1652340403 Will run 13 of 13 specs ••••••••••••• Ran 13 of 13 Specs in 1.379 seconds SUCCESS! -- 13 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestLists (1.39s) PASS coverage: 87.0% of statements ok github.com/0xERR0R/blocky/lists 1.401s coverage: 87.0% of statements ? github.com/0xERR0R/blocky/log [no test files] ? github.com/0xERR0R/blocky/metrics [no test files] ? github.com/0xERR0R/blocky/model [no test files] === RUN TestResolver Running Suite: Querylog Suite ============================= Random Seed: 1652340497 Will run 13 of 13 specs ••••••••••••• Ran 13 of 13 Specs in 0.030 seconds SUCCESS! -- 13 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestResolver (0.04s) PASS coverage: 98.6% of statements ok github.com/0xERR0R/blocky/querylog 0.053s coverage: 98.6% of statements === RUN TestRedisClient Running Suite: Redis Suite ========================== Random Seed: 1652340406 Will run 8 of 8 specs •••••••• Ran 8 of 8 Specs in 0.098 seconds SUCCESS! -- 8 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestRedisClient (0.10s) PASS redis: 2022/05/12 07:26:46 pubsub.go:159: redis: discarding bad PubSub connection: EOF coverage: 65.6% of statements ok github.com/0xERR0R/blocky/redis 0.111s coverage: 65.6% of statements === RUN TestResolver redis: 2022/05/12 07:26:48 pubsub.go:159: redis: discarding bad PubSub connection: EOF redis: 2022/05/12 07:26:48 pubsub.go:159: redis: discarding bad PubSub connection: EOF redis: 2022/05/12 07:26:48 pubsub.go:159: redis: discarding bad PubSub connection: EOF Running Suite: Resolver Suite ============================= Random Seed: 1652340408 Will run 147 of 147 specs ••••••••••••••••••••••••••••••••••••••••••••••••••••[2022-05-12 07:26:50] FATAL unknown blockType, please use one of: ZeroIP, NxDomain or specify destination IP address(es) ••[2022-05-12 07:26:50] FATAL parallel_best_resolver: no external DNS resolvers configured as default upstream resolvers. Please configure at least one under 'default' configuration name •••••••••••••••••••••••••••••••••••••••••redis: 2022/05/12 07:26:51 pubsub.go:159: redis: discarding bad PubSub connection: EOF •redis: 2022/05/12 07:26:51 pubsub.go:159: redis: discarding bad PubSub connection: EOF ••••••••••••••••••••••••••••••••••••••••••••••••••• Ran 147 of 147 Specs in 5.598 seconds SUCCESS! -- 147 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestResolver (5.83s) PASS coverage: 98.8% of statements ok github.com/0xERR0R/blocky/resolver 5.858s coverage: 98.8% of statements === RUN TestDNSServer Running Suite: Server Suite =========================== Random Seed: 1652340404 Will run 37 of 37 specs  INFO list_cache: starting processing of file file=../testdata/heise.de.txt  INFO list_cache: starting processing of file file=../testdata/doubleclick.net.txt  INFO list_cache: file imported count=1 source=../testdata/heise.de.txt  INFO list_cache: file imported count=2 source=../testdata/doubleclick.net.txt  INFO list_cache: starting processing of file file=../testdata/www.bild.de.txt  INFO list_cache: file imported count=1 source=../testdata/www.bild.de.txt  INFO list_cache: group import finished group=ads total_count=4  INFO list_cache: starting processing of file file=../testdata/youtube.com.txt  INFO list_cache: file imported count=1 source=../testdata/youtube.com.txt  INFO list_cache: group import finished group=youtube total_count=1  INFO list_cache: starting processing of file file=../testdata/heise.de.txt  INFO list_cache: file imported count=1 source=../testdata/heise.de.txt  INFO list_cache: group import finished group=ads total_count=1  INFO list_cache: starting processing of file file=../testdata/heise.de.txt  INFO list_cache: file imported count=1 source=../testdata/heise.de.txt  INFO list_cache: group import finished group=whitelist total_count=1  INFO server: current configuration:  INFO server: -> resolver: 'IPv6DisablingResolver'  INFO server: accept AAAA  INFO server: -> resolver: 'ClientNamesResolver'  INFO server: singleNameOrder = "[]"  INFO server: externalResolver = "upstream 'tcp+udp:0.0.0.0:51737'"  INFO server: cache item count = 0  INFO server: -> resolver: 'QueryLoggingResolver'  INFO server: type: "console"  INFO server: target: ""  INFO server: logRetentionDays: 0  INFO server: -> resolver: 'MetricsResolver'  INFO server: metrics:  INFO server: Enable = true  INFO server: Path = /metrics  INFO server: -> resolver: 'CustomDNSResolver'  INFO server: lan.home = "[192.168.178.56]"  INFO server: custom.lan = "[192.168.178.55]"  INFO server: -> resolver: 'HostsFileResolver'  INFO server: deactivated  INFO server: -> resolver: 'BlockingResolver'  INFO server: clientGroupsBlock  INFO server: clWhitelistOnly = "whitelist"  INFO server: clAdsAndYoutube = "ads;youtube"  INFO server: clYoutubeOnly = "youtube"  INFO server: default = "ads"  INFO server: blockType = "zeroIp"  INFO server: blockTTL = 6 hours  INFO server: downloadTimeout = 0 seconds  INFO server: FailStartOnListError = false  INFO server: blacklist:  INFO server: refresh: disabled  INFO server: group links:  INFO server: ads:  INFO server: - ../testdata/doubleclick.net.txt  INFO server: - ../testdata/www.bild.de.txt  INFO server: - ../testdata/heise.de.txt  INFO server: youtube:  INFO server: - ../testdata/youtube.com.txt  INFO server: group caches:  INFO server: ads: 4 entries  INFO server: youtube: 1 entries  INFO server: TOTAL: 5 entries  INFO server: whitelist:  INFO server: refresh: disabled  INFO server: group links:  INFO server: ads:  INFO server: - ../testdata/heise.de.txt  INFO server: whitelist:  INFO server: - ../testdata/heise.de.txt  INFO server: group caches:  INFO server: ads: 1 entries  INFO server: whitelist: 1 entries  INFO server: TOTAL: 2 entries  INFO server: -> resolver: 'CachingResolver'  INFO server: minCacheTimeInSec = 0  INFO server: maxCacheTimeSec = 0  INFO server: cacheTimeNegative = 0 seconds  INFO server: prefetching = false  INFO server: cache items count = 0  INFO server: -> resolver: 'ConditionalUpstreamResolver'  INFO server: net.cn = "parallel upstreams 'default (upstream 'tcp+udp:0.0.0.0:51737')'"  INFO server: fritz.box = "parallel upstreams 'default (upstream 'tcp+udp:0.0.0.0:57894')'"  INFO server: -> resolver: 'ParallelBestResolver'  INFO server: upstream resolvers:  INFO server: - default  INFO server: - upstream 'tcp+udp:0.0.0.0:38306'  INFO server: - DNS listening on addrs/ports: [55555]  INFO server: - TLS listening on addrs/ports: [8853]  INFO server: - HTTP listening on addrs/ports: [4000]  INFO server: - HTTPS listening on addrs/ports: [4443]  INFO server: runtime information:  INFO server: MEM Alloc = 0 MB  INFO server: MEM HeapAlloc = 0 MB  INFO server: MEM Sys = 11 MB  INFO server: MEM NumGC = 3  INFO server: RUN NumCPU = 32  INFO server: RUN NumGoroutine = 10  INFO server: Starting server  INFO server: http server is up and running on addr/port 4000  INFO server: https server is up and running on addr/port 4443  INFO server: UDP server is up and running on address :55555  INFO server: TLS server is up and running on address :8853  INFO server: TCP server is up and running on address :55555 • INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (google.de.) response_code=NOERROR response_reason=RESOLVED (0.0.0.0:38306)  INFO queryLog: query resolved answer=A (192.168.178.55) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (custom.lan.) response_code=NOERROR response_reason=CUSTOM DNS • INFO queryLog: query resolved answer=A (192.168.178.56) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (host.lan.home.) response_code=NOERROR response_reason=CUSTOM DNS • INFO queryLog: query resolved answer=A (192.168.178.2) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (host.fritz.box.) response_code=NOERROR response_reason=CONDITIONAL • INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (doubleclick.net.cn.) response_code=NOERROR response_reason=BLOCKED (ads) • INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (doubleclick.net.) response_code=NOERROR response_reason=BLOCKED (ads) • INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (www.bild.de.) response_code=NOERROR response_reason=BLOCKED (ads) • INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (bild.de.) response_code=NOERROR response_reason=RESOLVED (0.0.0.0:38306) •• INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=127.0.0.1 client_names=\010 duration_ms=0 question=A (heise.de.) response_code=NOERROR response_reason=RESOLVED (0.0.0.0:38306) • INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=127.0.0.1 client_names=clWhitelistOnly duration_ms=0 question=A (heise.de.) response_code=NOERROR response_reason=CACHED • INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=clWhitelistOnly duration_ms=0 question=A (google.de.) response_code=NOERROR response_reason=BLOCKED (WHITELIST ONLY)  INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=clAdsAndYoutube duration_ms=0 question=A (www.bild.de.) response_code=NOERROR response_reason=BLOCKED (ads)  INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=clAdsAndYoutube duration_ms=0 question=A (youtube.com.) response_code=NOERROR response_reason=BLOCKED (youtube) •• INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=127.0.0.1 client_names=clYoutubeOnly duration_ms=0 question=A (www.bild.de.) response_code=NOERROR response_reason=RESOLVED (0.0.0.0:38306)  INFO queryLog: query resolved answer=A (0.0.0.0) client_ip=127.0.0.1 client_names=clYoutubeOnly duration_ms=0 question=A (youtube.com.) response_code=NOERROR response_reason=BLOCKED (youtube) •••• INFO queryLog: query resolved answer=A (123.124.122.122) client_ip= client_names= duration_ms=0 question=A (google.de.) response_code=NOERROR response_reason=CACHED •ERROR unknown query type: unknown query type 'WrongType' •ERROR unable to process query: dns: short read •ERROR can't read request: EOF • INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=::1 client_names=\010 duration_ms=0 question=A (www.example.com.) response_code=NOERROR response_reason=RESOLVED (0.0.0.0:38306) •ERROR server: can't deserialize message: dns: overflow unpacking uint16 •••• INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=::1 client_names=\010 duration_ms=0 question=A (www.example.com.) response_code=NOERROR response_reason=CACHED • INFO queryLog: query resolved answer=A (123.124.122.122) client_ip=::1 client_names=client123 duration_ms=0 question=A (www.example.com.) response_code=NOERROR response_reason=CACHED •••ERROR unable to process query: dns: short read •[2022-05-12 07:26:44]  INFO server: current configuration: [2022-05-12 07:26:44]  INFO server: -> resolver: 'IPv6DisablingResolver' [2022-05-12 07:26:44]  INFO server: accept AAAA [2022-05-12 07:26:44]  INFO server: -> resolver: 'ClientNamesResolver' [2022-05-12 07:26:44]  INFO server: deactivated, use only IP address [2022-05-12 07:26:44]  INFO server: -> resolver: 'QueryLoggingResolver' [2022-05-12 07:26:44]  INFO server: type: "console" [2022-05-12 07:26:44]  INFO server: target: "" [2022-05-12 07:26:44]  INFO server: logRetentionDays: 0 [2022-05-12 07:26:44]  INFO server: -> resolver: 'MetricsResolver' [2022-05-12 07:26:44]  INFO server: metrics: [2022-05-12 07:26:44]  INFO server: Enable = false [2022-05-12 07:26:44]  INFO server: Path = /metrics [2022-05-12 07:26:44]  INFO server: -> resolver: 'CustomDNSResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'HostsFileResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'BlockingResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'CachingResolver' [2022-05-12 07:26:44]  INFO server: minCacheTimeInSec = 0 [2022-05-12 07:26:44]  INFO server: maxCacheTimeSec = 0 [2022-05-12 07:26:44]  INFO server: cacheTimeNegative = 30 minutes [2022-05-12 07:26:44]  INFO server: prefetching = false [2022-05-12 07:26:44]  INFO server: cache items count = 0 [2022-05-12 07:26:44]  INFO server: -> resolver: 'ConditionalUpstreamResolver' [2022-05-12 07:26:44]  INFO server: deactivated [2022-05-12 07:26:44]  INFO server: -> resolver: 'ParallelBestResolver' [2022-05-12 07:26:44]  INFO server: upstream resolvers: [2022-05-12 07:26:44]  INFO server: - default [2022-05-12 07:26:44]  INFO server: - upstream 'tcp+udp:4.4.4.4:53' [2022-05-12 07:26:44]  INFO server: - DNS listening on addrs/ports: [53] [2022-05-12 07:26:44]  INFO server: - TLS listening on addrs/ports: [] [2022-05-12 07:26:44]  INFO server: - HTTP listening on addrs/ports: [] [2022-05-12 07:26:44]  INFO server: - HTTPS listening on addrs/ports: [] [2022-05-12 07:26:44]  INFO server: runtime information: [2022-05-12 07:26:44]  INFO server: MEM Alloc = 1 MB [2022-05-12 07:26:44]  INFO server: MEM HeapAlloc = 1 MB [2022-05-12 07:26:44]  INFO server: MEM Sys = 11 MB [2022-05-12 07:26:44]  INFO server: MEM NumGC = 6 [2022-05-12 07:26:44]  INFO server: RUN NumCPU = 32 [2022-05-12 07:26:44]  INFO server: RUN NumGoroutine = 29 •• INFO server: current configuration:  INFO server: -> resolver: 'IPv6DisablingResolver'  INFO server: accept AAAA  INFO server: -> resolver: 'ClientNamesResolver'  INFO server: deactivated, use only IP address  INFO server: -> resolver: 'QueryLoggingResolver'  INFO server: type: "console"  INFO server: target: ""  INFO server: logRetentionDays: 0  INFO server: -> resolver: 'MetricsResolver'  INFO server: metrics:  INFO server: Enable = false  INFO server: Path =  INFO server: -> resolver: 'CustomDNSResolver'  INFO server: custom.lan = "[192.168.178.55]"  INFO server: lan.home = "[192.168.178.56]"  INFO server: -> resolver: 'HostsFileResolver'  INFO server: deactivated  INFO server: -> resolver: 'BlockingResolver'  INFO server: deactivated  INFO server: -> resolver: 'CachingResolver'  INFO server: minCacheTimeInSec = 0  INFO server: maxCacheTimeSec = 0  INFO server: cacheTimeNegative = 0 seconds  INFO server: prefetching = false  INFO server: cache items count = 0  INFO server: -> resolver: 'ConditionalUpstreamResolver'  INFO server: deactivated  INFO server: -> resolver: 'ParallelBestResolver'  INFO server: upstream resolvers:  INFO server: - default  INFO server: - upstream 'tcp+udp:4.4.4.4:53'  INFO server: - DNS listening on addrs/ports: [:55556]  INFO server: - TLS listening on addrs/ports: []  INFO server: - HTTP listening on addrs/ports: []  INFO server: - HTTPS listening on addrs/ports: []  INFO server: runtime information:  INFO server: MEM Alloc = 1 MB  INFO server: MEM HeapAlloc = 1 MB  INFO server: MEM Sys = 12 MB  INFO server: MEM NumGC = 8  INFO server: RUN NumCPU = 32  INFO server: RUN NumGoroutine = 33  INFO server: Starting server  INFO server: Starting server  INFO server: TCP server is up and running on address :55556  INFO server: UDP server is up and running on address :55556 FATAL server: start tcp listener failed: dns: server already started FATAL server: start udp listener failed: dns: server already started  INFO server: Stopping server • INFO server: current configuration:  INFO server: -> resolver: 'IPv6DisablingResolver'  INFO server: accept AAAA  INFO server: -> resolver: 'ClientNamesResolver'  INFO server: deactivated, use only IP address  INFO server: -> resolver: 'QueryLoggingResolver'  INFO server: type: "console"  INFO server: target: ""  INFO server: logRetentionDays: 0  INFO server: -> resolver: 'MetricsResolver'  INFO server: metrics:  INFO server: Enable = false  INFO server: Path =  INFO server: -> resolver: 'CustomDNSResolver'  INFO server: lan.home = "[192.168.178.56]"  INFO server: custom.lan = "[192.168.178.55]"  INFO server: -> resolver: 'HostsFileResolver'  INFO server: deactivated  INFO server: -> resolver: 'BlockingResolver'  INFO server: deactivated  INFO server: -> resolver: 'CachingResolver'  INFO server: minCacheTimeInSec = 0  INFO server: maxCacheTimeSec = 0  INFO server: cacheTimeNegative = 0 seconds  INFO server: prefetching = false  INFO server: cache items count = 0  INFO server: -> resolver: 'ConditionalUpstreamResolver'  INFO server: deactivated  INFO server: -> resolver: 'ParallelBestResolver'  INFO server: upstream resolvers:  INFO server: - default  INFO server: - upstream 'tcp+udp:4.4.4.4:53'  INFO server: - DNS listening on addrs/ports: [127.0.0.1:55557]  INFO server: - TLS listening on addrs/ports: []  INFO server: - HTTP listening on addrs/ports: []  INFO server: - HTTPS listening on addrs/ports: []  INFO server: runtime information:  INFO server: MEM Alloc = 1 MB  INFO server: MEM HeapAlloc = 1 MB  INFO server: MEM Sys = 12 MB  INFO server: MEM NumGC = 10  INFO server: RUN NumCPU = 32  INFO server: RUN NumGoroutine = 38  INFO server: Starting server  INFO server: TCP server is up and running on address 127.0.0.1:55557  INFO server: UDP server is up and running on address 127.0.0.1:55557  INFO server: Stopping server  INFO server: Stopping server FATAL server: stop udp listener failed: dns: server not started FATAL server: stop tcp listener failed: dns: server not started  INFO server: Stopping server FATAL server: stop udp listener failed: dns: server not started FATAL server: stop tcp listener failed: dns: server not started ••• INFO server: Stopping server Ran 37 of 37 Specs in 0.407 seconds SUCCESS! -- 37 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestDNSServer (0.45s) PASS coverage: 93.0% of statements ok github.com/0xERR0R/blocky/server 0.466s coverage: 93.0% of statements === RUN TestLists [2022-05-12 07:26:43] ERROR Using fallback for unsupported query type NS [2022-05-12 07:26:43] ERROR Using fallback for unsupported query type NS Running Suite: Util Suite ========================= Random Seed: 1652340403 Will run 27 of 27 specs •••••••••••••[2022-05-12 07:26:43] ERROR message test ••[2022-05-12 07:26:43] FATAL message test •••••••••••[2022-05-12 07:26:43] FATAL bootstrap dns net should be tcp+udp • Ran 27 of 27 Specs in 0.001 seconds SUCCESS! -- 27 Passed | 0 Failed | 0 Pending | 0 Skipped --- PASS: TestLists (0.03s) PASS coverage: 98.9% of statements ok github.com/0xERR0R/blocky/util 0.034s coverage: 98.9% of statements ? github.com/0xERR0R/blocky/web [no test files] >>> blocky: Entering fakeroot... >>> blocky*: Running postcheck for blocky >>> blocky*: Preparing package blocky... >>> blocky*: Stripping binaries >>> blocky*: Scanning shared objects >>> blocky*: Tracing dependencies... so:libc.musl-x86.so.1 >>> blocky*: Package size: 17.2 MB >>> blocky*: Compressing data... >>> blocky*: Create checksum... >>> blocky*: Create blocky-0.18-r1.apk >>> blocky: Build complete at Thu, 12 May 2022 07:28:18 +0000 elapsed time 0h 2m 4s >>> blocky: Cleaning up srcdir >>> blocky: Cleaning up pkgdir >>> blocky: Uninstalling dependencies... (1/2) Purging .makedepends-blocky (20220512.072615) (2/2) Purging go (1.18.2-r0) Executing busybox-1.35.0-r13.trigger OK: 325 MiB in 98 packages >>> blocky: Updating the testing/x86 repository index... >>> blocky: Signing the index...