azure-devops - 如何解决无法启动服务以在运行 Linux VM 的 Azure 上运行私有构建代理的问题
问题描述
我已经在 Linux 上安装并以交互方式运行 Azure DevOps 的私有构建代理。
但是,当尝试按照文档设置为服务时,它无法运行。它通常会成功完成安装。但是,启动服务总是返回错误。
配置:运行 Ubuntu 18.04LTS 的新 VM,使用 AAD 和 JIT 保护,使用 VM 管理员权限登录。
错误:
$ sudo ./svc.sh install
Creating launch agent in /etc/systemd/system/vsts.agent.xxx.linux-agent-01.service
Run as user: xxx@microsoft.com
Run as uid: 1613914
gid: 1613914
$ sudo ./svc.sh start
Failed to start vsts.agent.xxx.linux-agent-01.service: Unit vsts.agent.xxx.linux-agent-01.service is not loaded properly: Exec format error.
See system logs and 'systemctl status vsts.agent.xxx.linux-agent-01.service' for details.
Failed: failed to start vsts.agent.xxx.linux-agent-01.service
$
尝试运行时,我得到了这个:
3$ sudo ./svc.sh status
/etc/systemd/system/vsts.agent.edgewebui.LinuxAgent03.service
● vsts.agent.edgewebui.LinuxAgent03.service - VSTS Agent (edgewebui.LinuxAgent03)
Loaded: error (Reason: Exec format error)
Active: inactive (dead)
Feb 28 18:59:18 build-agent-linux systemd[1]: /etc/systemd/system/vsts.agent.edgewebui.LinuxAgent03.service:7: Invalid user/group…osoft.com
Hint: Some lines were ellipsized, use -l to show in full.
关于为什么这不起作用的任何建议。
解决方案
推荐阅读
- node.js - 无法将 express api 连接到 nuxt 应用程序和 mongodb
- sitecore - 如何从代码重新启动 Sitecore 服务器?
- kubernetes - Kubernetes Cronjob Pod 调度问题
- dax - 创建计算列时出现循环依赖错误
- mongodb - 关于事务监控
- powershell - Powershell 版本 2 配置系统初始化失败
- vuejs2 - [vuex]未知动作类型:getPackagingList
- javascript - AnimationFrames 的新手,绘制新图像时需要删除以前的图像,怎么办?
- mysql - MySQL:带有 WHERE 子句的 SUM
- python - 无法将每个单元格中带有 numpy 数组的 pandas 列转换为 tensorflow 张量