amithkk / stable-diffusion-k8s

⚡Instant Stable Diffusion on k8s(Kubernetes) with Helm
MIT License
89 stars 31 forks source link

Init container failes #7

Open ozgia opened 1 year ago

ozgia commented 1 year ago

During the initialization process, im getting the following errors:

model.ckpt           100% |********************************| 4067M  0:00:00 ETA

'/models/model.ckpt' saved
Connecting to github.com (140.82.114.4:443)
wget: note: TLS certificate validation not implemented
Connecting to objects.githubusercontent.com (185.199.109.133:443)
wget: can't open '/models/GFPGANv1.3.pth': File exists
Connecting to github.com (140.82.114.4:443)
wget: note: TLS certificate validation not implemented
Connecting to objects.githubusercontent.com (185.199.109.133:443)
wget: can't open '/models/RealESRGAN_x4plus.pth': File exists
Connecting to github.com (140.82.114.4:443)
wget: note: TLS certificate validation not implemented
Connecting to objects.githubusercontent.com (185.199.109.133:443)
wget: can't open '/models/RealESRGAN_x4plus_anime_6B.pth': File exists

Any idea why ?

TrojanCoder commented 1 year ago

This happened to me when restarting after the pod failed for another reason. I deleted everything in the persistent volume manually then restarted the stateful set and it was able to start the main container.

shiipou commented 4 months ago

I got a similar error :

Connecting to www.googleapis.com (142.250.201.170:443)
wget: note: TLS certificate validation not implemented
wget: server returned error: HTTP/1.1 401 Unauthorized
Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer

But nothing related with storage.

I tried to delete the volume and everything, then restarting the deployment but that didn't help.

celesrenata commented 1 week ago

I got a similar error :

Connecting to www.googleapis.com (142.250.201.170:443)
wget: note: TLS certificate validation not implemented
wget: server returned error: HTTP/1.1 401 Unauthorized
Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
Connecting to github.com (140.82.121.4:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer

But nothing related with storage.

I tried to delete the volume and everything, then restarting the deployment but that didn't help.

I also get the same error.

crb2nu commented 2 days ago

This seems to be related to the authentication, specifically with the googleapi. This can probably be fixed by choosing a different base model and replacing the googleapi link with the link to that model (hopefully no auth required)

Stable Diffusion and optional companion models. Change these out if you'd like

models: sd14: https://www.googleapis.com/storage/v1/b/aai-blog-files/o/sd-v1-4.ckpt?alt=media gfpGan13: https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.3.pth realEsrGanx4p10: https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth realEsrGanx4Animep02: https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.2.4/RealESRGAN_x4plus_anime_6B.pth