core显示的是运行,不是重启中。下面是报错信息
�2026/04/07 13:30:08 文件配置: {App:{Version: ServerID: ServerName:core RunMode: EtcdConfig:/airiot/config/pro.json Platform: Etcd:{Endpoints:[etcd:2379] DialTimeout:10 Username:root Password:dell123 AutoSyncInterval:0s} PrintConfig:false Swagger:false Captcha:{Store: Length:0 Width:0 Height:0 RedisDB:0 RedisPrefix:} Log:{Level:0 Format: Output: OutputFile: MaxAge:0 RotationTime:0 RotationSize:0 RotationCount:0 Syslog:{ServiceName: ProjectId:}} Gorm:{Debug:false LogLevel:0 DBType: MaxLifetime:0 MaxIdleTime:0 MaxOpenConns:0 MaxIdleConns:0 TablePrefix: EnableAutoMigrate:false QueryMaxLength:0 CloseSingleQuote:false MySQL:{Host: Port:0 User: Password: DBName: Parameters:} DM:{Host: Port:0 User: Password: Parameters:} Postgres:{Host: Port:0 User: Password: DBName: SSLMode: Parameters: DBType: Distributed:false} Sqlite3:{Path:}} JWTAuth:{Enable:false SigningMethod: SigningKey: Expired:0 Store: FilePath: RedisDB:0 RedisPrefix: StoreEnabled:false} Sessions:{StoreType: Key: MaxAge:0 RedisPrefix:} Redis:{Type: Addrs:[] Username: Password: PoolSize:0 Timeout:0 DB:0} MethodOverride:false Server:{Metadata:map[env:local] HealthCheckCycle:0s HTTP:{Host: Port:9000 Timeout:0 CertFile: KeyFile: ShutdownTimeout:0 MaxContentLength:0 MaxLoggerLength:0 IdleTimeout:0s ReadTimeout:0s WriteTimeout:0s} GRPC:{Host: Port:9223 Timeout:0 Limit:0}} Endpoints:[] LocaleDir: Root:{UserName:} CORS:{Enable:false AllowOrigins:[] AllowMethods:[] AllowHeaders:[] AllowCredentials:false MaxAge:0} GZIP:{Enable:false ExcludedExtentions:[] ExcludedPaths:[]} Casbin:{Enable:false Debug:false Model: AutoLoad:false AutoLoadInternal:0} RateLimiter:{Enable:false Count:0 RedisDB:0} API:{LiteMode:false Gateway: GatewayGrpc: EtcdConfig: Metadata:map[] Services:map[] Type: ProjectId: AK: SK: Timeout:0 KeepAlive:false MaxIdleConns:0 IdleConnTimeout:0s Limit:0 Debug:false Service:{Expire:0s} ExpirePrecision:0} Flow:{Host: Port:0 WriteTimeout:0} FileServer:{FileServerType: FileServer: MediaLibraryPath: SystemDefaultMediaLibrary: OnlineDefaultMediaLibrary: SystemDefaultMediaLibraryMod:false UserFilesPath: MinioConfig:{UseIndividualBucket:false BucketName: SystemDefaultBucketName: Endpoint: AccessKeyID: SecretAccessKey: UseSSl:false ExpireIn:0}} MQ:{MQType: MQTT:{Schema: Host: Port:0 Username: Password: KeepAlive:0 ConnectTimeout:0 ProtocolVersion:0 PubQos:0 Qos:0 Order:false ClientIdPrefix: ServerName:core EnableSubShare:false TLSConfig:<nil>} RabbitMQ:{Host: Port:0 Username: Password: VHost: Exchange: Queue:} Kafka:{Brokers:[] Version: GroupID:core GroupIDSuffix: ClientID:core MaxOpenRequests:0 Balancer: Partition:<nil> AutoCommit:<nil> AutoMark:false}} TSDB:{DBType: DBName: Timeout:0 MaxConn:0 MaxOpenConns:0 MaxLifetime:0 MaxIdleConns:0 MaxRetries:0 MaxDelay:0s Influx:{Protocol: Addr: HttpAddr: Username: Password: Sharding:false CreateDatabaseSql: RetentionPolicy: Precision:} Influx2:{Addr: Token: Org: Bucket: Username: Password: UseGZip:<nil> LogLevel:<nil> MaxRetries:<nil> MaxIdleConns:<nil> MaxIdleConnsPerHost:<nil> IdleConnTimeout:<nil> DialTimeout:<nil> TLSHandshakeTimeout:<nil>} TDengine:{DriverName: Addr: Field:{Time: ID:0 Department:0 Tag:0 Nchar:0 Varchar:0} WriteBatchSize:0 CreateDatabaseSql:} Cassandra:{Addrs:[] Username: Password: Consistency:}} Pprof:{Enable:false Prefix: Host: Port:0} Trace:{Enable:false} Operation:{Address: Timeout:0} Lock:{Type:} Cache:{Expire:0s RedisExpire:0s HealthCheck:0s LockTTL:0s} TaskMode:} Forbidden:false FileServerType:local FileServer:/app/fileServer MediaLibraryPath:mediaLibrary SystemDefaultMediaLibrary:systemDefaultMediaLibrary SystemDefaultMediaLibraryMod:false UserFilesPath:userFiles Backup:/app/backup MaxFreeDiskSpaceForBackup:10 CryptoType: Html:/app/html LicenseDir:/app/license SVG:/app/svg Warningkind:[{"alert": true, "fix": true, "handle": true, "id": "ada21497-888f-4f6d-acc3-cb04250d8037", "name": "超限报警", "show": true }, { "alert": true, "fix": true, "handle": true, "id": "61024533-e716-439d-bf3f-e8f2a5c99128", "name": "仪表故障", "show": true }, { "alert": true, "fix": true, "handle": true, "id": "1f849be4-2907-4459-9665-3fda916bf286", "name": "其他报警", "show": true }, { "alert": true, "fix": true, "handle": true, "id": "1d345be4-2567-4764-7890-3ghj278vb342", "name": "数值超限", "show": true }, { "alert": true, "fix": true, "handle": true, "id": "1z875be4-2267-4564-7790-4kij278vb342", "name": "驱动掉线报警", "show": true }, { "alert": true, "fix": true, "handle": true, "id": "1z875xn8-2237-4544-7770-4kix918vb342", "name": "常规表数据报警", "show": true }, { "alert": true, "handle": true, "id": "1z875zt8-2357-4664-7756-4kfg9vzyu672", "name": "采集数据类型不一致", "show": true, "fix": true }] UseLicenseRefreshInterval:60 UseLicenseRefreshTimeout:1m0s}
�2026/04/07 13:30:08 INFO 创建etcd连接: {Endpoints:[etcd:2379] DialTimeout:10 Username:root Password:dell123 AutoSyncInterval:0s}
1INFO msg=watcher's ctx cancel : context canceled
�2026/04/07 13:30:18 ERROR 设置配置中心,读配置,etcd连接创建错误: 创建etcd客户端错误: context deadline exceeded
�2026/04/07 13:30:18 INFO 创建etcd连接: {Endpoints:[etcd:2379] DialTimeout:10 Username:root Password:dell123 AutoSyncInterval:0s}
k2026/04/07 13:30:28 读配置,etcd连接创建错误: 创建etcd客户端错误: context deadline exceeded