#Automation
共 28 篇文章
解决 Ansible 报错 failed to resolve remote temporary directory
分析 Ansible 在远端主机执行任务时报 failed to resolve remote temporary directory 的权限与空间故障及解决步骤。
解决 GitLab CI 报错 rules:changes always evaluating true 条件误判修复
排查 GitLab CI 配置了 rules:changes 仅在修改了前端代码时才执行构建,但在合并分支或定时流水线中该 Job 总是无条件执行,分析 compare_to 基准分支与 Git 提交上下文。
解决 Puppet 报错 Could not request certificate SSL 握手证书修复
排查 Puppet Agent 执行同步提示 SSL_connect returned=1 errno=0 state=error: certificate verify failed,清理本地 ssl 目录并重新签发证书。
解决 Chef 报错 401 Unauthorized client key 鉴权失败修复
排查 chef-client 运行提示 Net::HTTPServerException: 401 "Unauthorized",重新生成 client.pem 私钥与在 Chef Infra Server 重置凭据。
解决 Ansible 报错 Failed to connect to the host via ssh 修复
排查 Ansible 运行 playbook 输出 fatal: [node1]: UNREACHABLE! => Failed to connect to the host via ssh,分析私钥、端口与用户配置。
解决 OPC UA 报错 BadSessionIdInvalid security token expired 会话失效修复
排查 工业自动化客户端连接 OPC UA 服务器持续采集 PLC 数据数小时后突然断开,报 BadSessionIdInvalid 或 BadSecurityTokenRejected,分析 安全令牌周期(SecurityTokenLifeTime)与心跳保活。
解决 Ansible 警告 Platform using discovered Python 异常
解决 Ansible 运行在 macOS/Linux 节点时反复弹出 discovered Python interpreter 警告的 ansible_python_interpreter 显式配置方案。
解决 Linux crontab 定时任务不执行或失败 环境变量缺失修复
排查 Linux crontab 配置的任务手动执行成功但定时不跑,分析 cron 极简环境变量 PATH 机制并重定向 2>&1 错误日志。
解决 GitHub Actions CI 运行报错 Process completed with exit code 1 失败步骤排查与调试
排查 GitHub Actions 工作流运行失败提示 Process completed with exit code 1,快速定位红叉步骤并配置调试断点与重试。
解决 Artillery 报错 Failing metrics ensure condition failed 质量门禁失败修复
排查 Artillery 持续性能测试中报 Ensure conditions failed: p95 latency exceeded threshold 导致 CI 返回非 0 退出码,分析 ensure 门禁规则与聚合过滤。
GitHub Actions 复合动作 Composite Action 输入参数未解析排查
分析 GitHub Actions 编写 Composite Action 时 inputs 与 outputs 变量无法求值为空的语法机制与对策。
Ansible 因未声明 check_mode 兼容性导致干燥演练(--check)非预期修改生产状态排障
排查在执行 Ansible dry-run 检查时由于自定义任务缺少 check_mode 支持导致在预检阶段意外修改生产系统状态的事故与修复。
解决 Ansible 报错 host unreachable connection timed out
分析 Ansible 执行 Playbook 提示 host unreachable connection timed out 的网络防火墙、SSH 端口及密钥凭据排查与修复方案。
解决 GitHub Actions 报错 workflow_run secrets missing 安全隔离拦截修复
排查 使用 workflow_run 事件监听前序流水线完成后触发发布时,发现 Repository Secrets 无法读取(全部为空),导致部署失败,分析 workflow_run 默认上下文与安全隔离限制。
解决 Linux 报错 Cron service is not running 定时任务失效的排查指南
排查与解决 Linux 下 crontab 定时任务不执行、Cron 守护进程未启动或权限异常的完整方案。
解决 SaltStack 报错 Minion did not return 响应超时与丢包修复
排查 SaltStack 批量执行命令提示 Minion did not return. [No response] 错误,调优 ZeroMQ 发布订阅超时与清理陈旧 keys。
解决 Playwright 报错 Target page context or browser has been closed 崩溃修复
排查 Playwright 执行测试提示 target closed / Target page, context or browser has been closed 错误,排查内存溢出与 Docker /dev/shm 扩容。
解决 k6 报错 thresholds on metrics have been crossed exit code 99 阈值中断修复
排查 在 CI/CD 流水线中运行 k6 自动化质量门禁时,流水线由于 thresholds have been crossed 退出码 99 导致构建中断,分析 性能指标阈值设计与偶发冷启动尖刺。
Harbor Webhook 通知丢失导致 CI/CD 流水线无法触发排障
排查 Harbor 镜像仓库在接收到镜像推送后,因 Webhook 配置错误、网络握手失败或证书信任异常导致下游 CI 流水线无法自动触发的故障。
解决 GitHub Actions 报错 Resource not accessible by integration 权限拒绝修复
排查 GitHub Actions 工作流在自动添加 PR 标签、创建 Release 或发布 comment 时,API 返回 403 Resource not accessible by integration,分析 GITHUB_TOKEN 默认只读权限与 permissions 配置块。


