# Galaxy: cannot synchronize to local hub:

**URL:** <https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [November 13, 2023, 1:32pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327 "2023-11-13T13:32:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianmasopust](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@christianmasopust](https://forum.ansible.com/u/christianmasopust)\
**Post date:** [November 13, 2023, 1:32pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327/1 "2023-11-13T13:32:23Z")

</div>

We are running a local hub (AAP) and trying to synchronize some collections from [galaxy.ansible.com](http://galaxy.ansible.com). After the new galaxy has been launched, we changed the configuration of the remote repository (access token is working, has been verified with ansible-galaxy command).

When trying to synchronize the repository, the task in the AAP hub terminates with:

```auto
AnsibleNamespaceMetadata() got an unexpected keyword argument 'users'

```

Traceback shown:

```auto
  File "/usr/lib/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py", line 458, in _perform_task
    result = func(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 191, in sync
    repo_version = d_version.create()
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/declarative_version.py", line 161, in create
    loop.run_until_complete(pipeline)
  File "/usr/lib64/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 220, in create_pipeline
    await asyncio.gather(*futures)
  File "/usr/lib/python3.9/site-packages/pulpcore/plugin/stages/api.py", line 41, in __call__
    await self.run()
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 1079, in run
    await asyncio.gather(*tasks)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 873, in _fetch_collection_metadata
    await self._fetch_paginated_collection_metadata(
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 816, in _fetch_paginated_collection_metadata
    await asyncio.gather(*tasks)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 605, in _fetch_collection_version_metadata
    await self._add_collection_version(api_version, collection_version_url, metadata)
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 695, in _add_collection_version
    if await self._add_namespace(namespace, namespace_sha):
  File "/usr/lib/python3.9/site-packages/pulp_ansible/app/tasks/collections.py", line 748, in _add_namespace
    namespace = AnsibleNamespaceMetadata(**namespace)
  File "/usr/lib/python3.9/site-packages/django_lifecycle/mixins.py", line 61, in __init__
    super(). __init__ (*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/django/db/models/base.py", line 503, in __init__
    raise TypeError("%s() got an unexpected keyword argument '%s'" % (cls. __name__ , kwarg))

```

Not sure if this is an issue with [galaxy.ansible.com](http://galaxy.ansible.com) but pretty sure that also AAP people are reading here… 🙂

Thanks!  
Christian

---

<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:** [November 13, 2023, 2:33pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327/2 "2023-11-13T14:33:08Z")

</div>

This is a known issue in pulp\_ansible that we fixed in september. [https://github.com/pulp/pulp\_ansible/pull/1594](https://github.com/pulp/pulp_ansible/pull/1594)

Please update your pulp\_ansible package and the error will go away.

---

<div class="post-metadata">

**Author:** ![christianmasopust](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@christianmasopust](https://forum.ansible.com/u/christianmasopust)\
**Post date:** [November 13, 2023, 3:13pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327/3 "2023-11-13T15:13:02Z")

</div>

dammit… where did you find this? I’ve searched the Red Hat KB, the forum here and even globally on google 🙂

anyway… the latest updates for the AAP hub contains the fix.

Thanks a lot!

---

<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:** [November 13, 2023, 4:07pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327/4 "2023-11-13T16:07:48Z")

</div>

I wrote the patches, so it’s all indexed in my brain 🙃

---

<div class="post-metadata">

**Author:** ![gwmngilfen](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gwmngilfen/32/6_2.png) [@gwmngilfen](https://forum.ansible.com/u/gwmngilfen)\
**Post date:** [November 13, 2023, 6:28pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327/5 "2023-11-13T18:28:47Z")

</div>

At least the next person searching here will find it, the search indexing in Discourse is pretty good 😃. Thanks for reporting it!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 13, 2023, 6:28pm UTC](https://forum.ansible.com/t/galaxy-cannot-synchronize-to-local-hub/2327/6 "2023-12-13T18:28:48Z")

</div>

Closed on December 13, 2023, 6:28pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
