Fail to deploy a large tensorflow model using RStudio Connect

this model just copy from Rstudio tensorflow blog.

deployTFModel("savedmodel")

Preparing to deploy tensorflow-saved-model...DONE
Uploading bundle for tensorflow-saved-model: 11...Error: HTTP 413
POST https://mycompany.com/rsconnect/__api__/applications/11/upload
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.4.6 (Ubuntu)</center>
</body>
</html>

I moved this to the ML category, though I accept it might belong in R-Admins too.

Have you seen this discussion?

2 Likes

Thanks a lot, it seems that my nginx block the upload process.

I just add this on the nginx sever block, it will fix.

client_max_body_size 2M;