求助sub2api问题
- 内容介绍
- 文章标签
- 相关推荐
如题,我部署了sub2api
然后我现在遇到了问题,查看log发现这一个问题
把全部log送到了ai里面,他给我回答postgresql连接池满了,数据库 Schema 不匹配
而且还有上下文过高的问题
ERROR service/ops_aggregation_service.go:212 [OpsAggregation][hourly] upsert failed (2026-04-02T05:00:00Z..2026-04-02T06:00:00Z): pq: column "duration_avg_ms" of relation "ops_metrics_hourly" does not exist {"service": "sub2api", "env": "production", "component": "service.ops_aggregation", "legacy_printf": true}
ERROR stdlog handler/ops_error_logger.go:176 [Ops] RecordErrorBatch single insert failed: pq: column "upstream_errors" of relation "ops_error_logs" does not exist {"service": "sub2api", "env": "production", "legacy_stdlog": true}
ERROR service/ops_alert_evaluator_service.go:189 [OpsAlertEvaluator] list rules failed: pq: column "notify_email" does not exist {"service": "sub2api", "env": "production", "component": "service.ops_alert_evaluator", "legacy_printf": true}
如题,我部署了sub2api
然后我现在遇到了问题,查看log发现这一个问题
把全部log送到了ai里面,他给我回答postgresql连接池满了,数据库 Schema 不匹配
而且还有上下文过高的问题
ERROR service/ops_aggregation_service.go:212 [OpsAggregation][hourly] upsert failed (2026-04-02T05:00:00Z..2026-04-02T06:00:00Z): pq: column "duration_avg_ms" of relation "ops_metrics_hourly" does not exist {"service": "sub2api", "env": "production", "component": "service.ops_aggregation", "legacy_printf": true}
ERROR stdlog handler/ops_error_logger.go:176 [Ops] RecordErrorBatch single insert failed: pq: column "upstream_errors" of relation "ops_error_logs" does not exist {"service": "sub2api", "env": "production", "legacy_stdlog": true}
ERROR service/ops_alert_evaluator_service.go:189 [OpsAlertEvaluator] list rules failed: pq: column "notify_email" does not exist {"service": "sub2api", "env": "production", "component": "service.ops_alert_evaluator", "legacy_printf": true}

