驱动启动不起来
-
日志报这个错误:
2024/11/03 21:21:05 INFO 启动服务: 版本=v4.2.34
panic: 初始化消息队列错误: not Authorizedgoroutine 1 [running]:
github.com/air-iot/sdk-go/v4/driver.NewApp()
/go/pkg/mod/github.com/air-iot/sdk-go/v4@v4.7.11/driver/app.go:136 +0x40e
main.main()
/builds/core/drivers/modbus-driver/cmd/modbus/main.go:15 +0x5f
{"time":"2024-11-03T21:21:05.180516+08:00","level":"INFO","msg":"启动配置={ServiceID:669493618a85cc2c6c09534d GroupID: Project:default Driver:{ID:modbus Name:Modbus-TCP} DriverGrpc:{Host:127.0.0.1 Port:9224 Health:{RequestTime:10s Retry:3} Stream:{Heartbeat:10s} WaitTime:5s Timeout:10m0s Limit:100} Log:{Level:4 Format:json Output:stdout OutputFile: MaxAge:0 RotationTime:0 RotationSize:0 RotationCount:0 Syslog:{ServiceName:default-669493618a85cc2c6c09534d-modbus ProjectId:default}} MQ:{Type:mqtt Timeout:1m0s MQTT:{Host:127.0.0.1 Port:1883 Username:admin Password:public KeepAlive:60 ConnectTimeout:20 ProtocolVersion:4} Rabbit:{Host:rabbit Port:5672 Username:admin Password:public VHost: Exchange: Queue:} Kafka:{Brokers:[kafka:9092] Version: GroupID: ClientID: MaxOpenRequests:0 Balancer: Partition:<nil> AutoCommit:<nil>}} Pprof:{Enable:false Host: Port:9002} EtcdConfig: Etcd:{Endpoints:[] DialTimeout:0 Username: Password: AutoSyncInterval:0s}}"} -
core日志:
{"time":"2024-11-04T14:33:35.7173747+08:00","level":"INFO","msg":"周期性更新授权缓存完成"}
{"time":"2024-11-04T14:33:36.2888943+08:00","level":"INFO","msg":"更新机器码缓存完成"}2024/11/04 14:33:40 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[288.771ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒7车间'[0m
{"time":"2024-11-04T14:34:05.717161+08:00","level":"INFO","msg":"周期性更新授权缓存完成"}
{"time":"2024-11-04T14:34:06.3127432+08:00","level":"INFO","msg":"更新机器码缓存完成"}
{"time":"2024-11-04T14:34:14.2339874+08:00","level":"INFO","msg":"查询项目[default]UsedLicense"}2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[214.570ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒5车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[206.549ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '蒸汽数据不一致班组'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[204.544ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒4车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[219.583ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒6车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[203.542ms] [33m[rows:1][35m SELECT "showField","dataSource","permissions","id","title","schema","permission","function" FROM "default"."table" WHERE "id" = '制酒8车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[411.093ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒14车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[435.156ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[254.677ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[203.541ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[235.626ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒15车间" WHERE "id" = '制酒15_105'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[228.608ms] [33m[rows:1][35m SELECT * FROM "default"."制酒15车间" WHERE id='制酒15_110'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[207.552ms] [33m[rows:1][35m SELECT * FROM "default"."制酒5车间" WHERE id='制酒5_42'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[456.212ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒9车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[450.196ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒5车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[253.675ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒8车间" WHERE "id" = '制酒8_90'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[279.744ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒9车间" WHERE "id" = '制酒9_79'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[205.547ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒10车间" WHERE "id" = '制酒10_97'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[249.665ms] [33m[rows:1][35m SELECT "dataSource","permissions","id","title","schema","permission","function","showField" FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[456.212ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒7车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[248.661ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[203.541ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[259.691ms] [33m[rows:1][35m SELECT "schema","permission","function","showField","dataSource","permissions","id","title" FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[228.608ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒8车间" WHERE "id" = '制酒8_88'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[209.557ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[214.569ms] [33m[rows:1][35m SELECT "tableData","formschema","device","computed","warning","table_params","id" FROM "default"."table_record" WHERE "tableData" = '制酒8_84' AND "tableInfo" = '制酒8车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[217.579ms] [33m[rows:1][35m SELECT * FROM "default"."蒸汽数据不一致班组" WHERE id='制酒9_74'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[254.678ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒6车间" WHERE "id" = '制酒6_52'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[307.819ms] [33m[rows:1][35m SELECT "schema","permission","function","showField","dataSource","permissions","id","title" FROM "default"."table" WHERE "id" = '制酒16车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[224.596ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒14车间" WHERE "id" = '制酒14_3'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[257.685ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[320.853ms] [33m[rows:1][35m SELECT "permission","function","showField","dataSource","permissions","id","title","schema" FROM "default"."table" WHERE "id" = '制酒8车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[264.704ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[219.583ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[270.720ms] [33m[rows:1][35m SELECT * FROM "default"."制酒5车间" WHERE id='制酒5_44'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[240.640ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[219.584ms] [33m[rows:1][35m SELECT * FROM "default"."制酒5车间" WHERE id='制酒5_60'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[327.872ms] [33m[rows:1][35m SELECT "showField","dataSource","permissions","id","title","schema","permission","function" FROM "default"."table" WHERE "id" = '制酒6车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[211.562ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[242.645ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒7车间" WHERE "id" = '制酒7_49'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[235.626ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒4车间" WHERE "id" = '制酒4_38'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[243.648ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[222.592ms] [33m[rows:1][35m SELECT * FROM "default"."制酒5车间" WHERE id='制酒5_45'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[250.666ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[233.621ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒16车间" WHERE "id" = '制酒16_116'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[270.721ms] [33m[rows:1][35m SELECT * FROM "default"."制酒10车间" WHERE id='制酒10_100'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[267.712ms] [33m[rows:1][35m SELECT * FROM "default"."制酒4车间" WHERE id='制酒4_33'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[259.690ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒10车间" WHERE "id" = '制酒10_96'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[323.861ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[353.941ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[283.755ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[289.771ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒14车间" WHERE "id" = '制酒14_4'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[336.897ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒10车间" WHERE "id" = '制酒10_98'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[284.757ms] [33m[rows:1][35m SELECT "title","schema","id" FROM "default"."table" WHERE "id" = '制酒10车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[312.832ms] [33m[rows:1][35m SELECT * FROM "default"."制酒7车间" WHERE id='制酒7_48'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[305.813ms] [33m[rows:1][35m SELECT "tableData","formschema","device","computed","warning","table_params","id" FROM "default"."table_record" WHERE "tableData" = '制酒8_92' AND "tableInfo" = '制酒8车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[352.939ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒6车间" WHERE "id" = '制酒6_57'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[318.848ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[353.942ms] [33m[rows:1][35m SELECT "id","title","schema","permission","function","showField","dataSource","permissions" FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[282.751ms] [33m[rows:1][35m SELECT "schema","id","title" FROM "default"."table" WHERE "function" like '%dataAuth%'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[287.765ms] [33m[rows:1][35m SELECT "id","title","schema" FROM "default"."table" WHERE "id" = '制酒10车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[200.533ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[367.978ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[378.005ms] [33m[rows:1][35m SELECT "permission","function","showField","dataSource","permissions","id","title","schema" FROM "default"."table" WHERE "id" = '制酒10车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[332.885ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[393.044ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒9车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[398.057ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒9车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[353.941ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[317.846ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[362.965ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒9车间" WHERE "id" = '制酒9_71'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[394.048ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[600.596ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[337.898ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[426.133ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒6车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[366.976ms] [33m[rows:1][35m SELECT * FROM "default"."制酒6车间" WHERE id='制酒6_58'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[399.061ms] [33m[rows:1][35m SELECT * FROM "default"."制酒16车间" WHERE id='制酒16_121'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[237.632ms] [33m[rows:1][35m SELECT "schema","id","title" FROM "default"."table" WHERE "function" like '%dataAuth%'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[393.045ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[464.234ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒6车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[417.110ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[652.734ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒7车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[385.024ms] [33m[rows:1][35m SELECT "title","schema","permission","function","showField","dataSource","permissions","id" FROM "default"."table" WHERE "id" = '制酒14车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[206.549ms] [33m[rows:1][35m SELECT * FROM "default"."制酒9车间" WHERE id='制酒9_79'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[279.744ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒14车间" WHERE "id" = '制酒14_3'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[413.099ms] [33m[rows:1][35m SELECT "warning","table_params","id","tableData","formschema","device","computed" FROM "default"."table_record" WHERE "tableData" = '制酒15_112' AND "tableInfo" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[270.720ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒7车间" WHERE "id" = '制酒7_50'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[211.562ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[323.861ms] [33m[rows:1][35m SELECT * FROM "default"."茅台和义兴" WHERE "id" in ('茅台和义兴','制酒16车间')[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[282.752ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[425.130ms] [33m[rows:1][35m SELECT "computed","warning","table_params","id","tableData","formschema","device" FROM "default"."table_record" WHERE "tableData" = '制酒8_93' AND "tableInfo" = '制酒8车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[261.695ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[201.536ms] [33m[rows:1][35m SELECT "title","schema","id" FROM "default"."table" WHERE "id" = '蒸汽数据不一致班组'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[669.780ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒14车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[240.640ms] [33m[rows:1][35m SELECT * FROM "default"."制酒14车间" WHERE id='制酒14_2'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[408.085ms] [33m[rows:1][35m SELECT * FROM "default"."table" WHERE "id" = '茅台和义兴'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[433.152ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[459.222ms] [33m[rows:1][35m SELECT * FROM "default"."制酒8车间" WHERE id='制酒8_89'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[219.584ms] [33m[rows:1][35m SELECT * FROM "default"."制酒6车间" WHERE id='制酒6_55'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[202.539ms] [33m[rows:1][35m SELECT "id","tableData","formschema","device","computed","warning","table_params" FROM "default"."table_record" WHERE "tableData" = '制酒6_54' AND "tableInfo" = '制酒6车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[250.666ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒15车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[210.560ms] [33m[rows:1][35m SELECT * FROM "default"."制酒4车间" WHERE id='制酒4_38'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[241.643ms] [33m[rows:1][35m SELECT count(*) FROM "default"."制酒8车间" WHERE "id" = '制酒8_90'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[239.637ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[220.587ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='defaultApp'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:60 [33mSLOW SQL >= 200ms
[0m[31;1m[432.149ms] [33m[rows:1][35m SELECT * FROM "default"."user" WHERE id='admin'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[230.613ms] [33m[rows:1][35m SELECT "schema","id","title" FROM "default"."table" WHERE "function" like '%dataAuth%'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:180 [33mSLOW SQL >= 200ms
[0m[31;1m[242.645ms] [33m[rows:1][35m SELECT * FROM "default"."茅台和义兴" WHERE "id" in ('制酒8车间')[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[742.975ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒9车间'[0m2024/11/04 14:34:20 [32m/go/pkg/mod/git.airiot.tech/core/service.git/v4@v4.4.17/gormdb/gorm.go:99 [33mSLOW SQL >= 200ms
[0m[31;1m[745.983ms] [33m[rows:1][35m SELECT count(*) FROM "default"."table" WHERE "id" = '制酒9车间'[0m
{"time":"2024-11-04T14:34:35.7171634+08:00","level":"INFO","msg":"周期性更新授权缓存完成"}
{"time":"2024-11-04T14:34:36.2064415+08:00","level":"INFO","msg":"更新机器码缓存完成"} -
@laoxie
1.浏览器输入ip:58080打开etcdkeeper
连接etcd,
用户名root
密码dell123
2.打开airiot/config/pro.json
查看mqtt的密码复制ENC括号中的字符,使用base64解码获取mqtt的密码
然后使用mqttX或者mqttbox连接mqtt
端口默认1883,可以在运维查看mqtt的端口,用户名admin,密码就是解码之后的明文,看看能否连上
①如果可以连上,表示mqtt密码初始化没问题,这时找一个重启中的驱动,看一下驱动的日志,加载配置那一块儿的日志,找到mqtt的密码配置,查看是否和etcd配置中的相同
②如果连不上,表示mqtt密码初始化错误,需要重新初始化密码