# 500 Internal Server Error on UK RSP

**URL:** <https://www.rubin.community/t/500-internal-server-error-on-uk-rsp/10652>\
**Category:** Rubin Science Platform\
**Created:** [July 23, 2025, 12:46pm UTC](https://www.rubin.community/t/500-internal-server-error-on-uk-rsp/10652 "2025-07-23T12:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davemckay](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/davemckay/32/3104_2.png) [@davemckay](https://www.rubin.community/u/davemckay)\
**Post date:** [July 23, 2025, 12:46pm UTC](https://www.rubin.community/t/500-internal-server-error-on-uk-rsp/10652/1 "2025-07-23T12:46:15Z")

</div>

We are getting intermittent internal server errors on the UK RSP that seem to be linked to the choice of Nublado image.  
This may be a red herring, but there appears to be an issue with Docker credentials (traceback below from the nublado-controller logs). Is it possible some images have different permissions than others? Or, is it possible the credentials aren’t loading sometimes?

```auto
Traceback (most recent call last):
  File "/opt/venv/lib/python3.13/site-packages/controller/storage/docker.py", line 147, in list_tags
    headers = await self._authenticate(config.registry, r)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/controller/storage/docker.py", line 243, in _authenticate
    raise DockerRegistryError(msg)
controller.exceptions.DockerRegistryError: Authentication credentials for registry.hub.docker.com rejected

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.13/site-packages/controller/background.py", line 170, in _loop
    await call()
  File "/opt/venv/lib/python3.13/site-packages/controller/services/image.py", line 319, in refresh
    to_prepull = await self._source.update_images(self._config, cached)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/controller/services/source/docker.py", line 292, in update_images
    tags = await self._docker.list_tags(self._config)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/venv/lib/python3.13/site-packages/controller/storage/docker.py", line 156, in list_tags
    raise DockerRegistryError(msg, method="GET", url=url) from e
controller.exceptions.DockerRegistryError: Cannot parse response from Docker registry: DockerRegistryError: Authentication credentials for registry.hub.docker.com rejected

```

Thanks,  
Dave (UK IDAC Team)

---

<div class="post-metadata">

**Author:** ![danfuchs](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/danfuchs/32/2857_2.png) [@danfuchs](https://www.rubin.community/u/danfuchs)\
**Post date:** [July 23, 2025, 9:55pm UTC](https://www.rubin.community/t/500-internal-server-error-on-uk-rsp/10652/2 "2025-07-23T21:55:21Z")

</div>

> Is it possible some images have different permissions than others?

Nope, all images/tags should have the same permission.

> Or, is it possible the credentials aren’t loading sometimes

This seems unlikely to me.

Do you have a pull secret configured as described [here](https://phalanx.lsst.io/developers/helm-chart/pull-secrets.html)? Nublado uses that pull secret to authenticate to the DockerHub API. If these errors intermittent, maybe they are a due to DockerHub API rate limits.

---

<div class="post-metadata">

**Author:** ![MelissaGraham](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/melissagraham/32/2549_2.png) [@MelissaGraham](https://www.rubin.community/u/MelissaGraham)\
**Post date:** [August 12, 2025, 10:28pm UTC](https://www.rubin.community/t/500-internal-server-error-on-uk-rsp/10652/3 "2025-08-12T22:28:49Z")

</div>

@davemckay, did @danfuchs’s response lead to a solution (in which case could you mark that reply as the solution for this topic), or does this error persist (in which case we should continue to follow-up)?
