Code Monkey home page Code Monkey logo

Comments (5)

Gibonnn avatar Gibonnn commented on May 23, 2024

Tested also with GitLab, completely the same error message. From Linux again working fine.

from awx.

quarkino avatar quarkino commented on May 23, 2024

I seem to have the same issue. But every once in a while, a random retry succeeds.

from awx.

dmzoneill avatar dmzoneill commented on May 23, 2024

Hi @Gibonnn

I'm a little confused by your request and what you are trying to achieve.

Firstly, you cannot authenticate against repository with ssh unless you own the repository.
Otherwise, you must use the https protocol.

So unless you are a member of ansible/ansible.git it won't work for you.

Apologies if I have misunderstood your request.

[awx@localhost-live src]$ git clone [email protected]:ansible/ansible.git
Cloning into 'ansible'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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

from awx.

Gibonnn avatar Gibonnn commented on May 23, 2024

Hi Dave,
sorry if my description or image was wrong. Let me start again.
I have a repo on Github that I own -
[email protected]:Gibonnn/ansible.git
I have added my public key to my Github account and my private key to the Credentials in AWX.
When I try to sync the procect, I get following output:

Identity added: /tmp/awx_99_cxecevxe/artifacts/99/ssh_key_data (admin@awx) PLAY [Update source tree if necessary] ***************************************** TASK [Delete project directory before update] ********************************** ok: [localhost] TASK [Update project using git] ************************************************ fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/git ls-remote [email protected]:Gibonnn/ansible.git -h refs/heads/HEAD", "msg": "[email protected]: Permission denied (publickey,password).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.", "rc": 128, "stderr": "[email protected]: Permission denied (publickey,password).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", "stderr_lines": ["[email protected]: Permission denied (publickey,password).", "fatal: Could not read from remote repository.", "", "Please make sure you have the correct access rights", "and the repository exists."], "stdout": "", "stdout_lines": []} PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Note tha line 1 which says identity added. But also note the error message - Permission denied (publickey,password). It says publickey,password. It seems to me like AWX is not trying to push the private key to Github.

When I do the same from the Linux, works fine. I have no clue what might be wrong.
Thanks

from awx.

dmzoneill avatar dmzoneill commented on May 23, 2024

@Gibonnn Thanks for the follow-up.
Since you have 2 issues open around connectivity issues in relation to this "setup" and it "works as expected in Linux", it seems to me we're dealing with an environmental issue on this setup you are referencing.

GitHub has a help topic around this, which seems mundane, but only through a process of elimination are we going to be able to resolve this.
https://docs.github.com/en/authentication/troubleshooting-ssh/error-permission-denied-publickey

Using these instructions, can you follow the steps to debug on the host, and if using containers or other virtualized method, in that environment also.

from awx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.