使用nginx反向代理registry.local

time="2020-08-03T10:18:07.515072035Z" level=error msg="Upload failed: error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: \"<html>\\r\\n<head><title>413 Request Entity Too Large</title></head>\\r\\n<body bgcolor=\\\"white\\\">\\r\\n<center><h1>413 Request Entity Too Large</h1></center>\\r\\n<hr><center>nginx/1.14.0</center>\\r\\n</body>\\r\\n</html>\\r\\n\""
time="2020-08-03T10:18:07.515236844Z" level=info msg="Attempting next endpoint for push after error: error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: \"<html>\\r\\n<head><title>413 Request Entity Too Large</title></head>\\r\\n<body bgcolor=\\\"white\\\">\\r\\n<center><h1>413 Request Entity Too Large</h1></center>\\r\\n<hr><center>nginx/1.14.0</center>\\r\\n</body>\\r\\n</html>\\r\\n\""
[exec stage result: imageName:registry.local/cloudtogo.cn/factory/c20021703494171500000539981482/java1596449266604.git:e73453df404bc8e3874ffe73dd66c03c8410a1c2, headCommitId:e73453df404bc8e3874ffe73dd66c03c8410a1c2]
[Report failed build of f32aceacb96d743f59647021d5412f8bf]
[[stop_callback]===Build failed due to error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx/1.14.0</center>\r\n</body>\r\n</html>\r\n"

解决

修改nginx配置文件:nginx.conf

client_max_body_size默认为0, 修改0为特定的大小即可。如 client_max_body_size 102400M

 

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐