当前位置: 首页 > article >正文

gitlab runner正常连接 提示 作业挂起中,等待进入队列 解决办法

方案1

作业挂起中,等待进入队列
在这里插入图片描述
重启gitlab-runner

gitlab-runner  stop
gitlab-runner  start
gitlab-runner  run

方案2

启动 gitlab-runner 服务

gitlab-runner start

成功启动如下

[root@docserver home]# gitlab-runner start
Runtime platform                                    arch=amd64 os=linux pid=16174 revision=3153ccc6 version=17.7.0

如提示 the service is not installed 则执行一下安装命令

gitlab-runner install --working-directory /home/gitlab-runner --user root

查看服务运行状态systemctl status gitlab-runner
该命令和 gitlab-runner status 的区别是,可以更直观的看到运行状态,这个很重要因为systemctl命令能看到报错,建议就用systemctl查看启动状态
成功运行如下
在这里插入图片描述


[root@docserver gitlab-runner]# systemctl status gitlab-runner
● gitlab-runner.service - GitLab Runner
   Loaded: loaded (/etc/systemd/system/gitlab-runner.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2025-01-15 16:08:22 CST; 14s ago
 Main PID: 22601 (gitlab-runner)
    Tasks: 8
   Memory: 31.7M
   CGroup: /system.slice/gitlab-runner.service
           └─22601 /usr/bin/gitlab-runner run --config /etc/gitlab-runner/config.toml --working-directory /home/gitlab-...

Jan 15 16:08:22 xx systemd[1]: Started GitLab Runner.
Jan 15 16:08:22 xx gitlab-runner[22601]: Runtime platform                                    arch=am....7.0
Jan 15 16:08:22 xx gitlab-runner[22601]: Starting multi-runner from /etc/gitlab-runner/config.toml.....ds=0
Jan 15 16:08:22 xx gitlab-runner[22601]: Running in system-mode.
Jan 15 16:08:22 xx gitlab-runner[22601]:
Jan 15 16:08:22 xx gitlab-runner[22601]: Configuration loaded                                builds=...ds=1
Jan 15 16:08:22 xx gitlab-runner[22601]: listen_address not defined, metrics & debug endpoints disab...ds=1
Jan 15 16:08:22 xx gitlab-runner[22601]: [session_server].listen_address not defined, session endpoi...ds=1
Jan 15 16:08:22 xx gitlab-runner[22601]: Initializing executor providers                     builds=...ds=1
Hint: Some lines were ellipsized, use -l to show in full.

如显示下图中的错误,请检查指定的 working-directory 目录是否存在,不存在则手动创建一个
![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/4f9e55bed7034968a6e127687d97b132.png

[root@docserver home]# systemctl status gitlab-runner
● gitlab-runner.service - GitLab Runner
   Loaded: loaded (/etc/systemd/system/gitlab-runner.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2025-01-15 15:26:25 CST; 1min 18s ago
  Process: 15877 ExecStart=/usr/bin/gitlab-runner run --config /etc/gitlab-runner/config.toml --working-directory /h      ome/gitlab-runner --service gitlab-runner --user gitlab-runner (code=exited, status=1/FAILURE)
 Main PID: 15877 (code=exited, status=1/FAILURE)

Jan 15 15:26:25 xx systemd[1]: gitlab-runner.service: main process exited, code=exited, status...LURE
Jan 15 15:26:25 xx  gitlab-runner[15877]: Starting multi-runner from /etc/gitlab-runner/config.t...s=0
Jan 15 15:26:25xx  gitlab-runner[15877]: Running in system-mode.
Jan 15 15:26:25 xx  gitlab-runner[15877]:
Jan 15 15:26:25 xx  gitlab-runner[15877]: FATAL: Service run failed                           er...ory
Jan 15 15:26:25 xx  systemd[1]: Unit gitlab-runner.service entered failed state.
Jan 15 15:26:25 xx  systemd[1]: gitlab-runner.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

http://www.kler.cn/a/505034.html

相关文章:

  • Pytorch基础教程:从零实现手写数字分类
  • sql_实用查询语句模版
  • Spring Boot 2 学习指南与资料分享
  • Android 调用系统服务接口获取屏幕投影(需要android.uid.system)
  • <代码随想录> 算法训练营-2025.01.09
  • 【Uniapp-Vue3】showLoading加载和showModal模态框示例
  • 基于当前最前沿的前端(Vue3 + Vite + Antdv)和后台(Spring boot)实现的低代码开发平台
  • 代码随想录算法训练营day02| 977.有序数组的平方、209.长度最小的子数组、59.螺旋矩阵II
  • 裸金属服务器和虚拟机之间的区别
  • CentOS 9 Stream 中查看 Python 版本并升级 Python
  • react中hooks之useRef 用法总结
  • Hadoop3.3.4伪分布式环境搭建
  • 《Vue3实战教程》34:Vue3状态管理
  • 大数据学习(33)-spark-transformation算子
  • Android BitmapShader更简易的实现刮刮乐功能,Kotlin
  • 计算机二级-Java系列(Java的特点)
  • nodejs后端ws与http结合共享一个服务器,前端websocket发送信息后端ws接收信息,使用Map定型数组设置ID
  • rust调用DLL或lib
  • Redis 缓存穿透、击穿、雪崩 的区别与解决方案
  • 微软组建新内部 AI 研发组织:开启智能创新新篇章
  • GPT-SoVITS学习01
  • UDP、TCP特性
  • CasaOS小主机如何部署1Panel面板并实现远程管理服务器超实用教程
  • ubuntu 配置OpenOCD与RT-RT-thread环境的记录
  • 海康大数据面试题及参考答案
  • 【后端面试总结】Golang可能的内存泄漏场景及应对策略