-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
panic: runtime error: index out of range [7] with length 1 #3506
Comments
Hello, and thank you for your report! The The issue itself might be due to a bad migration as well. Considering that the statistics database doesn't contain any critical data, we probably can simply skip the incorrect records. We'll try to fix it before the release of v0.107.0-b.9. |
I figured that out and stopped trying to get an older version working :-)
Very likely that might be due to a bad migration, I use the :latest tag and have watchtower auto-upgrade adguardhome (while being aware of the risks of it breaking). Thanks for taking ownership of this issue! |
The latest edge build, v0.107.0-a.144+9f52adf3, should contain a fix. It will also be included into v0.107.0-b.9, which we plan to release early next week. Can you check if our solution works for you either now with the |
works with the edge tag. btw. here is the log output with :edge in case its of interest to you. There's one fail and 2 errors in there
|
In theory, yes, that should be enough. As long as you have your persistent volumes, there shouldn't be any data loss.
This one just means that the filter list is gone now, which is probably not an AGH error.
These likely come from the same stats issues, and the errors don't look critical to AGH functioning. Since the original bug is fixed, I'm going to close this issue. Please feel free to report any other bugs! |
Updates AdguardTeam#3506. Squashed commit of the following: commit 8e5a243 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Aug 27 14:34:37 2021 +0300 stats: delete units with bad names
This adguard home instance was running just fine for many months. I just recently noticed I did not have it on autostart so it was down for a while.
Issue Details
I noticed my adguard instance wasn't running for a while so I manually did a docker-compose up -d and got this error:
docker-compose up -d Creating adguardhome ... done docker-compose logs -f Attaching to adguardhome adguardhome | 2021/08/27 08:08:49.224778 [info] AdGuard Home, version v0.106.3 adguardhome | 2021/08/27 08:08:49.251370 [info] Initializing auth module: /opt/adguardhome/work/data/sessions.db adguardhome | 2021/08/27 08:08:49.251991 [info] auth: initialized. users:1 sessions:0 adguardhome | 2021/08/27 08:08:49.252015 [info] Initialize web module adguardhome | panic: runtime error: index out of range [7] with length 1 adguardhome | adguardhome | goroutine 1 [running]: adguardhome | encoding/binary.bigEndian.Uint64(...) adguardhome | encoding/binary/binary.go:125 adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats.btoi(...) adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats/unit.go:233 adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats.createObject.func1(0x7f0060ac4030, 0x1, 0x1, 0x0, 0x0, 0x7f0060a49000) adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats/unit.go:98 +0x219 adguardhome | go.etcd.io/bbolt.(*Tx).ForEach.func1(0x7f0060ac4030, 0x1, 0x1, 0x7f0060ac4031, 0xd35, 0xd35, 0xd35, 0xa59cbf) adguardhome | go.etcd.io/bbolt@v1.3.5/tx.go:129 +0x8c adguardhome | go.etcd.io/bbolt.(*Bucket).ForEach(0xc000190398, 0xc00050cc78, 0xc00050cc90, 0xc000190380) adguardhome | go.etcd.io/bbolt@v1.3.5/bucket.go:390 +0xfe adguardhome | go.etcd.io/bbolt.(*Tx).ForEach(0xc000190380, 0xc00050cd48, 0x0, 0x0) adguardhome | go.etcd.io/bbolt@v1.3.5/tx.go:128 +0x67 adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats.createObject(0xc00012c0c0, 0x23, 0x5a, 0x0, 0x0, 0x13ac280, 0x13ac268, 0x0, 0x0, 0x0, ...) adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats/unit.go:116 +0x3f8 adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats.New(...) adguardhome | github.com/AdguardTeam/AdGuardHome/internal/stats/stats.go:35 adguardhome | github.com/AdguardTeam/AdGuardHome/internal/home.initDNSServer(0xc0001dec90, 0x0) adguardhome | github.com/AdguardTeam/AdGuardHome/internal/home/dns.go:41 +0x1d3 adguardhome | github.com/AdguardTeam/AdGuardHome/internal/home.run(0x0, 0x7ffccfdf2f2e, 0x26, 0x7ffccfdf2f63, 0x15, 0xc00020a030, 0x10, 0x10, 0x0, 0x0, ...) adguardhome | github.com/AdguardTeam/AdGuardHome/internal/home/home.go:335 +0xd8f adguardhome | github.com/AdguardTeam/AdGuardHome/internal/home.Main() adguardhome | github.com/AdguardTeam/AdGuardHome/internal/home/home.go:125 +0x1f9 adguardhome | main.main() adguardhome | github.com/AdguardTeam/AdGuardHome/main.go:10 +0x25 adguardhome exited with code 2
Expected Behavior
docker-compose up -d starts the adguard home container and makes it usable
Actual Behavior
the container stops with the error message above
Additional Information
going as far back as v0.105.2 I get the same error as above until I hit v0.105.2 then the error changes:
2021/08/27 08:05:54 [info] AdGuard Home, version v0.105.2, channel release, arch linux amd64 │ │ 2021/08/27 08:05:54 [info] configuration file contains unknown schema_version, abort │ │ 2021/08/27 08:05:54 [fatal] configuration file contains unknown schema_version, abort
The text was updated successfully, but these errors were encountered: