不仅是不能新建mqtt驱动,我升级一下 core,都会崩溃,如出一辙。服务要么“已创建”、要么“在重启”。有个日志显示:
main.main.func1.1.1()
@ /builds/core/server/iot-computed/cmd/computed/main.go:55 +0xc7
Ogithub.com/air-iot/service/v4/app.Run({0x26bc3f0, 0xc0023d3380}, 0xc002407d10)
M /go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.43/app/app.go:58 +0xfb
main.main.func1(0xc000feb280?)
@ /builds/core/server/iot-computed/cmd/computed/main.go:53 +0x4a
kgithub.com/urfave/cli/v2.(*App).RunContext(0xc000f56680, {0x26bc3b8, 0x426c240}, {0xc00061e0f0, 0x3, 0x3})
? /go/pkg/mod/github.com/urfave/cli/v2@v2.4.0/app.go:322 +0x928
)github.com/urfave/cli/v2.(App).Run(...)
8 /go/pkg/mod/github.com/urfave/cli/v2@v2.4.0/app.go:224
main.main ()
A /builds/core/server/iot-computed/cmd/computed/main.go:61 +0x2b1
2DEBUG msg=config loaded: config.yaml format: yaml
&DEBUG msg=config loaded: format:
'DEBUG msg=config loaded: PATH format:
+DEBUG msg=config loaded: HOSTNAME format:
'DEBUG msg=config loaded: HOME format:
1INFO msg=watcher's ctx cancel : context canceled
1INFO msg=watcher's ctx cancel : context canceled
1INFO msg=watcher's ctx cancel : context canceled
2DEBUG msg=config loaded: config.yaml format: yaml
&DEBUG msg=config loaded: format:
'DEBUG msg=config loaded: PATH format:
+DEBUG msg=config loaded: HOSTNAME format:
'DEBUG msg=config loaded: HOME format:
1INFO msg=watcher's ctx cancel : context canceled
1INFO msg=watcher's ctx cancel : context canceled
&DEBUG msg=config loaded: format:
'DEBUG msg=config loaded: PATH format:
+DEBUG msg=config loaded: HOSTNAME format:
'DEBUG msg=config loaded: HOME format:
k2026/07/26 13:32:27 INFO 服务启动,运行模式:,版本号:v4.3.16,进程号:1 tag=main
1INFO msg=watcher's ctx cancel : context canceled
;panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
agithub.com/air-iot/service/v4/redisdb.NewRedisDB({{0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x0}, 0x0})
U /go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.43/redisdb/client.go:68 +0x434
(iot-computed/internal/app.InitRedisDB()
A /builds/core/server/iot-computed/internal/app/redis.go:11 +0x79
iot-computed/internal/app.BuildInjector()
D /builds/core/server/iot-computed/internal/app/wire_gen.go:23 +0xd4
Ziot-computed/internal/app.Init({0x26bc3f0, 0xc001df2e40}, {0xc001e87bd8, 0x2, 0x412025?})
@ /builds/core/server/iot-computed/internal/app/app.go:55 +0x25d
main.main.func1.1.1()
@ /builds/core/server/iot-computed/cmd/computed/main.go:55 +0xc7
Ogithub.com/air-iot/service/v4/app.Run({0x26bc3f0, 0xc001df2e40}, 0xc001e87d10)
M /go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.43/app/app.go:58 +0xfb
main.main.func1(0xc002497e80?)
@ /builds/core/server/iot-computed/cmd/computed/main.go:53 +0x4a
kgithub.com/urfave/cli/v2.(*App).RunContext(0xc0024b71e0, {0x26bc3b8, 0x426c240}, {0xc0000505a0, 0x3, 0x3})
? /go/pkg/mod/github.com/urfave/cli/v2@v2.4.0/app.go:322 +0x928
)github.com/urfave/cli/v2.(*App).Run(...)
8 /go/pkg/mod/github.com/urfave/cli/v2@v2.4.0/app.go:224
main.main()
A /builds/core/server/iot-computed/cmd/computed/main.go:61 +0x2b1