loaded via a namespace (and not attached):
[1] compiler_4.4.0 cli_3.6.2 rsconnect_1.3.3 tools_4.4.0
[5] rstudioapi_0.16.0 lifecycle_1.0.4 rlang_1.1.4
── Preparing for deployment ────────────────────────────────────────────────────
Cookies:
[1] "None"
[2024-11-27 07:05:05.829949] Inferring App mode and parameters
✔ Re-deploying "rshinyapp2" using "server: xxx.xx.xx.xxx:3939 / username: user1"
ℹ Looking up application with id "1"...
GET /__api__/applications/1 158ms
✔ Found application <http://xxx.xx.xx.xxx:3939/content/xzkadknfaa-ad2bbfbrf877a/>
[2024-11-27 07:05:06.078971] Bundling app dir
[2024-11-27 07:05:06.079517] Generate manifest.json
ℹ Bundling 1 file: 'app.R'
ℹ Capturing R dependencies
[2024-11-27 07:05:06.746241] Compressing the bundle
✔ Found 30 dependencies
✔ Created 18,609b bundle
ℹ Uploading bundle...
POST /__api__/applications/1/upload 262ms
Error in `POST()`:
! <http://xxx.xx.xx.xxx:3939/__api__/applications/1/upload> failed with
HTTP status 500
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(response$content)
7. └─cli::cli_abort(...)
8. └─rlang::abort(...)
----- Deployment error -----
Error in POST(service, authInfo, path, contentType = "application/x-gzip", :
Calls: <Anonymous> ... reportError -> <Anonymous> -> <Anonymous> -> signal_abort
----- Error stack trace -----
11: rsconnect::deployApp(appDir = "~/Testing Shiny/RshinyApp", appFileManifest = "/tmp/2270-cee2-777f-b8f5",
account = "user1", server = "xxx.xx.xx.xxx:3939", appName = "rshinyapp2",
appId = 1, launch.browser = function(url) {
...
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(response$content)
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")
...
Warning messages:
1: invalid uid value replaced by that for user 'nobody'
2: invalid gid value replaced by that for user 'nobody'
Execution halted
Unfortunately, I don't think there's enough information here to diagnose what's going wrong. It looks like you're trying to deploy a shiny app, but it would be helpful to know what package versions you're working with (sessionInfo()
), as well as the versions of Workbench and Connect.
If you'd like to open a support ticket, check out the troubleshooting steps for off-host execution here: Filing a Support Request – Posit Connect Documentation Version 2024.11.0
1 Like