断电后gitlab报500错误启动出错

异常断电后,gitlab报500错误,重启无效

通过sudo gitlab-ctl reconfigure启动时, 提示 [execute] pgsql:could not connect to server:

 1 Recipe: gitlab::postgresql
 2   * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
 3   * execute[create gitlab database user] action run
 4     [execute] psql: could not connect to server: Connection refused
 5                   Is the server running locally and accepting
 6                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
 7     [execute] psql: could not connect to server: Connection refused
 8                   Is the server running locally and accepting
 9                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
10     [execute] psql: could not connect to server: Connection refused
11                   Is the server running locally and accepting
12                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
13     [execute] psql: could not connect to server: Connection refused
14                   Is the server running locally and accepting
15                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
16     [execute] psql: could not connect to server: Connection refused
17                   Is the server running locally and accepting
18                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
19     [execute] psql: could not connect to server: Connection refused
20                   Is the server running locally and accepting
21                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
22     [execute] psql: could not connect to server: Connection refused
23                   Is the server running locally and accepting
24                   connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
25     [execute] psql: could not connect to server: Connection refused

通过sudo gitlab-ctl start启动时, 提示 timeout:down:postgresql:ls, normally up, want up

查看/var/log/gitlab/postgres/current日志发现,

2017-06-05_07:49:01.37753 FATAL:  pre-existing shared memory block (key 5432001, ID 0) is still in use
2017-06-05_07:49:01.37754 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".
按照提示,删除"postmaster.pid"
[email protected]70:/var/opt/gitlab/postgresql/data#  rm postmaster.pid

重新执行sudo gitlab-ctl reconfigure gitlab可以正常启动了

时间: 2024-10-12 14:34:17

断电后gitlab报500错误启动出错的相关文章

项目部署到tomcat6.0启动成功后访问页面报500错误解决方法

如题:项目部署到tomcat6.0启动成功后访问页面报500错误解决方法,很奇葩,启动的时候没有任何问题,但输入访问地址后报500,去年国庆放假前夕,为这个问题伤神了半天最后解决了,今天又碰到了,乍一看摸不着头,后面仔细回想了下,迅速解决了问题. 原因:项目里面的jar和tomcat里面lib里面的jar重复了. 解决方法: 1.要么更换tomcat7或之后的版本,之后的版本就不会出现这个问题. 2.去部署之后的tomcat的webapps\项目名\WEB-INF\lib 里面删掉jsp-api

使用<context:component-scan base-package="" ></context:component-scan>报500错误

今天练习SSH小程序,在springmvc.xml中使用<context:component-scan base-package="" ></context:component-scan> 组件扫描controller的时候,一直报500错误,在网上查了很久没有解决.错误如下 于是便将其注释掉,使用<bean class=""></bean>使用bean来一个个添加..500错误没有了,但是来了个空指针异常.我打印输出

centos 安装phpmyadmin报500错误

在安装phpmyadmin后,打开www.phpmyadmin.com 报500错误 1:检查apache日志 [[email protected] ~]# tail /etc/httpd/logs/error_log[Wed Jan 07 17:47:12 2015] [error] [client 192.168.3.2] PHP Fatal error:  Call to undefined function mb_detect_encoding() in /var/www/phpmyad

signalr使用websocket报500错误

signalr使用websocket报500错误,WebSocket connection to 'ws://localhost:22862/signalr/connect?transport=webSockets&clientProtocol=1.5&connectionToken=Ab7SuqLggw%2BJL5kWeWcdv%2FI%2FdnRcikASgBnVNnsJu1qtIGq5tV7iXvQkDim%2FYFCJ9RNJvWTe9Zgjte2siJz2KXHX3n8ERyw4

关于Apache php 报500错误

我按照网上的方法在Ubuntu上面安装了个Apache服务器,可以访问html等静态文件,一切正常. 但是在安装php后按照网页上的方式进行测试,php文件的访问,出现了问题,在windows主机上的浏览器上访问说是访问出错,没有报其他任何信息,让我摸不到头脑. 于是再Ubuntu用wget工具进行访问,然后找到了问题,出现了500错误,在网上百度了下,是服务器内部错误. 然后按照提示,找到日志文件,查看,发现没有找到该test.php文件,我最开始在服务器默认根目录上找问题,但是html文件都

Shiro中的Rememberme后出现浏览器500错误

问题详述:在Shiro中添加Remember me功能后,只要勾选Remember me选项为true的时候,浏览器就会跳转到一个不可达页面,并且在Chrome中显示HTTP 500错误. 问题追踪: 1. 设置Shiro的日志权限级别为DEBUG log4j设置 # Default Shiro logging log4j.logger.org.apache.shiro=DEBUG 2.点击登录按钮,查看日志输入: DEBUG - Authentication successful for to

Laravel在Linux环境安装报500错误

服务器Centos7,环境用的是LNMP一键安装 项目从Git上面拉下来后 对这三个函数解禁 proc_open.proc_get_status.passthru 配置Nginx,vhost增加项目的nginx.conf配置,还需检查端口防火墙有没有开启. 执行 composer install 再copy复制一份.env出来,在里面配置一些基本的参数. php artisan key:generate 生成APP_KEY,它是用于实现框架中的encrypt(加密)服务,例如存储用户的sessi

奇怪的svn问题 内网开发环境经常报500错误,要重新建svn库才好

问个奇怪的问题,我内网开发环境,用svn版本控制,同步到lamp的测试环境,项目经常会空白,显示500错误,重新建库有好了

关于tomcat启动服务单独启动时ngrok报500错误的解决办法

去年开通了微信公众号,每次都是启动eclipse,然后用eclipse里的tomcat来启动服务,然后启动ngrok,这样微信服务就算启动成功了,如下图: ,公众号可以正常返回数据,ngrok也返回的200状态码.但是每次单独用tomcatbin目录下的startup.bat批处理命令启动后,然后再访问,ngrok就会提示500服务器内部错误,但是没有更具体的提示信息. 解决办法:把发送微信请求的地址考出来,再浏览器里执行,浏览器会给出更具体的提示,比如我的微信公号访问的地址是: http://