Deployment error and Request Entity Too Large error mesages when trying to deploy a rendered Rmd file on Posir Connect

Hi all,

We just set up our Posit Connect server.

When I tried to test the deployment, I received this error message (it is a small rendered Rmd file with the size of 624 KB). But I received no error when deploying the same file to Posit Cloud.

So I guess the IT person who set up the posit Connect server has made some error during the setting up of the server. Any help to solve this problem is very much appreciated.

Error in POST(service, authInfo, path, contentType = "application/x-gzip",  : 
  
Request Entity Too Large The requested resource does not allow request
data with POST requests, or the amount of data provided in the request exceeds
the capacity limit.

The full log is pasted below:

[2023-11-05 10:13:24] Deployment log started
Deploy command: 
 rsconnect::deployApp(appDir = "~/", appFileManifest = "C:/Users/DRKAMA~1/AppData/Local/Temp/ce9e-872e-8399-2718",      appPrimaryDoc = "test.html", appSourceDoc = "D:/KIM/test.Rmd",      account = "drkim", server = "posit-connect.kk.usm.my", appName = "test",      appTitle = "test", launch.browser = function(url) {         message("Deployment completed: ", url)     }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = TRUE),      logLevel = "verbose") 

Session information: 
R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22631)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.2.3  cli_3.6.1       rsconnect_1.1.1 tools_4.2.3    
[5] rstudioapi_0.14 lifecycle_1.0.3 rlang_1.1.1    
── Preparing for deployment ────────────────────────────────────────────────────
GET /__api__/applications?filter=account_id:3&count=100&start=0&cont= 40ms
✔ Deploying "test" to "server: posit-connect.kk.usm.my / username: drkim"
Cookies: 
[1] path    name    value   secure  expires
<0 rows> (or 0-length row.names)
[2023-11-05 10:13:25] Inferring App mode and parameters
ℹ Creating application on server...
POST /__api__/applications 10ms
✔ Created application with id 13
[2023-11-05 10:13:25] Bundling app dir
ℹ Bundling 1 file: 'test.html'
[2023-11-05 10:13:25] Generate manifest.json
[2023-11-05 10:13:25] Compressing the bundle
✔ Created 224,018b bundle
ℹ Uploading bundle...
POST /__api__/applications/13/upload 20ms
Error in `POST()`:
! <https://posit-connect.kk.usm.my/__api__/applications/13/upload>
  failed with HTTP status 413
<h1>Request Entity Too Large</h1> The requested resource does not allow request
data with POST requests, or the amount of data provided in the request exceeds
the capacity limit. <hr> <address>Apache/2.4.52 (Ubuntu) Server at
posit-connect.kk.usm.my Port 443</address>
Backtrace:
    ▆
 1. └─rsconnect::deployApp(...)
 2.   └─client$uploadApplication(application$id, bundlePath)
 3.     └─rsconnect:::POST(...)
 4.       └─rsconnect:::httpRequestWithBody(...)
 5.         └─rsconnect:::handleResponse(httpResponse, error_call = error_call)
 6.           └─rsconnect (local) reportError(body)
 7.             └─cli::cli_abort(...)
 8.               └─rlang::abort(...)
----- Deployment error -----
Error in POST(service, authInfo, path, contentType = "application/x-gzip",  : 
  
<h1>Request Entity Too Large</h1> The requested resource does not allow request
data with POST requests, or the amount of data provided in the request exceeds
the capacity limit. <hr> <address>Apache/2.4.52 (Ubuntu) Server at
posit-connect.kk.usm.my Port 443</address>
Calls: <Anonymous> ... reportError -> <Anonymous> -> <Anonymous> -> signal_abort
 
----- Error stack trace -----
11: rsconnect::deployApp(appDir = "~/", appFileManifest = "C:/Users/DRKAMA~1/AppData/Local/Temp/ce9e-872e-8399-2718", 
        appPrimaryDoc = "test.html", appSourceDoc = "D:/KIM/test.Rmd", 
        account = "drkim", server = "posit-connect.kk.usm.my", appName = "test", 
     ...
10: client$uploadApplication(application$id, bundlePath)
9: POST(service, authInfo, path, contentType = "application/x-gzip", 
       file = bundlePath)
8: httpRequestWithBody(service = service, authInfo = authInfo, method = "POST", 
       path = path, query = query, contentType = contentType, file = file, 
       content = content, headers = headers)
7: handleResponse(httpResponse, error_call = error_call)
6: reportError(body)
5: cli::cli_abort(c("<{url}> failed with HTTP status {response$status}", 
       msg), class = c(paste0("rsconnect_http_", response$status), 
       "rsconnect_http"), call = error_call)
4: rlang::abort(message, ..., call = call, use_cli_format = TRUE, 
       .frame = .frame)
3: signal_abort(cnd, .file)
2: stop(fallback)
1: (function (e) 
   {
       cat("----- Deployment error -----\n")
    ...
Execution halted