error after replace user

Wilson's Avatar

Wilson

28 Jun, 2019 10:59 AM

We revoke the former user and replace with new one (bitbucket). After replacing, some of the builds (with private npm ssh+git) are failing.
Can you help us solve this issue.

We set up a private git build for now to make it work. (ssh copied and set to the user)

  1. Support Staff 1 Posted by Owen McDonnell on 29 Jun, 2019 12:05 AM

    Owen McDonnell's Avatar

    What is the error that builds are failing with? Can you share a link to those builds.

  2. 2 Posted by Wilson Banta on 29 Jun, 2019 09:21 AM

    Wilson Banta's Avatar

    Hi Owen,

    Here is the link of the build.
    https://ci.appveyor.com/project/StickTickets/web/builds/25609264

    You can check the logs. check line 3503 - 3538

    With Kind Regards,

    Wilson Banta
    Team Lead
    Sticky Tickets Australia Pty Ltd

    119 Willoughby Rd Crows Nest NSW 2065
    <https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g>
    Ph:
    <https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g>+612
    87 660 660 <+61287660660>
    [email blocked]

  3. Support Staff 3 Posted by Owen McDonnell on 29 Jun, 2019 01:09 PM

    Owen McDonnell's Avatar

    Can you go to the project general settings tab and copy the SSH key from there. Then, go to your Bitbucket repo settings and add it under Access Keys.

  4. 4 Posted by Wilson Banta on 29 Jun, 2019 01:48 PM

    Wilson Banta's Avatar

    Hi Owen,

    I already did that.

    With Kind Regards,

    Wilson Banta
    Team Lead
    Sticky Tickets Australia Pty Ltd

    119 Willoughby Rd Crows Nest NSW 2065
    <https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g>
    Ph:
    <https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g>+612
    87 660 660 <+61287660660>
    [email blocked]

  5. 5 Posted by Wilson Banta on 30 Jun, 2019 11:57 PM

    Wilson Banta's Avatar

    Hi Owen,

    To isolate the issue even more, I create a new project (web2). SSH Key
    already added to the account as well, and yet the same error
    https://ci.appveyor.com/project/StickTickets/web-20nss/builds/25649055

    With Kind Regards,

    Wilson Banta
    Team Lead
    Sticky Tickets Australia Pty Ltd

    119 Willoughby Rd Crows Nest NSW 2065
    <https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g>
    Ph:
    <https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g>+612
    87 660 660 <+61287660660>
    [email blocked]

  6. Support Staff 6 Posted by Feodor Fitsner on 03 Jul, 2019 06:02 PM

    Feodor Fitsner's Avatar

    Hi Wilson,

    If your Bitbucket account is currently authorized with OAuth 2.0 (which is probably true if you re-authorized recently) then repository cloning is happening via "https" (look at line 11 in a build log) and OAuth token as credentials. No SSH keys are copied inside build VM in that case. This is now the recommended by Bitbucket approach and to make the message even stronger they removed an API to add SSH key to the repositories.

    However, during npm run you are cloning the repo via SSH which requires a private RSA to be deployed to a build VM.

    To make it work again I'm afraid you should configure the deployment of SSH key by yourself as described here: https://www.appveyor.com/docs/how-to/private-git-sub-modules/#confi...

    Alternatively, you can try doing that clone inside npm (line 3522) via HTTPS with application password as credentials: https://confluence.atlassian.com/bitbucket/app-passwords-828781300....

    Let me know if you have any questions.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac