# Collection seems to be published (HTTP Code: 400, Message: Artifact already exists Code: invalid), but not accessible in the UI or via 'collection install'

**URL:** <https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [November 9, 2023, 7:13am UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252 "2023-11-09T07:13:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![drew1kun](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/drew1kun/32/1472_2.png) [@drew1kun](https://forum.ansible.com/u/drew1kun)\
**Post date:** [November 9, 2023, 7:13am UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/1 "2023-11-09T07:13:59Z")

</div>

Migrated this issue from github galaxy repo (with the template) as suggested:  
OP: [Collection seems to be published (HTTP Code: 400, Message: Artifact already exists Code: invalid), but not accessible in the UI or via 'collection install' · Issue #3282 · ansible/galaxy · GitHub](https://github.com/ansible/galaxy/issues/3282)

##### SUMMARY

I have published the initial version 1.0.0 of my SSH collection and my account does not show the collection under my namespace

##### STEPS TO REPRODUCE

Trying to publish the same version again:

`❯ ansible-galaxy collection publish drew1kun-ssh-1.0.0.tar.gz Publishing collection artifact '/Users/drew/Library/CloudStorage/Dropbox/Code/github/ansible/ansible-collections/ansible-collection-ssh/drew1kun-ssh-1.0.0.tar.gz' to release_galaxy https://galaxy.ansible.com/api/ ERROR! Error when publishing collection to release_galaxy (https://galaxy.ansible.com/api/) (HTTP Code: 400, Message: Artifact already exists Code: invalid)`

Trying to install the collection:

`❯ ansible-galaxy collection install drew1kun.ssh Starting galaxy collection install process Process install dependency map ERROR! Failed to resolve the requested dependencies map. Could not satisfy the following requirements: * drew1kun.ssh:* (direct request)`

##### EXPECTED RESULTS

The collection is visible in the UI under my namespace (so I could delete it and reupload):

> **[Ansible Galaxy](https://galaxy.ansible.com/ui/namespaces/drew1kun/)**

##### ACTUAL RESULTS

Other collections, that were published before Galaxy NG release are visible, but not the one I pushed tonight.

404 is returned despite the API returning (HTTP Code: 400, Message: Artifact already exists Code: invalid) when trying to publish the same version that has been pushed previously.

---

<div class="post-metadata">

**Author:** ![indigo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/indigo/32/1743_2.png) [@indigo](https://forum.ansible.com/u/indigo)\
**Post date:** [December 15, 2023, 12:22pm UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/2 "2023-12-15T12:22:40Z")

</div>

I’m in the same situation. I have created a collection, but unfortunately specified a license file and set the license directives which are mutually exclusive. The `ansible-galaxy` publish command failed. I have fixed the error and I get now the same error message without a) seeing the artifacts in the Ansible Galaxy and b) having a way to delete that artifact.

Any hints on how to get me unblocked would be highly appreciated.

---

<div class="post-metadata">

**Author:** ![drew1kun](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/drew1kun/32/1472_2.png) [@drew1kun](https://forum.ansible.com/u/drew1kun)\
**Post date:** [December 16, 2023, 1:46am UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/3 "2023-12-16T01:46:04Z")

</div>

That sucks, I have created the issue on github, but they redirected me here, and I have opened this thread… No help so far((

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [December 16, 2023, 8:23pm UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/4 "2023-12-16T20:23:05Z")

</div>

I remember also having seen that in the past; back then I _think_ related to some collection upload problems with Zuul (maybe the upload was incomplete and the resulting tarfile received by Galaxy didn’t contain some files?).

I think @tannerjc mentioned somewhere that he’s trying to fix it, but I don’t remember where and when and what was the latest status on it.

I found two issues on AAH’s Jira which might be related:

- [Loading...](https://issues.redhat.com/browse/AAH-2629)
- [Loading...](https://issues.redhat.com/browse/AAH-2699)

---

<div class="post-metadata">

**Author:** ![mfuhrmann](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mfuhrmann/32/1822_2.png) [@mfuhrmann](https://forum.ansible.com/u/mfuhrmann)\
**Post date:** [December 18, 2023, 12:22pm UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/5 "2023-12-18T12:22:53Z")

</div>

Looks like the community can’t add plugins anymore. Shouldn’t this get a high priority, no?

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [December 19, 2023, 4:32am UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/6 "2023-12-19T04:32:35Z")

</div>

Hi folks,

As you may have noticed in the issues, we have some challenges at times with failed uploads leaving the system in a “half” state where the artifact is known to pulp, but didn’t actually make it into the “published” repository where it would be available to download. Unfortunately we also have challenges with cleanup of unused|orphaned artifacts and we’ve been working with the pulp team to try to rememedy that.

The current workaround for this situation is the increment the version of the collections and try to upload again.

@mfuhrmann I’m not sure why you’d say that “plugins” can’t be added anymore. I see multiple successful collection uploads today. The issues being described here are not happening in every case.

---

<div class="post-metadata">

**Author:** ![drew1kun](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/drew1kun/32/1472_2.png) [@drew1kun](https://forum.ansible.com/u/drew1kun)\
**Post date:** [January 5, 2024, 2:49am UTC](https://forum.ansible.com/t/collection-seems-to-be-published-http-code-400-message-artifact-already-exists-code-invalid-but-not-accessible-in-the-ui-or-via-collection-install/2252/8 "2024-01-05T02:49:30Z")

</div>

Actually, the workaround finally worked for me! Patience rules))  
Thanks!
