今天,员工反应公司gitllab无法登录。登录时报错如下:

登录服务器,使用gitlab-ctl status查看gitlab状态信息
发现postgresql数据库down了

caixin@asu1:/opt$ sudo gitlab-ctl status
sudo: unable to resolve host asu1: Connection timed out
run: gitlab-workhorse: (pid 1134) 223s; run: log: (pid 1130) 223s
run: logrotate: (pid 1138) 223s; run: log: (pid 1135) 223s
run: nginx: (pid 1128) 223s; run: log: (pid 1127) 223s
down: postgresql: 1s, normally up, want up; run: log: (pid 1131) 223s
run: redis: (pid 1132) 223s; run: log: (pid 1129) 223s
run: sidekiq: (pid 2296) 25s; run: log: (pid 1137) 223s
run: unicorn: (pid 1133) 223s; run: log: (pid 1126) 223s


通过gitlab-ctl tail postgresql进步查看细节

caixin@asu1:/opt$ sudo gitlab-ctl  tail postgresql
sudo: unable to resolve host asu1: Connection timed out
==> /var/log/gitlab/postgresql/current <==
2022-12-26_02:10:11.15066 FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
2022-12-26_02:10:11.15067 HINT:  If you're sure there are no old server processes still running, remove the shared memory block or just delete the file "postmaster.pid".
2022-12-26_02:10:12.15484 FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
2022-12-26_02:10:12.15485 HINT:  If you're sure there are no old server processes still running, remove the shared memory block or just delete the file "postmaster.pid".
2022-12-26_02:10:13.15900 FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
2022-12-26_02:10:13.15901 HINT:  If you're sure there are no old server processes still running, remove the shared memory block or just delete the file "postmaster.pid".
2022-12-26_02:10:14.16265 FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
2022-12-26_02:10:14.16266 HINT:  If you're sure there are no old server processes still running, remove the shared memory block or just delete the file "postmaster.pid".
2022-12-26_02:10:15.16658 FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
2022-12-26_02:10:15.16659 HINT:  If you're sure there are no old server processes still running, remove the shared memory block or just delete the file "postmaster.pid".


处理方法:
删除psostmaster.pid
sudo gitlab-ctl stop
sudo rm -rf /var/opt/gitlab/postgresql/data/postmaster.pid
sudo gitlab-ctl start

问题解决,状态正常

caixin@asu1:/var/opt/gitlab/postgresql$ sudo gitlab-ctl  start
sudo: unable to resolve host asu1: Connection timed out
ok: run: gitlab-workhorse: (pid 5760) 0s
ok: run: logrotate: (pid 5767) 0s
ok: run: nginx: (pid 5773) 1s
ok: run: postgresql: (pid 5781) 0s
ok: run: redis: (pid 5789) 1s
ok: run: sidekiq: (pid 5793) 0s
ok: run: unicorn: (pid 5796) 0s

在这里插入图片描述

GIt登录不了,报错:Whoops, something went wrong on our end.相关推荐

  1. git pull 的时候报错:error: insufficient permission for adding an object to repository database .git/objec

    ** 登录服务器,执行git pull的时候报错:** remote: Counting objects: 88, done. remote: Compressing objects: 100% (8 ...

  2. git push github SSL报错处理

    本文仅供学习交流使用,如侵立删!demo下载见文末 git push github SSL报错 问题:OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connect ...

  3. git push origin master报错

    git push origin master报错error: src refspec xxx does not match any / error: failed to push some refs ...

  4. Git上传代码报错Push rejected: Push to origin/master was rejected

    Git上传代码报错Push rejected: Push to origin/master was rejected 是因为你当前的项目中有和和历史不符的东西, 所以才被拒绝了 解决方案 git pu ...

  5. 使用Git克隆vue-element-admin项目报错的解决方案

    使用Git克隆vue-element-admin项目报错的解决方案 使用Git克隆vue-element-admin项目报错 使用Git克隆vue-element-admin项目报错 当我们使用git ...

  6. 【QQ邮箱第三方客户端设置】Outlook登录QQ邮箱报错,解决方案。

    @[TOC]Outlook登录QQ邮箱报错,解决方案. 问题描述: Outlook添加或者登录QQ邮箱时,出现如如正确的邮箱密码,仍报错的情况,反复确认密码输入无误. 原因: 因为QQ邮箱本身推出了& ...

  7. idea登录gitee插件报错Unauthorized -null

    idea登录gitee插件报错Unauthorized -null 首次配置gitee,点击Create API Token, 出现登录页面,登录名为手机号时报错Unauthorized -null, ...

  8. git push origin master报错的解决方法 常见git命令(待更新)

    git push origin master报错的解决方法 & 常见git命令(待更新) 参考Git常用命令 文章目录 git push origin master报错的解决方法 & ...

  9. android微信登录错误码10005,微信登录失败10005报错解决方案

    原标题:微信登录失败10005报错解决方案 文章来源:棋牌视角http://www.qp49.com/ 从3月19日开始出现部分用户微信登陆失败,不管你是什么类型的App,只要涉及微信登录都有可能会出 ...

  10. 问题解决:网上导入git项目,各种报错

    问题解决:网上导入git项目,各种报错 参考文章: (1)问题解决:网上导入git项目,各种报错 (2)https://www.cnblogs.com/zhizhiyin/articles/90896 ...

最新文章

  1. CentOS 7-(64位)系统下安装Anaconda(Python3.x)及pip使用
  2. websocket中发生数据丢失_为什么事实上却发生了数据丢失,只有少部 分数据可以加载进来...
  3. abstract class和interface有什么区别?
  4. [Oracle]如何在亿级记录表中创建索引
  5. Hihocoder #1631 : Cats and Fish 模拟
  6. Python 捕获异常
  7. linux qt应用程序全屏,QT中MDI应用程序中更改子窗口大小或是全屏显示子窗口的方法...
  8. 华为nova5iotg功能使用_原来华为EMUI10输入法这么强大!使用这个功能,一分钟能打300字...
  9. 个人DP训练(基础版)
  10. oracle如何修改字段为空的为0,Oracle中字段为空处理成0
  11. 关于Docker镜像再封装的详细文档
  12. android 调用百度地图客户端,
  13. 计算机职称英浯单词背记 app,8款经典背单词软件 帮你轻松过英语6级
  14. 登陆器生成登陆器不显示服务器列表,GeeM2单机登录器读取不到列表怎么办?
  15. 首创Domino前后端彻底分离,结合vue、react优美例子
  16. 年三十 放鞭炮 驱年兽 迎新春 财运到 兔年大吉
  17. 汉明码纠错java_汉明码(Hamming)编码与纠错原理
  18. React Native之样式
  19. 眼动在旅游研究中有哪些运用?
  20. linux安装ssl证书

热门文章

  1. windows启动管理器_【指南】Windows操作技巧集合(欢迎在评论区补充)
  2. 怎么在word里标上标和下标?
  3. colorkey唇釉是否安全_所谓的colorkey真假对比
  4. 《流浪地球》硬核科技:为什么电影情节根本不可能实现?
  5. Python—期末考试模拟训练题
  6. 厦门大学计算机系教秘,周六上午计算机系举行青年教师教学工作量讨论会
  7. java实现PDF 转WORD
  8. 面对山寨走私潮,政府宜疏不易堵
  9. 2022互联网暑期实习笔面结果记录
  10. 【开源共享】全网最简单易用的imx6ull烧写工具设计初衷工作原理设计前的思考