「Rancher」- 常见问题处理

  CREATED BY JENKINSBOT

修改日志等级

Rancher Docs: Logging

# 通过 Docker 部署
docker exec -ti <container_id> loglevel --set debug  # debug info trace

[ERROR] error syncing ‘system-library’

...
rancher-server    | 2022/08/01 09:47:03 [ERROR] error syncing 'system-library': handler system-image-upgrade-catalog-controller: upgrade cluster c-m-dqgvppq8 system service alerting failed: template system-library-rancher-monitoring incompatible with rancher version or cluster's [c-m-dqgvppq8] kubernetes version, requeuing
rancher-server    | 2022/08/01 09:47:03 [ERROR] error syncing 'system-library': handler system-image-upgrade-catalog-controller: upgrade cluster c-m-dqgvppq8 system service alerting failed: template system-library-rancher-monitoring incompatible with rancher version or cluster's [c-m-dqgvppq8] kubernetes version, requeuing
...

原因分析:
原始的 Catelog system-library 是 Rancher 自带的,使用 release-v2.6 分支;

解决方案:
修改系统 Catelog 配置,将 system-library 的 branche 设置为 master;