Thanks. I have just updated curl
from 3.3 to 4.3.
I have also turned on the diagnostic information.
This is the output when I try to publish it:
----- Deployment log started at 2020-01-31 09:00:21 -----
Deploy command:
rsconnect::deployApp(appDir = "C:/Users/WilliamLa/Desktop/MV2040 outcomes framework", appFileManifest = "C:/Users/WILLIA~1/AppData/Local/Temp/4ac4-ea4a-e0bf-8182", account = "williaml", server = "shinyapps.io", appName = "mv2040_outcomes_framework", appId = 1535708, launch.browser = function(url) { message("Deployment completed: ", url) }, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE), logLevel = "verbose")
Session information:
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.1 rsconnect_0.8.16
Cookies:
[1] "None"
GET /v1/applications/1535708 2590ms
----- Bundle upload started at 2020-01-31 09:00:23 -----
[2020-01-31 09:00:23] Inferring App mode and parameters
[2020-01-31 09:00:23] Bundling app dir
[2020-01-31 09:00:23] Generate manifest.json
[2020-01-31 09:01:37] Writing Rmd index if necessary
[2020-01-31 09:01:37] Compressing the bundle
POST /v1/bundles 2429ms
[2020-01-31 09:01:39] Starting upload now
PUT /bundles/application-1535708/cb0326e1333d47f890cecc461e864494.tar.gz?AWSAccessKeyId=ASIA54P7SCTKVW7XO2XW&x-amz-acl=bucket-owner-full-control&Expires=1580425299&content-md5=VXvqAwGXiPEAj9%2FtAp8bxQ%3D%3D&x-amz-security-token=IQoJb3JpZ2luX2VjEFwaCXVzLWVhc3QtMSJIMEYCIQCWjG%2BTB1JcJBnCGo8p%2F1hUGx5qoLTrA68CSjsp%2FoeVdAIhANs8Slmc%2Faw4rlloOYf6Fg1QEcvnMmM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7hCyizidTAJBntH%2B0%3D&content-type=application%2Fx-tar 3430ms
[2020-01-31 09:01:43] Upload complete
POST /v1/bundles/2765033/status 1300ms
GET /v1/bundles/2765033 2319ms
[2020-01-31 09:01:46] Saving deployment record for mv2040_outcomes_framework -
----- Server deployment started at 2020-01-31 09:01:46 -----
POST /v1/applications/1535708/deploy 1379ms
Waiting for task: 687469728
GET /v1/tasks/687469728 1250ms
building: Parsing manifest
GET /v1/tasks/687469728 1250ms
building: Building image: 3037365
GET /v1/tasks/687469728 1329ms
building: Installing system dependencies
GET /v1/tasks/687469728 1900ms
GET /v1/tasks/687469728 1329ms
----- Deployment error -----
Error in curl::curl_fetch_memory(url, handle = handle) :
schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
----- Error stack trace -----
15: stop(e)
14: value[[3L]](cond)
13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
12: tryCatchList(expr, classes, parentenv, handlers)
11: tryCatch({
response <- curl::curl_fetch_memory(url, handle = handle)
}, error = function(e, ...) {
if (identical(e$message, "Callback aborted") || identical(e$message,
"transfer closed with outstanding read data remaining"))
return(NULL)
else stop(e)
})
10: system.time(gcFirst = FALSE, tryCatch({
response <- curl::curl_fetch_memory(url, handle = handle)
}, error = function(e, ...) {
if (identical(e$message, "Callback aborted") || identical(e$message,
"transfer closed with outstanding read data remaining"))
return(NULL)
else stop(e)
}))
9: http(service$protocol, service$host, service$port, method, url,
headers, timeout = timeout, certificate = certificate)
8: httpInvokeRequest(..., http = httpFunction())
7: httpRequest(service, authInfo, "GET", path, query, headers, timeout)
6: GET(service, authInfo, path)
5: grepl(contentType, response$contentType, fixed = TRUE)
4: isContentType(response, "application/json")
3: handleResponse(GET(service, authInfo, path))
2: client$waitForTask(taskId, quiet)
1: rsconnect::deployApp(appDir = "C:/Users/WilliamLa/Desktop/MV2040 outcomes framework",
appFileManifest = "C:/Users/WILLIA~1/AppData/Local/Temp/4ac4-ea4a-e0bf-8182",
account = "williaml", server = "shinyapps.io", appName = "mv2040_outcomes_framework",
appId = 1535708, launch.browser = function(url) {
message("Deployment completed: ", url)
}, lint = FALSE, metadata = list(asMultiple = FALSE, asStatic = FALSE),
logLevel = "verbose")
Error in curl::curl_fetch_memory(url, handle = handle) :
schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Timing stopped at: 0 0 1.02
Execution halted
By the way, sometimes it does actually update the app on shinyapps. I just made a change. The first time I tried to update it, it didn't update. The second time it did. I had the error messages both times.