• gitlab报错


    1.登陆gitlab失败,报503

     查看gitlab状态

    [root@localhost ~]# gitlab-ctl status
    run: alertmanager: (pid 21666) 97s; run: log: (pid 1609) 2814s
    down: gitaly: 1s, normally up, want up; run: log: (pid 1589) 2814s
    run: gitlab-exporter: (pid 21815) 73s; run: log: (pid 1613) 2814s
    run: gitlab-workhorse: (pid 21821) 73s; run: log: (pid 1602) 2814s
    run: grafana: (pid 21829) 72s; run: log: (pid 1619) 2814s
    run: logrotate: (pid 21845) 72s; run: log: (pid 1593) 2814s
    run: nginx: (pid 21851) 72s; run: log: (pid 1592) 2814s
    run: node-exporter: (pid 21863) 71s; run: log: (pid 1623) 2814s
    run: postgres-exporter: (pid 21868) 71s; run: log: (pid 1611) 2814s
    run: postgresql: (pid 21874) 70s; run: log: (pid 1601) 2814s
    run: prometheus: (pid 21888) 70s; run: log: (pid 1616) 2814s
    run: redis: (pid 21898) 70s; run: log: (pid 1605) 2814s
    run: redis-exporter: (pid 21909) 69s; run: log: (pid 1621) 2814s
    run: sidekiq: (pid 21915) 69s; run: log: (pid 1603) 2814s
    run: unicorn: (pid 21927) 68s; run: log: (pid 1587) 2814s
    

    发现gitaly启动失败,删除pid文件重启就好了

    [root@localhost ~]# rm /var/opt/gitlab/gitaly/gitaly.pid
    rm:是否删除普通空文件 "/var/opt/gitlab/gitaly/gitaly.pid"?y
    
    [root@localhost ~]# gitlab-ctl restart
    ok: run: alertmanager: (pid 25095) 1s
    ok: run: gitaly: (pid 25106) 1s
    ok: run: gitlab-exporter: (pid 25125) 0s
    ok: run: gitlab-workhorse: (pid 25135) 0s
    ok: run: grafana: (pid 25147) 0s
    ok: run: logrotate: (pid 25159) 0s
    ok: run: nginx: (pid 25165) 1s
    ok: run: node-exporter: (pid 25248) 0s
    ok: run: postgres-exporter: (pid 25253) 1s
    ok: run: postgresql: (pid 25263) 0s
    ok: run: prometheus: (pid 25272) 0s
    ok: run: redis: (pid 25282) 0s
    ok: run: redis-exporter: (pid 25343) 0s
    ok: run: sidekiq: (pid 25350) 0s
    ok: run: unicorn: (pid 25361) 0s
    
    [root@localhost ~]# gitlab-ctl status
    run: alertmanager: (pid 25095) 14s; run: log: (pid 23734) 164s
    run: gitaly: (pid 25106) 13s; run: log: (pid 23726) 164s
    run: gitlab-exporter: (pid 25125) 12s; run: log: (pid 23747) 164s
    run: gitlab-workhorse: (pid 25135) 12s; run: log: (pid 23745) 164s
    run: grafana: (pid 25147) 11s; run: log: (pid 23742) 164s
    run: logrotate: (pid 25159) 11s; run: log: (pid 23731) 164s
    run: nginx: (pid 25165) 11s; run: log: (pid 23727) 164s
    run: node-exporter: (pid 25248) 10s; run: log: (pid 23729) 164s
    run: postgres-exporter: (pid 25253) 10s; run: log: (pid 23732) 164s
    run: postgresql: (pid 25263) 9s; run: log: (pid 23743) 164s
    run: prometheus: (pid 25272) 9s; run: log: (pid 23737) 164s
    run: redis: (pid 25282) 8s; run: log: (pid 23724) 164s
    run: redis-exporter: (pid 25343) 8s; run: log: (pid 23738) 164s
    run: sidekiq: (pid 25350) 7s; run: log: (pid 23730) 164s
    run: unicorn: (pid 25361) 6s; run: log: (pid 23733) 164s
    

      

    初学linux,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    浅看网络结构与TCP/IP协议栈
    moectf-re WP
    开启博客之旅
    初始C++类和对象
    最完整的自动化测试流程:Python编写执行测试用例及定时自动发送最新测试报告邮件
    Eclipse+pydev环境搭建
    单例模式应用 | Shared_ptr引用计数管理器
    随笔——统计单词个数
    随笔——算法笔记(未整理)
    C++ | 智能指针初探
  • 原文地址:https://www.cnblogs.com/forlive/p/12469670.html
Copyright © 2020-2023  润新知