K
K
Kirill Gorelov2017-12-07 15:41:38
git
Kirill Gorelov, 2017-12-07 15:41:38

Error: RPC failed; result=22, HTTP code = 413 gitlab?

Guys, such a problem.
You need to put Bitrix in Gitlab. Gitlab is located on our server, we buy. You need to upload changes not locally, but directly from the server.
We do as usual:

git init
git remote add origin http://site.ru/../...git
git add .
git commit
git push -u origin master

Everything is initialized, but does not upload to git, gives an error
error: RPC failed; result=22, HTTP code = 413
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

After reading a couple of solutions (which did not help), I do the following, I change https to ssh.
I change the link using this article
https://help.github.com/articles/changing-a-remote-s-url/
git remote set-url origin [email protected]: USERNAME / REPOSITORY .git

Created keys. He left one on his server in the folder /home/tester/.ssh/bitrix
Second, the contents of which he put bitrix.pub in his profile on the gitlab in ssh keys.
I'm starting to do
git pull и делал git pull origin master и еще так git pull -u origin master
. The error is gone, it asks for a password.
I enter the password that I specified when creating the key. Writes access denied. And that's it, I can't go any further. Even did just ssh [email protected]_server still asks for a password and nothing happens.
Found an article
https://sites.google.com/site/sitsiliyaror/blogs/github/sozdanie-ssh-kluca-dla-github
, recommended to register in the config file
Host github.com
Hostname github.com
User тут_юзер_что_на_гитхабе(логин_ваш)
IdentityFile ~/.ssh/my_test_key

Prescribed, in accordance with their values. Although I previously created this file, because there was no such config file in the folder /home/tester/.ssh/and there was no such file at different levels either.
And as a result, nothing happened. Same error.
Guys, what could be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Gorelov, 2017-12-11
@Kirill-Gorelov

Decided it might come in handy for someone in the future.
The problem was that the key had to be specified by the standard id_rsa And everything was fine.
And how to do it if the key differs from the standard name, I have not figured it out yet!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question