'GITLAB - Fatal: Could not read from remote repository

First of all, thank you so much for your attention on this important issue that I'm dealing right now... See the image below then keep reading the text:

So, I believe the issue itself is not even with the front/back end codes(as you can see in the image) but just to you know this project is using VueJS/JavaScript, Sass, and Laravel/PHP, and I use sourcetree for the git part but this project also uses Docker, and I don't know and I never used Docker in my life...

In this project, any changes that is made mainly in the front end code, I need to compile(npm run production), and after it is already in Gitlab, I also need to reset and start again the supervisord on the server for the back end code(Laravel).

Here in the company, I'm using sourcetree where I can click on stage all button, commit button and push button to GitLab. Doing this, I can see a small icon aside of the project name showing that it is commiting and after one or three minutes I see another icon: a green one or a red one with an error icon saying that the deploy failed...

If you see the image that I sent, It is saying about the repository, but I am in the right repository(I almost don't work in this project and the last time it worked fine).

Do you guys have any idea how to fix it? I will save my job here.

Thank you.



Solution 1:[1]

Based on the error message: Permission denied (publickey,...), the public/private ssh keys being used to authenticate are not correct. Can you ssh into the devhost? I find the ssh -T user@hostname command helpful for troubleshooting in these cases.

Also, check out this guide on troubleshooting ssh issues.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Richard