Difference between revisions of "Troubleshooting Gitlab"

From ETSI Forge
Jump to: navigation, search
Line 1: Line 1:
 
=== Clone on Windows: Could not resolve hostname ===
 
=== Clone on Windows: Could not resolve hostname ===
 
__FORCETOC__
 
__FORCETOC__
 +
 
If you clone a project using SSH, Windows may answer:
 
If you clone a project using SSH, Windows may answer:
  
Line 20: Line 21:
 
For example, if you developed a new feature you would like to contribute in a new branch called "new-feature", you will want to issue the command:
 
For example, if you developed a new feature you would like to contribute in a new branch called "new-feature", you will want to issue the command:
 
  git push origin new-feature:new-feature
 
  git push origin new-feature:new-feature
 +
 +
== Authorization issues (e.g. 403) ==
 +
Check the following:
 +
 +
=== Log into Gitlab with your EOL ===
 +
Are you able to sign in at https://forge.etsi.org/gitlab/users/sign_in with your EOL account?
 +
 +
=== Check group membership and permissions ===
 +
Once logged in, visit <nowiki>https://forge.etsi.org/gitlab/mec</nowiki>    . In case you have “Request group access” below the group name please click    on it.
 +
 +
=== Check your SSH setup ===
 +
Once set up your SSH    keys, to verify they are working you need to issue:
 +
ssh [[Mailto:git@forge.etsi.org|git@forge.etsi.org]]
 +
And verify that you see the following:
 +
''PTY allocation request failed on channel 0''
 +
 +
''Welcome to GitLab, <YOUR_EOL_USER>!''
 +
 +
''Connection to forge.etsi.org closed.''
 +
'' ''
 +
# Change the URL for the ''origin'' remote to:  [[Mailto:git@forge.etsi.org:mec/gs011-app-enablement-api.git|git@forge.etsi.org:mec/gs011-app-enablement-api.git]]
 +
$ git remote set-url origin [[Mailto:git@forge.etsi.org:mec/gs011-app-enablement-api.git|git@forge.etsi.org:mec/gs011-app-enablement-api.git]]

Revision as of 13:16, 24 July 2019

Clone on Windows: Could not resolve hostname

If you clone a project using SSH, Windows may answer:

 ssh: Could not resolve hostname forge:etsi.org:_username_: Name or service
 not known.

How to fix:

  1. Check that there are not mispellings in the URL
  2. Try adding a / after the colon, i.e: ...forge:etsi.org:/_username_...
  3. Try using HTTPS instead of SSH

"Authentication Failed" when pushing on master

If you receive a "Authentication error" while pushing your changes to the master branch, you most probably have a role "Developer" in the project, which does not allow you to push onto the master branch.

You will want to push to another branch (an existing one or a newly created), by issuing the following git command (or similar operation using a visual tool):

git push origin <local-branch>:<remote-branch>

For example, if you developed a new feature you would like to contribute in a new branch called "new-feature", you will want to issue the command:

git push origin new-feature:new-feature

Authorization issues (e.g. 403)

Check the following:

Log into Gitlab with your EOL

Are you able to sign in at https://forge.etsi.org/gitlab/users/sign_in with your EOL account?

Check group membership and permissions

Once logged in, visit https://forge.etsi.org/gitlab/mec . In case you have “Request group access” below the group name please click on it.

Check your SSH setup

Once set up your SSH keys, to verify they are working you need to issue:

ssh [[1]]

And verify that you see the following:

PTY allocation request failed on channel 0
Welcome to GitLab, <YOUR_EOL_USER>!
Connection to forge.etsi.org closed.

 

  1. Change the URL for the origin remote to:  [[2]]

$ git remote set-url origin [[3]]