GitLab5.2 project creation failure

Source: Internet
Author: User

Create a project on GitLab5.2 today, create a project directory on the development machine by referring to the website wizard, and finally run

Git push-u origin master

Error:

Git push-u origin master
Fatal: '/home/git/repositories/cloudengine/wtunnel. git' does not appear to be a git repository
Fatal: cocould not read from remote repository.

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

Check whether the permission is correct. Finally, the solution is found. The content of the/home/git/. ssh/authorized_keys file on the GitLab server is inconsistent with the key saved on the GitLab website.

The solution is to log on to the gitlab server as the root user, go to the/home/git/gitlab directory, and run the following command:

Rake gitlab: shell: setup RAILS_ENV = production

It will prompt you to delete the original authorized_keys file and generate it again.

Then modify the. ssh user and the group owner:

Chown-R git/home/git/. ssh

Chgrp-R git/home/git/. ssh

Then restart gitlab. Try again later.

Working properly.

GitLab details: click here
GitLab: click here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.