# Namespace changed and collection upload not working

**URL:** <https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314>\
**Category:** Get Help\
**Tags:** bug, namespace, galaxy-ng\
**Created:** [October 2, 2023, 9:01pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314 "2023-10-02T21:01:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/cloin/32/171_2.png) [@cloin](https://forum.ansible.com/u/cloin)\
**Post date:** [October 2, 2023, 9:01pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/1 "2023-10-02T21:01:47Z")

</div>

As part of a release workflow, the newly built collection is published to galaxy but this step produces an error:

```auto
Run ansible-galaxy collection publish ./$NAMESPACE-$COLLECTION-$NEW_VERSION.tar.gz --api-key=***
  ansible-galaxy collection publish ./$NAMESPACE-$COLLECTION-$NEW_VERSION.tar.gz --api-key=***
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.11.5/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.5/x64/lib
    NEW_VERSION: 2.1.14
    NAMESPACE: cloin
    COLLECTION: eda
ERROR! Error when publishing collection to default (https://galaxy.ansible.com/api/) (HTTP Code: 403, Message: You do not have permission to perform this action. Code: permission_denied)
Publishing collection artifact '/home/runner/work/cloin.eda/cloin.eda/cloin-eda-2.1.14.tar.gz' to default https://galaxy.ansible.com/api/
Error: Process completed with exit code 1.

```

I tried regenerating the token and it failed again.

Upon logging into galaxy and looking at my namespaces, I can see that my namespaces lists “cloin0” instead of “cloin”. “cloin0” is empty. If I navigate to the url for the “cloin” namespace, I see my published collections.

I’m guessing that my publish command fails because I now do not have permissions on the “cloin” namespace, only “cloin0” which I did not create.

---

<div class="post-metadata">

**Author:** ![Leo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/leo/32/23_2.png) [@Leo](https://forum.ansible.com/u/Leo)\
**Post date:** [October 3, 2023, 9:01pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/2 "2023-10-03T21:01:56Z")

</div>

Hi [@galaxy](https://forum.ansible.com/groups/galaxy) team, I seem to recall this required some intervention on your side to fix. Can you take a look?

---

<div class="post-metadata">

**Author:** ![hikari661](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hikari661/32/984_2.png) [@hikari661](https://forum.ansible.com/u/hikari661)\
**Post date:** [October 3, 2023, 10:50pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/3 "2023-10-03T22:50:15Z")

</div>

I’m having exactly the same problem.  
Getting a 403 when publishing a collection, and I seem to have a new namespace with a “0” appended.

---

<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:** [October 4, 2023, 12:39am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/4 "2023-10-04T00:39:05Z")

</div>

@cloin We’ve deployed a patch that resolves the N namespace problem. I’ve also manually cleaned up your extra namespaces and fixed your account permissions. Please check again.

---

<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:** [October 4, 2023, 12:41am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/5 "2023-10-04T00:41:11Z")

</div>

@hikari661 please share your github username, and I will look into the issue.

---

<div class="post-metadata">

**Author:** ![gineesh](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gineesh/32/956_2.png) [@gineesh](https://forum.ansible.com/u/gineesh)\
**Post date:** [October 4, 2023, 1:35am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/6 "2023-10-04T01:35:12Z")

</div>

Hi @tannerjc  
Failing tests; same as @cloin faced  
Could you please do the same for me as well?  
original (to keep and allow permissions): **iamgini**  
new (need to remove): **iamgini0**

---

<div class="post-metadata">

**Author:** ![borari](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/borari/32/989_2.png) [@borari](https://forum.ansible.com/u/borari)\
**Post date:** [October 4, 2023, 1:45am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/7 "2023-10-04T01:45:03Z")

</div>

Hi @tannerjc! I am having the same issue faced by others in this thread.

My original namespace is: **borari**  
My newly auto-generated namespace is **borari0**

My first log in to Galaxy NG post-update was within the past 15 minutes.

---

<div class="post-metadata">

**Author:** ![charlesrocket](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/charlesrocket/32/986_2.png) [@charlesrocket](https://forum.ansible.com/u/charlesrocket)\
**Post date:** [October 4, 2023, 2:08am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/8 "2023-10-04T02:08:31Z")

</div>

Looks like issue is still here. I can’t push anymore, but theres another clone of my account with 0 prefix that probably can (according to this topic). Not sure if I should post this but my left side keeps laughing that I am already locked out 😅

---

<div class="post-metadata">

**Author:** ![hikari661](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hikari661/32/984_2.png) [@hikari661](https://forum.ansible.com/u/hikari661)\
**Post date:** [October 4, 2023, 2:23am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/9 "2023-10-04T02:23:18Z")

</div>

Hi there, hikari661 should work. FWIW, just tested again, the problem still exists for me. Cheers.

---

<div class="post-metadata">

**Author:** ![gineesh](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gineesh/32/956_2.png) [@gineesh](https://forum.ansible.com/u/gineesh)\
**Post date:** [October 4, 2023, 6:22am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/10 "2023-10-04T06:22:19Z")

</div>

Hi @tannerjc

Could you please do the same for me as well?  
original (to keep and allow permissions): **iamgini**  
new (need to remove): **iamgini0**

---

<div class="post-metadata">

**Author:** ![rezizter](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rezizter/32/998_2.png) [@rezizter](https://forum.ansible.com/u/rezizter)\
**Post date:** [October 4, 2023, 11:56am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/11 "2023-10-04T11:56:08Z")

</div>

Hi @tannerjc

I have the same issue. My original namespace is:  
rezizter

The incorrectly created one is rezizter0

---

<div class="post-metadata">

**Author:** ![geoffreyvanwyk](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/geoffreyvanwyk/32/995_2.png) [@geoffreyvanwyk](https://forum.ansible.com/u/geoffreyvanwyk)\
**Post date:** [October 4, 2023, 3:51pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/12 "2023-10-04T15:51:11Z")

</div>

Hi @tannerjc

I have the same issue with the 0 appended to my namespace.

Correct namespace: geoffreyvanwyk  
New wrong namespace: geoffreyvanwyk0  
GitHub username: geoffreyvanwyk

---

<div class="post-metadata">

**Author:** ![saiello](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/saiello/32/1010_2.png) [@saiello](https://forum.ansible.com/u/saiello)\
**Post date:** [October 4, 2023, 9:20pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/13 "2023-10-04T21:20:08Z")

</div>

Hi @tannerjc  
I have the same problem

Github: **saiello**  
Correct namespace: **saiello**  
Wrong namespace **saiello0**

---

<div class="post-metadata">

**Author:** ![borari](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/borari/32/989_2.png) [@borari](https://forum.ansible.com/u/borari)\
**Post date:** [October 5, 2023, 3:02pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/14 "2023-10-05T15:02:27Z")

</div>

Just as a note to anyone following this thread because they also posted in it with the same issue, I just checked my Galaxy NG account and my namespace is back to normal.

---

<div class="post-metadata">

**Author:** ![hikari661](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/hikari661/32/984_2.png) [@hikari661](https://forum.ansible.com/u/hikari661)\
**Post date:** [October 5, 2023, 9:17pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/15 "2023-10-05T21:17:14Z")

</div>

Hi @tannerjc , my account is still broken. Could you have a look?

FYI, I can publish to hikari6610 namespace, but would really like the original namespace back. Thanks.

---

<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:** [October 6, 2023, 1:13am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/16 "2023-10-06T01:13:50Z")

</div>

Hi everyone. I believe I have fixed the issue for everyone who has commented in this thread.

---

<div class="post-metadata">

**Author:** ![gineesh](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gineesh/32/956_2.png) [@gineesh](https://forum.ansible.com/u/gineesh)\
**Post date:** [October 6, 2023, 2:08am UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/17 "2023-10-06T02:08:31Z")

</div>

@tannerjc thank you!

---

<div class="post-metadata">

**Author:** ![lowlydba](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lowlydba/32/1073_2.png) [@lowlydba](https://forum.ansible.com/u/lowlydba)\
**Post date:** [October 7, 2023, 2:54pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/18 "2023-10-07T14:54:54Z")

</div>

Hi @tannerjc, can you also take a look at my namespace - I can no longer publish updates to my collection in the old namespace:

Old namespace: lowlydba  
New namespace: lowlydba0

Thank you!

---

<div class="post-metadata">

**Author:** ![yoctoalex](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/yoctoalex/32/1090_2.png) [@yoctoalex](https://forum.ansible.com/u/yoctoalex)\
**Post date:** [October 9, 2023, 1:04pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/19 "2023-10-09T13:04:55Z")

</div>

Hi @tannerjc I have the same problem. Could you please apply the fix for my namespace as well?

correct namespace: yoctoalex  
wrong namespace: yoctoalex0

Thank you!

---

<div class="post-metadata">

**Author:** ![flowerysong](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/flowerysong/32/2305_2.png) [@flowerysong](https://forum.ansible.com/u/flowerysong)\
**Post date:** [October 10, 2023, 6:35pm UTC](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314/20 "2023-10-10T18:35:54Z")

</div>

I also have this issue. The only namespace that is showing for me is `flowerysong0`, and my real namespace has no owners.

[Next page](https://forum.ansible.com/t/namespace-changed-and-collection-upload-not-working/1314.md?page=2)
