首页 > 其他分享 >GitLab报错502——Whoops, GitLab is taking too much time to respond 502 错误

GitLab报错502——Whoops, GitLab is taking too much time to respond 502 错误

时间:2023-09-20 17:02:23浏览次数:36  
标签:GitLab 服务 配置 重启 gitlab 报错 ctl 502 端口号

一、错误页面

GitLab报错502——Whoops, GitLab is taking too much time to respond 502 错误_重启

错误原因:

原来默认配置的8080端口号被其他应用占用冲突了,只需换成其他新的端口号就可以了

二、修复步骤

1.首先vim  /etc/gitlab/gitlab.rb打开配置文件
2.修改配置

找到如下配置项,原来是用#注释的,把前面的#去掉取消注释,原来的默认端口号应该是8080,改成你自己想要的端口号。

注意新配置的端口号不要被其他进程占用,且要在防火墙设置放开

使用的服务有两种——unicorn和puma,根据自己使用的服务来修改
(1)如果服务用的是unicorn

unicorn['port'] = 8099

(2)如果服务用的是puma

puma['port'] = 8091
3.输入如下命令让配置生效
sudo gitlab-ctl reconfigure
4.最后重启服务
sudo gitlab-ctl restart

注意:如果重启服务没用作用的话,就直接kill掉进程或用gitlab-ctl stop,重新启动gitlab-ctl start。

因为重启服务后刷新可能不能马上成功,差不多要等个一分钟左右再重新刷新页面就成功了,如下图所示,完美

GitLab报错502——Whoops, GitLab is taking too much time to respond 502 错误_git_02

标签:GitLab,服务,配置,重启,gitlab,报错,ctl,502,端口号
From: https://blog.51cto.com/u_14299064/7541046

相关文章

  • yourls安装-报错AbstractExtendedPdo.php
    1`Fatalerror:UncaughtPDOException:SQLSTATE[HY000]:Generalerror:3Errorwritingfile'./example_com/yourls_url.frm'(Errcode:28)in/www/wwwroot/example.com/includes/vendor/aura/sql/src/AbstractExtendedPdo.php:565Stacktrace:#0/www/w......
  • 2023-9-20交易日志报错排查分析
    1、下单失败:名词解释:NOTIONAL名义价值来源:https://binance-docs.github.io/apidocs/spot/cn/#cc81fff589名义价值过滤器(NOTIONAL)定义了订单在一个交易对上可以下单的名义价值区间.applyMinToMarket定义了minNotional是否适用于市价单(MARKET)applyMaxToMarket定义了......
  • 解决pycharm报错:_jb_pytest_runner.py:7:....from pkg_resources import iter_entry_p
    遇到问题执行pytest用例出现警告D:\pycharm\PyCharm2020.1.5\plugins\python\helpers\pycharm_jb_pytest_runner.py:7:DeprecationWarning:pkg_resourcesisdeprecatedasanAPI.Seehttps://setuptools.pypa.io/en/latest/pkg_resources.htmlfrompkg_resourcesimport......
  • QA|Pycharm update时报错ssh: connect to host github.com port 22: Connection timed
    场景:另一台电脑很久没有链接Github了,今天执行update失败,报错如下:2023/9/2015:09UpdatefailedFunny_ScriptsandSpider:Connectionresetby20.205.243.166port22Couldnotreadfromremoterepository.Please......
  • 记录小程序 errno":600001,"errMsg":"request:fail -118 报错问题
    "(inpromise)MiniProgramError\n{"errno":600001,"errMsg":"request:fail-118:net::ERR_CONNECTION_TIMED_OUT","data":{"message":"连接服务器失败!","result":"error"}}\nObject"......
  • Ubuntu22.04运行Splash Docker镜像报错,cloud not load the Qt platform xcb in even t
    一、问题描述Ubuntu22.04运行SplashDocker镜像报错,cloudnotloadtheQtplatformxcbineventhoughitwasfound奇怪的地方在于,停止运行,重新执行同样的语句,即恢复正常。本文只做了问题记录,没有深入研究原因。sudodockerrun-it-p8050:8050scrapinghub/splash二......
  • idea连接phoenix报错
    昨天用idea连接phoenix,在pom.xml中导入依赖的时候一直报Couldnottransferartifactorg.apache.phoenix:phoenix-client-hbase-2.4.0:jar:5.1.1from/tocentral的错误,并且idea解决下载jar包的时候也一直很慢,今天早上找了很多教程终于解决了这个问题,原因是因为我maven中的settin......
  • VSCode 报错,Unable to start debugging.(后面内容看图)
    今天用vscode写c++时,调试的时候,突然蹦出这个错误 之前我也以为是lanch.json的配置出错了但我并未更改我的配置啊,经过漫长的百度的之后,发现了原来是文件名不能设置为“中文”。。。。真的服了,以后再也不偷懒了。。。然后我也意识到备份的重要性,下面给出lanch.jason和tasks.......
  • GitLab 升级迁移待办清单
    GitLab大版本升级测试用例项目从模板项目URL导入,来创建新的项目议题通过QuickActions、关联新建、直接新建模板关联项标签工时评论看板里程碑分支通过+号、新建按钮、本地推送远程新建删除分支合并请求新建合并请求模板主题,评审意......
  • vue:run时报错:EACCES: permission denied([email protected])
    一,报错信息:[eslint]EACCES:permissiondenied,open'/data/vue/responsive/node_modules/.cache/eslint/43541cdc.json’如图:二,解决切换拒绝访问的文件的ownerliuhongdi@lhdpc:/data/vue/responsive$sudochownliuhongdi.liuhongdi-R/data/vue/responsive/node......