cancel
Showing results for 
Search instead for 
Did you mean: 
HowardM
Cadet
Cadet
  • 1,792 Views

500 Internal Server Error when pushing image to Openshift Internal Registry

Jump to solution

Hello,

I enabled the image registry for my single node Openshift cluster and configured it to use NFS storage, but when I try to push an image to it I get  500 Internal Server error as seen below:

sh-4.4# podman push image-registry.openshift-image-registry.svc:5000/openshift/nginx
Getting image source signatures
Copying blob c1b1bf2f95dc [--------------------------------------] 8.0b / 3.5KiB
Copying blob 4d99aab1eed4 [--------------------------------------] 8.0b / 107.8MiB
Copying blob ab75a0b61bd1 [--------------------------------------] 8.0b / 4.5KiB
Copying blob b7df9f234b50 [--------------------------------------] 8.0b / 2.5KiB
Copying blob 93b4c8c4ac05 [--------------------------------------] 8.0b / 5.0KiB
Copying blob a483da8ab3e9 [--------------------------------------] 8.0b / 74.2MiB
Copying blob fd31601f0be4 [--------------------------------------] 8.0b / 7.0KiB
Error: writing blob: initiating layer upload to /v2/openshift/nginx/blobs/uploads/ in image-registry.openshift-image-registry.svc:5000: received unexpected HTTP status: 500 Internal Server Error

Can anyone point me to the reason for this?

Labels (1)
1 Solution

Accepted Solutions
shashi01
Moderator
Moderator
  • 166 Views

@jotec 

Estás viendo un error interno del servidor 500 porque el registro de imágenes de OpenShift no está configurado correctamente para usar tu bucket de IBM S3. Básicamente, el registro intenta guardar imágenes en el bucket, pero algo no funciona correctamente; podría ser el nombre del bucket, la región, el punto final o las credenciales.

View solution in original post

6 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,710 Views

@HowardM Do you see anything in the registry logs : oc logs <registry_pod>  ?

Quite possible that the NFS share has messed up permissions.

check the ownership and permission of the file system if permission issue is found in above logs and set it accrodingly with the correct uid & gid. 

0 Kudos
jotec
Cadet
Cadet
  • 249 Views

mi nfs tiene permisos read write many y aun asi tengo problemas para hacer el pull de imagenes de ibm cloud storage

TudorRaduta
Community Manager
Community Manager
  • 226 Views

@jotec ¿podrías compartir una explicación detallada (está bien si es en español) para que podamos entender el contexto - si se trata de un entorno de curso, de producción u otra situación? Cuantos más detalles puedas proporcionar, mejor podrá ayudarte la comunidad.

0 Kudos
jotec
Cadet
Cadet
  • 170 Views

Muchas gracias por responder. Es un entorno testing con OKD 4.17. estoy intentando levantar el ibmc-storage.driver para conectar mi cluster a un bucket S3 de IBM

shashi01
Moderator
Moderator
  • 167 Views

@jotec 

Estás viendo un error interno del servidor 500 porque el registro de imágenes de OpenShift no está configurado correctamente para usar tu bucket de IBM S3. Básicamente, el registro intenta guardar imágenes en el bucket, pero algo no funciona correctamente; podría ser el nombre del bucket, la región, el punto final o las credenciales.

jotec
Cadet
Cadet
  • 152 Views

Muchas gracias. Subi la imagen a traves de un image stream, pero por bastante tiempo no me tomaba esa imagen . solo queriaconectarse a docker para bajarla. no se como pero en algun moento el pod quedo running

Join the discussion
You must log in to join this conversation.