无法创建运行服务的用户帐户

无法创建运行服务的用户帐户

我正在运行 Server 2012 R2(服务器核心),在设置 Gitlab CI Multi Runner 以作为专门为此服务创建的用户服务运行时遇到了问题。

以下是相关问题:https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1265

我创建了这样的用户帐户:

net user gitlab-runner "P@55w0rd" /add /fullname:"GitLab CI Runner User" /homedir:"C:\Users\gitlab-runner"

当我尝试安装运行器时,收到帐户无效的错误:

.\gitlab-ci-multi-runner-windows-amd64 install -u "gitlab-runner" -p "P@55w0rd"
FATAL: Failed to install gitlab-runner: The account name is invalid or does not exist, or the password is invalid for the account name specified.

此错误来自 Windows,当我尝试手动执行此操作时也遇到了同样的问题:

.\gitlab-ci-multi-runner-windows-amd64 install
PS C:\Users\gitlab-runner> sc.exe config gitlab-runner obj= "gitlab-runner" password= "P@55w0rd"
[SC] ChangeServiceConfig FAILED 1057:

The account name is invalid or does not exist, or the password is invalid for the account name specified.

我是否需要创建一个“服务帐户”?

相关内容