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

今天,员工反应公司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

在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
git clone 报错:Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 这个错误通常是由于以下几个原因引起的: 1. SSH key 配置错误:请确保你已经正确地将 SSH key 添加到你的 GitHub 或其他 Git 仓库账户中。你可以按照官方文档的指引来添加 SSH key。 2. 仓库不存在:请确保你要克隆的仓库确实存在,并且你有访问权限。你可以在仓库的页面上确认仓库是否存在,并检查你是否有访问权限。 3. 访问权限不正确:请确保你有足够的权限来克隆该仓库。有些仓库可能需要特定的权限才能进行克隆操作。 4. 网络连接问题:请确保你的网络连接正常,能够正常访问远程仓库。你可以尝试使用其他网络或者检查你的网络设置。 如果你已经确认了以上几个原因,并且仍然无法解决问题,你可以尝试以下方法: 1. 检查 SSH key 配置:请确保你的 SSH key 配置正确,并且已经添加到你的 Git 仓库账户中。 2. 检查仓库权限:请确认你有足够的权限来克隆该仓库。你可以联系仓库的管理员来获取更多信息。 3. 检查网络连接:请确保你的网络连接正常,并且能够正常访问远程仓库。你可以尝试使用其他网络或者检查你的网络设置。 4. 尝试使用 HTTPS 克隆:如果你无法解决 SSH key 配置问题,你可以尝试使用 HTTPS 协议来克隆仓库。使用 HTTPS 克隆可能需要输入用户名和密码。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿蔡BLOG

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值