-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: The remote server returned an error: (401) Unauthorized #2
Comments
Hi @Bouke, what is the identity on which your build agent is running? |
Don't know if relevant: we're using a self-hosted agent. |
Are you using hosted or private agents? If private, what is the identity
they are running on?
…On Wed, 25 Apr 2018, 20:58 Bouke Haarsma, ***@***.***> wrote:
Sure! We're on VSTS. These are setup like this:
All release definitions:
[image: screen_shot_2018-04-25_at_20_55_00]
<https://user-images.githubusercontent.com/235882/39266697-0676e13a-48cb-11e8-89fd-13a6d89af13f.png>
My Release Definition:
[image: screen_shot_2018-04-25_at_20_54_30]
<https://user-images.githubusercontent.com/235882/39266727-1b0f783c-48cb-11e8-9c7c-0606722921fd.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC4ud2SuePSEvvlmJzf1LfEyAt9r15eyks5tsMdigaJpZM4TgocC>
.
|
Well, you answered yourself here. |
You can also try it via a script
Just set the variables to match your case and fire it. If that account has sufficient permissions, your release should be marked as retained. |
@Bouke any updates? Thanks |
We don't deploy that often. I've updated the PAT -- will know in a week or so if it was successful. Thank you for your time! |
So I've updated the PAT (from the VSTS web interface), but after deploying the same error appears:
Do I need to restart/reconfigure my VSTS agent before the new permissions take effect? |
Hi, sure you do. Reconfigure the agent with the new PAT. |
@Bouke Did reconfigure of the agent did the trick? |
So I configured the agent with the new PAT, and as a test added the task to the Acceptance environment. All seemed well:
However, when deploying to production yesterday it failed:
Comparing these logs, it appears that the versions are different? But how's that possible, given that both deployments were performed by the same VSTS agent? |
As the version 1.1.0 shipped with the first version of the task, it was based on PS3 handler. Later, in the 2.x version, I implemented the logic of the task with the Node handler. |
Can you remove the extension, then verify with tfx-cli that task is not on your system? Can we get on chat somewhere, I would like you to get this solved. |
All of a sudden it switched over to version 2, without me doing anything. I'll keep monitoring, but so far so good. Thanks a lot for your time! |
Hi Mario, thanks for the plugin. It used to work for us and was of great help. However our deployment showed the following error in the release log:
The "Manage releases" is set to "allow" for the build service. I'm not sure what to do about this, have you got any suggestions?
The text was updated successfully, but these errors were encountered: