Error: Could not read from remote repository #3188
Replies: 3 comments 2 replies
-
Hi! If you want I can rake a look at your problem. Right now I’m on vacation till next week. We can arrange a call next week, can I can help you with your problem. Price is $100/hour. |
Beta Was this translation helpful? Give feedback.
-
Hmmm I'm facing the same issue right now. Not sure what happen to this deployer. |
Beta Was this translation helpful? Give feedback.
-
If anybody comes across this now, we ran into the same issue. The cause was a deploy key in one GitHub Repo with the name "runner". This lead to above error, too and is quite obscure |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
unfortunately I have a problem with deployer that is driving me crazy! In some of my projects I get the following error message:
[Deployer\Exception\RuntimeException (128)]
The command "cd /home/www/p123456/html/myproject/beta && (/usr/local/bin/git clone -b "develop" --recursive [email protected]:Starraider/myProject.git /home/www/p123456/html/myproject/beta/releases/4 2>&1)" failed.
Cloning into '/home/www/p123456/html/myproject/beta/releases/4'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
This means that Git cannot clone the repository down to the server because it has no rights to do so. Of course the respective repository exists, but it is "private" (because it is a customer project) and therefore needs a deployment key. Of course, I had previously created a corresponding SSH key on the server with
ssh-keygen -t rsa -b 4096
and entered the public key at GitHub as a deployment key. A test connection withssh -i ~/.ssh/id_rsa -T [email protected]
works fine and also "by hand" the repository can be cloned to the server without any problems.With deployer, however, it doesn't work, although the script doesn't do anything different than I did by hand either!
And the crazy thing is that with the same script and the same settings etc. it works for some projects on the same server, but for some of them it doesn't work. But then every time I log into the server with SSH and try to clone the repository "by hand" it works fine. But again with the script it still doesn't work.
I just don't understand how it can be that the command
/usr/local/bin/git clone -b "develop" --recursive [email protected]:Starraider/myProject.git
works by hand, but at the same time doesn't work via deployment script. This is beyond my comprehension!In the meantime, I have spent several days troubleshooting and tried countless configurations, program versions, etc., but to no success. Even the support of my provider couldn't help me, because it would be too much work for them to rebuild the whole system with private GitHub repository and deployment script etc. to find the problem.
So my hope is that one of you might have an idea what the problem could be!!!
I would be very grateful for any tips!
I use deployer v6.8.0, git v2.36.0, PHP v7.4.30 and sourcebroker/deployer-extended-typo3 v18.1.0 to deploy TYPO3 v11 and my deploy.php looks like this:
The ssh config file on my server looks like this:
CU... Sven
Beta Was this translation helpful? Give feedback.
All reactions