8-11|Running with gitlab-runner 16.2.1 (674e0e29) on csjs2-sg-cdn-web Ku48KQnJ, system ID: s_daf35

简介: 8-11|Running with gitlab-runner 16.2.1 (674e0e29) on csjs2-sg-cdn-web Ku48KQnJ, system ID: s_daf35

这个错误信息表示 GitLab Runner 在尝试执行 CI/CD 作业时遇到了问题。具体来说,这是你在作业的环境变量或 GitLab Runner 的配置中设置了 `GIT_CLONE_PATH`,但没有启用 `custom_build_dir` 特性。

解释:

- **`GIT_CLONE_PATH`**: 这是一个环境变量,用于指定 GitLab Runner 克隆代码的目录。

 

- **`custom_build_dir`**: 这是一个 GitLab Runner 的特性,当启用时,它允许你自定义构建目录。

错误建议你启用 `custom_build_dir` 特性,以便使用 `GIT_CLONE_PATH`。

为了解决这个问题,你可以采取以下步骤:

1. **启用 `custom_build_dir`**:

 在 GitLab Runner 的配置文件(通常是 `/etc/gitlab-runner/config.toml`)中,找到你的 Runner 配置(在 `[[runners]]` 下面)并添加以下内容:

 ```toml

 [runners.custom_build_dir]

 enabled = true

 ```

 然后保存文件并重新启动 GitLab Runner。

2. **检查 `.gitlab-ci.yml`**:

 确保在你的 `.gitlab-ci.yml` 文件或 GitLab Runner 的配置中正确设置了 `GIT_CLONE_PATH`。它应该指向一个合适的目录,该目录由 Runner 用户拥有,并且可以写入。

3. **重新启动 Runner**:

 在更改配置文件后,确保重新启动 GitLab Runner:

 ```bash

 sudo gitlab-runner restart

 ```

完成上述步骤后,再次尝试运行你的 CI/CD 作业,错误应该已经解决。


相关实践学习
Serverless极速搭建Hexo博客
本场景介绍如何使用阿里云函数计算服务命令行工具快速搭建一个Hexo博客。
相关文章
|
1月前
【Azure 应用服务】Web App Service 中的 应用程序配置(Application Setting) 怎么获取key vault中的值
【Azure 应用服务】Web App Service 中的 应用程序配置(Application Setting) 怎么获取key vault中的值
Web server failed to start. Port XXX was already in use.【完美解决方案】
Web server failed to start. Port XXX was already in use.【完美解决方案】
Web server failed to start. Port XXX was already in use.【完美解决方案】
|
1月前
|
开发框架 .NET Docker
【Azure 应用服务】App Service .NET Core项目在Program.cs中自定义添加的logger.LogInformation,部署到App Service上后日志不显示Log Stream中的问题
【Azure 应用服务】App Service .NET Core项目在Program.cs中自定义添加的logger.LogInformation,部署到App Service上后日志不显示Log Stream中的问题
|
1月前
|
开发框架 .NET 中间件
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
【Azure 云服务】在Cloud Service的代码中如何修改IIS Application Pool的配置呢? 比如IdleTimeout, startMode, Recycling.PeriodicRestart.Time等
|
1月前
|
安全 前端开发 网络安全
【Azure App Service】访问App Service应用报错 SSL: WRONG_VERSION_NUMBER
【Azure App Service】访问App Service应用报错 SSL: WRONG_VERSION_NUMBER
|
1月前
【Azure 应用服务】App Service 配置 Application Settings 访问Storage Account得到 could not be resolved: '*.file.core.windows.net'的报错。没有解析成对应中国区 Storage Account地址 *.file.core.chinacloudapi.cn
【Azure 应用服务】App Service 配置 Application Settings 访问Storage Account得到 could not be resolved: '*.file.core.windows.net'的报错。没有解析成对应中国区 Storage Account地址 *.file.core.chinacloudapi.cn
|
1月前
【Azure 应用服务】通过 Web.config 开启 dotnet 应用的 stdoutLog 日志,查看App Service 产生500错误的原因
【Azure 应用服务】通过 Web.config 开启 dotnet 应用的 stdoutLog 日志,查看App Service 产生500错误的原因
|
1月前
|
Java Spring
【Azure 应用服务】记一次Azure Spring Cloud 的部署错误 (az spring-cloud app deploy -g dev -s testdemo -n demo -p ./hellospring-0.0.1-SNAPSHOT.jar --->>> Failed to wait for deployment instances to be ready)
【Azure 应用服务】记一次Azure Spring Cloud 的部署错误 (az spring-cloud app deploy -g dev -s testdemo -n demo -p ./hellospring-0.0.1-SNAPSHOT.jar --->>> Failed to wait for deployment instances to be ready)
|
2月前
|
安全 前端开发 网络安全
【Azure App Service】访问App Service应用报错 SSL: WRONG_VERSION_NUMBER(上海蓝云阻断页)
在Azure App Service上部署的应用遇到`SSL: WRONG_VERSION_NUMBER`错误。问题可能由不兼容的TLS版本引起,但即使将最小入站TLS版本改为1.2,问题仍存在。实际原因是上海蓝云的阻断页面,表明网站未完成ICP备案或有安全规定限制。解决方案包括:1) 对App Service绑定自定义域名并进行ICP备案,或2) 使用Application Gateway处理公网请求。在复杂环境中,需仔细排查和适配规则。
121 11
There is no configured/running web-servers found Please, run any web-configuration and hit the
There is no configured/running web-servers found Please, run any web-configuration and hit the
114 0