问题原因是在升级gitlab版本时 ,一个删除掉的库又出来了,只能从数据库进行删除
su - gitlab-psql //登陆用户
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production //连接到gitlabhq_production库
\h //查看帮助命令
\l //查看数据库
\dt //查看多表
\di //查看索引
\d projects //查看单表
SELECT spcname FROM pg_tablespace; //查看所有表空间
select * from projects where name='xxx'; //查询某个project
set statement_timeout to 0;//删除前设置超时时间
delete from projects where name='GX-AgentService'; //删除某个project
\q //退出psql
exit //退出登录用户