侧边栏壁纸
博主头像
Sir丶雨轩博主等级

一个90的萌新码农,热爱编程热爱生活 编程交流群:875477818

  • 累计撰写 48 篇文章
  • 累计创建 81 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

解决Gitlab无法启动runsv no running

Sir丶雨轩
2022-04-13 / 0 评论 / 1 点赞 / 79 阅读 / 1,997 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2022-04-13,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

可以先尝试用

systemctl start gitlab-runsvdir.service

如果冻结不动的话,就需要查看系统服务项了

systemctl -t target

如果系统正常的话,所有任务应该是loaded active active,如果存在inactive dead选型,意味着有些服务出错了。

UNIT                   LOAD   ACTIVE SUB    DESCRIPTION
basic.target           loaded active active Basic System
cloud-config.target    loaded active active Cloud-config availability
cloud-init.target      loaded active active Cloud-init target
cryptsetup.target      loaded active active Encrypted Volumes
getty.target           loaded active active Login Prompts
graphical.target       loaded active active Graphical Interface
local-fs-pre.target    loaded active active Local File Systems (Pre)
local-fs.target        loaded active active Local File Systems
multi-user.target      loaded active active Multi-User System
network-online.target  loaded active active Network is Online
network-pre.target     loaded active active Network (Pre)
network.target         loaded active active Network
nss-user-lookup.target loaded active active User and Group Name Lookups
paths.target           loaded active active Paths
remote-fs-pre.target   loaded active active Remote File Systems (Pre)
remote-fs.target       loaded active active Remote File Systems
slices.target          loaded active active Slices
sockets.target         loaded active active Sockets
swap.target            loaded active active Swap
sysinit.target         loaded active active System Initialization
time-sync.target       loaded active active System Time Synchronized
timers.target          loaded active active Timers
 
LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
 
 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

这时候使用

systemctl list-jobs

如果存在某个任务是running,则是该任务堵塞了其他所有服务。

 graphical.target                     start waiting
 plymouth-quit-wait.service           start running
   multi-user.target                    start waiting
 ureadahead-stop.timer                start waiting
 gitlab-runsvdir.service              start waiting
 system-getty.slice                   start waiting
  setvtrgb.service                     start waiting
 systemd-update-utmp-runlevel.service start waiting

此时就可以利用 systemctl stop plymouth-quit-wait.service结束该任务。

然后重启gitlab即可。
https://docs.gitlab.com/omnibus/troubleshooting.html#gitlab-runsvdir-not-starting

1

评论区