Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Timouts building app platform worker
I was attempting to build my first app platform worker using docker. This is a celery worker. On the final step of the build (which took nearly 20 mins) I get a timeout error from the pushing of the image to the registry. Here are the last bits of the log
18:43:39 INFO Pushing layer <registry-uri> to cache now 18:43:39 INFO ENTRYPOINT [ "celery", "worker", "-A", "celery_server", "--loglevel=info" ] 18:43:39 INFO No files changed in this command, skipping snapshotting. 18:52:02 WARN error uploading layer to cache: failed to push to destination <registry-uri> PATCH https://<registry-uri> unsupported status code 524; body: <html> 18:52:02 <head><title>524 Origin Time-out</title></head> 18:52:02 <body bgcolor="white"> 18:52:02 <center><h1>524 Origin Time-out</h1></center> 18:52:02 <hr><center>cloudflare-nginx</center> 18:52:02 </body> upertech-engine | 18:52:02 </html> 19:00:49 error pushing image: failed to push to destination <image>: PATCH https://<registry-uri> unsupported status code 524; body: <html> 19:00:49 <head><title>524 Origin Time-out</title></head> 19:00:49 <body bgcolor="white"> 19:00:49 <center><h1>524 Origin Time-out</h1></center> 19:00:49 <hr><center>cloudflare-nginx</center> 19:00:49 </body> 19:00:49 </html> 19:00:49 19:00:49 exit status 1
Curious about the registry being used, I assumed it is the DO container registry. So I decided to try building the docker image locally and pushing it to the registry. After a long while, I got the same error code 524.
Is there a limit to how large a layer can be? Has anyone else seen this issue?
For the record the official dockerhub never had an issue when pushing this docker image to it.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×