简体   繁体   English

GitLab 运行器在 32 位 Windows 上的问题

[英]Issues with GitLab Runner on 32-bit Windows

I have a problem with GitLab Runner on 32-bit Windows.我对 32 位 Windows 上的 GitLab Runner 有问题。 The runners are at version 14.4.0 and our GitLab instance is at version 14.4.1-ee.跑步者的版本为 14.4.0,我们的 GitLab 实例的版本为 14.4.1-ee。 The runners are tied to specific machines running 32-bit Windows 10 Pro (10.0.19043), use shell executors (PowerShell), and run with full administrative privileges (ie, as the local system user).运行程序与运行 32 位 Windows 10 Pro (10.0.19043) 的特定机器相关联,使用shell执行程序 (PowerShell),并以完全管理权限运行(即,作为本地系统用户)。 This is outside my control.这是我无法控制的。

Sporadically, and for no discernable reason, the runners stop sending log traffic to our GitLab instance.偶尔,并且没有明显的原因,跑步者停止向我们的 GitLab 实例发送日志流量。 They should be uploading several MB worth of logs.他们应该上传几 MB 的日志。 I don't see failed attempts to upload logs in debug mode.我没有看到在debug模式下上传日志失败的尝试。 I don't see any of the network traffic I expect in WireShark.我在 WireShark 中看不到任何我期望的网络流量。 This might correlate with issues loading a custom driver, but I can't say for sure.这可能与加载自定义驱动程序的问题有关,但我不能肯定地说。

The workaround is even more perplexing.解决方法更令人困惑。 The following protocol fixes the issue: remove all the runners using the GitLab CI interface;以下协议修复了该问题:使用 GitLab CI 接口删除所有运行器; uninstall the malfunctioning runner;卸载有故障的跑步者; download a new runner binary, register and install it.下载一个新的运行器二进制文件,注册并安装它。 If I repeat the same steps, except without downloading a new binary, the issue persists.如果我重复相同的步骤,除了不下载新的二进制文件,问题仍然存在。 The files are identical when I run a binary diff on them.当我对它们运行二进制差异时,这些文件是相同的。

I haven't been able to extract any relevant information from the system event logs or network traffic.我无法从系统事件日志或网络流量中提取任何相关信息。 The issue only affects our runners on 32-bit Windows.该问题仅影响我们在 32 位 Windows 上的跑步者。 It doesn't affect 64-bit Windows or runners on Linux, regardless of architecture.无论架构如何,它都不会影响 64 位 Windows 或 Linux 上的运行器。 It seems to happen sporadically, in the sense that I can't correlate it with anything interesting happening on the affected machines.它似乎偶尔发生,因为我无法将它与受影响机器上发生的任何有趣的事情联系起来。

Clearly, something about our 32-bit Windows environments is different and causing the runners to malfunction.显然,我们的 32 位 Windows 环境有所不同,导致运行器出现故障。 I just don't know what it is.我只是不知道它是什么。 I would appreciate any direction figuring out the source of this problem.我将不胜感激找出这个问题的根源的任何方向。 The fact that downloading new binaries makes the difference has me worried, but I don't have any reason to suspect our machines have been compromised.下载新的二进制文件会带来不同的事实让我很担心,但我没有任何理由怀疑我们的机器已被入侵。

This problem was resolved by running tests remotely over SSH.此问题已通过在 SSH 上远程运行测试得到解决。 It's almost certainly a bug with the 32-bit Windows distribution of gitlab-runner .这几乎可以肯定是gitlab-runner的 32 位 Windows 发行版的一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM