面对gitlab存储库不可用的问题。
访问项目表单gitlab页面时,显示错误
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.
从以下root登录检查项目详细信息时出现问题
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
后来在gitlab文件系统中检查了以下路径
root@root:/var/opt/gitlab/git-data/repositories/root/app.git#
存在且文件夹大小为3 mb,应该相同。
当检查ssh访问时,我能够克隆项目,但推送到项目并不工作,并显示以下错误
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.
当在gitlab机器中检查并检查' gitlab-rails dbconsole' 能够使用上面的应用程序项目登录和检查项目表,它存在。
需要帮助来解决项目路径问题并未正确指出。 下面是另一个项目的示例输出,其中显示了正确的项目详细信息。
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