Gitlab repository does not exists issue

时光总嘲笑我的痴心妄想 提交于 2019-12-24 03:06:05

问题


Facing issue with gitlab repository not available.

When accessing project form gitlab page it shows below error

No repository
The repository for this project does not exist. 
This means you can not push code until you create an empty repository or import existing one.

When check over project details from root login below is problem

Project info:
Name: app
Namespace: Administrator
Owned by: Administrator
Created by: Administrator
Created on: May 20, 2016 9:08am
http: http://192.168.1.123/root/app.git
ssh: gitlab@192.168.1.123:root/app.git
repository: does not exist
access:  Private

And later checked in gitlab file system under below path

root@root:/var/opt/gitlab/git-data/repositories/root/app.git#

exists and folder size is of 3 mb which should be same.

And when checked for ssh access i am able to clone project but push to project isn't working and showing below error

Pushing to gitlab@192.168.1.123:root/app.git
GitLab: A repository for this project does not exist yet.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

And when checked in the gitlab machine and checked for 'gitlab-rails dbconsole' Able to login and check table for project with above app project it exists fine.

Need help to fix issue of project path isn't pointed properly. Below is sample output of another project for which its showing proper project details.

Name: newname
Namespace: Administrator
Owned by: Administrator
Created by: Administrator
Created on: Sep 14, 2017 12:03pm
http: http://192.168.1.123/root/newname.git
ssh: gitlab@192.168.1.123:root/newname.git
fs: /var/opt/gitlab/git-data/repositories/root/newname.git
Size 0.2 MB
last commit: 5 months ago
access:  Private

来源:https://stackoverflow.com/questions/48518323/gitlab-repository-does-not-exists-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!