tag:help.appveyor.com,2012-11-13:/discussions/problems/24179-error-after-replace-userAppVeyor: Discussion 2019-09-02T21:01:16Ztag:help.appveyor.com,2012-11-13:Comment/473930232019-06-29T00:05:51Z2019-06-29T00:05:51Zerror after replace user<div><p>What is the error that builds are failing with? Can you share a link to those builds.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/473930232019-06-29T09:21:14Z2019-06-29T09:21:14Zerror after replace user<div><p>Hi Owen,</p>
<p>Here is the link of the build.<br>
<a href="https://ci.appveyor.com/project/StickTickets/web/builds/25609264">https://ci.appveyor.com/project/StickTickets/web/builds/25609264</a></p>
<p>You can check the logs. check line 3503 - 3538</p>
<p>With Kind Regards,</p>
<p>Wilson Banta<br>
Team Lead<br>
Sticky Tickets Australia Pty Ltd</p>
<p>119 Willoughby Rd Crows Nest NSW 2065<br>
<a href="https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g">https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g</a><br>
Ph:<br>
<a href="https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g">https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g</a>+612<br>
87 660 660 <+61287660660><br>
<a href="mailto:wilson.banta@stickytickets.com.au">wilson.banta@stickytickets.com.au</a></p></div>Wilson Bantatag:help.appveyor.com,2012-11-13:Comment/473930232019-06-29T13:09:49Z2019-06-29T13:09:49Zerror after replace user<div><p>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 <strong>Access Keys</strong>.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/473930232019-06-29T13:48:15Z2019-06-29T13:48:16Zerror after replace user<div><p>Hi Owen,</p>
<p>I already did that.</p>
<p>With Kind Regards,</p>
<p>Wilson Banta<br>
Team Lead<br>
Sticky Tickets Australia Pty Ltd</p>
<p>119 Willoughby Rd Crows Nest NSW 2065<br>
<a href="https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g">https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g</a><br>
Ph:<br>
<a href="https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g">https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g</a>+612<br>
87 660 660 <+61287660660><br>
<a href="mailto:wilson.banta@stickytickets.com.au">wilson.banta@stickytickets.com.au</a></p></div>Wilson Bantatag:help.appveyor.com,2012-11-13:Comment/473930232019-06-30T23:57:12Z2019-06-30T23:57:12Zerror after replace user<div><p>Hi Owen,</p>
<p>To isolate the issue even more, I create a new project (web2). SSH Key<br>
already added to the account as well, and yet the same error<br>
<a href="https://ci.appveyor.com/project/StickTickets/web-20nss/builds/25649055">https://ci.appveyor.com/project/StickTickets/web-20nss/builds/25649055</a></p>
<p>With Kind Regards,</p>
<p>Wilson Banta<br>
Team Lead<br>
Sticky Tickets Australia Pty Ltd</p>
<p>119 Willoughby Rd Crows Nest NSW 2065<br>
<a href="https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g">https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g</a><br>
Ph:<br>
<a href="https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g">https://maps.google.com/?q=119+Willoughby+Rd+Crows+Nest+NSW+2065%C2%A0+Ph:%C2%A0%2B612&entry=gmail&source=g</a>+612<br>
87 660 660 <+61287660660><br>
<a href="mailto:wilson.banta@stickytickets.com.au">wilson.banta@stickytickets.com.au</a></p></div>Wilson Bantatag:help.appveyor.com,2012-11-13:Comment/473930232019-07-03T18:02:17Z2019-07-03T18:02:17Zerror after replace user<div><p>Hi Wilson,</p>
<p>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.</p>
<p>However, during npm run you are cloning the repo via SSH which requires a private RSA to be deployed to a build VM.</p>
<p>To make it work again I'm afraid you should configure the deployment of SSH key by yourself as described here: <a href="https://www.appveyor.com/docs/how-to/private-git-sub-modules/#configure-appveyor-project-to-use-ssh-key">https://www.appveyor.com/docs/how-to/private-git-sub-modules/#confi...</a></p>
<p>Alternatively, you can try doing that clone inside npm (line 3522) via HTTPS with application password as credentials: <a href="https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html">https://confluence.atlassian.com/bitbucket/app-passwords-828781300....</a></p>
<p>Let me know if you have any questions.</p></div>Feodor Fitsner