Back to home

Compare

Comparing: Six Services Failed at Launch: AI Projects Must Pay Off Their Engineering Debt & 六个服务上线即报错,AI 项目落地先补齐工程账

AEN
ViteNginxFlowable·

Six Services Failed at Launch: AI Projects Must Pay Off Their Engineering Debt

After six services went live, every menu threw an error. It took nearly 40 minutes to diagnose, but the problem was a single frontend environment variable: the production bundle constructed the API address as /undefined/api/xxx, so requests never reached the backend. This reminds us that the most underestimated part of deploying AI projects is often not model performance, but engineering delivery capability.

What this is

This is a field-deployment postmortem for industrial software. The team had to deal with six services across the management, blast furnace, and sintering interfaces. The issues included network connectivity failures, out-of-order SQL, a missing Flowable dependency, SELinux permission restrictions, an incompatible MySQL client, and unexecuted migrations from historical databases.

Ultimately, the team wrote an interactive deployment script in Python. It checks ports in sequence, stops old services, copies files, executes database scripts, starts services, and runs health checks. Any failed step halts the process; afterward, the script automatically traverses 22 menus for regression testing. Actual deployment time was about eight minutes, saving nearly one hour compared with manual operation.

Industry view

We have noticed that once AI applications move from demonstrations into production, the bottleneck is shifting from “whether the model can answer” to “whether the system can be delivered reliably.” Model performance determines a product’s ceiling, while configuration, permissions, databases, and acceptance processes determine its floor. The latter still rely heavily on manual experience.

The risks are equally clear: writing a deployment script in one go until it spans hundreds of lines, checking only whether service processes remain alive, or expecting team members to memorize every platform’s implicit rules all leave failures to be discovered at the deployment site. Temporarily disabling SELinux to restore access, as described here, can help with troubleshooting, but it cannot replace a formal security policy. A more reliable approach is to embed environment-variable validation, database-schema comparison, and end-to-end menu regression testing directly into the pipeline.

Automation’s value therefore lies not in “typing fewer commands,” but in making failures visible, allowing steps to stop safely, and making results verifiable. For most enterprises, this addresses the current bottleneck more directly than rushing to add another Agent—an AI program capable of autonomously invoking tools to complete tasks.

Impact on regular people

For enterprise IT: When procuring AI products, enterprises should include production-environment validation, fault rollback, and permission configuration in their acceptance criteria. Demo performance and whether an API is online are not enough.

For workplace professionals: When working with AI, professional value comes not only from prompt engineering. Identifying configuration differences, designing validation processes, and codifying experience as scripts remain core capabilities for technical and management personnel.

For the consumer market: Consumers may never see deployment scripts, but they will feel the stability of the products they use. If enterprises close these foundational engineering gaps first, AI features will be less likely to suffer the gap between “easy to demonstrate and difficult to use.”

Source: juejin.cn
BZH
ViteNginxFlowable·

六个服务上线即报错,AI 项目落地先补齐工程账

6 个服务上线后菜单全部报错,排查近 40 分钟后,问题却出在前端一个环境变量:生产包把接口地址拼成了 /undefined/api/xxx,请求根本没有到达后端。这提醒我们,AI 项目落地最容易被低估的,往往不是模型效果,而是工程交付能力。

这是什么

这是一次工业软件现场部署复盘。团队面对管理端、高炉端和烧结端的 6 个服务,先后处理网络不通、SQL 顺序错误、Flowable 依赖缺失、SELinux 权限限制、MySQL 客户端不兼容,以及历史数据库迁移未执行等问题。

最终,他们用 Python 编写交互式部署脚本:依次检查端口、停止旧服务、复制文件、执行数据库脚本、启动服务和健康检查;任何一步失败便停止,最后自动遍历 22 条菜单进行回归。实测部署时间约 8 分钟,比人工操作节省近 1 小时。

行业怎么看

我们注意到,AI 应用从演示走向生产后,瓶颈正在从“模型能不能回答”转向“系统能不能稳定交付”。模型效果决定产品上限,配置、权限、数据库和验收流程决定产品下限;后者仍大量依赖人工经验。

风险也很明确:把部署脚本一次写成数百行、只验证服务进程存活,或让团队记住每个平台的隐含规则,都会把故障留到上线现场。文中用临时关闭 SELinux 的方式恢复访问,只能用于排障,不能替代正式安全策略。更稳妥的做法,是把环境变量校验、数据库结构对比和端到端菜单回归固化进流水线。

因此,自动化部署的价值不是“少敲命令”,而是让失败可见、步骤可停、结果可验证。对多数企业来说,这比急着增加一个 Agent(能自主调用工具完成任务的 AI 程序)更接近当前瓶颈。

对普通人的影响

对企业 IT:企业采购 AI 产品时,应把生产环境验证、故障回滚和权限配置写进验收标准,不能只看演示效果与接口是否在线。

对个人职场:与 AI 协作时,专业价值不只来自提示词。识别配置差异、设计验证流程并把经验固化为脚本,仍是技术与管理人员的核心能力。

对消费市场:消费者未必直接看到部署脚本,却会感受到产品稳定性。企业若先把这些基础工程补齐,AI 功能才不会频繁出现“能展示、难使用”的落差。

Source: juejin.cn