question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tfx extension publish - fails to detect existing extension

See original GitHub issue

After having sidestepped this issue for two days or so and publishing through the web gui I decided to have another go at publishing an extension from the command line. But the best I can get is:

tfx extension publish --token xxx --rev-version
TFS Cross Platform Command Line Interface v0.3.37
Copyright Microsoft Corporation
Checking if this extension is already published
It isn't, create a new extension.
Failed Request: Conflict(409) - The extension already exists.

I am pretty sure that the extension cannot both be published and not. I am also using --rev-version option and it is creating new .vsix files that I can publish from gui.

I am using visual studio online and it does not seem to help to:

  • use v0.3.37 instead of v0.3.30 from npm
  • create a new extension
  • fiddle around with the authentication token
  • try to provide a service-url

Would be grateful for any suggestion how to get past or diagnose this.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
willsmythecommented, Nov 14, 2016

99% of the time, this message means the identity associated with the PAT does not have access to the extension that has already been published to the Marketplace(which is why the message says “It isn’t [published yet”]). This can happen if you sign in and publish the extension under one VSTS identity, but then create and try to use a PAT associated to a different VSTS identity

I think we should improve the message here to call this out better since this isn’t obvious today.

1reaction
xximjasonxxcommented, Oct 31, 2019

I figured this out. My Microsoft Identity was a complete mess and I had to delete a bunch of extraneous directories and “move” my Azure DevOps org to my default tenant

Read more comments on GitHub >

github_iconTop Results From Across the Web

Publish from the command line - Azure DevOps
Open a command prompt to the root directory of your extension. Run the following command to publish your extension.
Read more >
tfx command line publish issue for Azure DevOps Server 2020 ...
I've got the following error message during either the "publish extension" or the "install extension" tasks. error: The given key was not present...
Read more >
tfx extension create failed while running npm script
I had the same issue. I guess the postbuild command is wrong: "postbuild": "npm run package-extension -- --rev-version". This works:
Read more >
Azure DevOps Extension Tasks 1.1.75
Pass in the desired Extension version, check the Override tasks version ... to publish the extension, which will fail your build/release.
Read more >
Creating an Azure Pipelines extension - Christian Bär
The existing task instances also don't get removed from build ... Run tfx extension publish --help in the command line to find out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found