Sage-Bionetworks / stopadforms

https://sage-bionetworks.github.io/stopadforms
Other
2 stars 4 forks source link

Application errors after shinypro server restore #91

Closed JessterB closed 2 years ago

JessterB commented 2 years ago

After restoring the app to the shinypro server after it was inadvertently wiped, I had some issues with the app failing to load properly. The issue appeared to resolve itself, although it's unclear why. Bruce was wondering if the app possibly supports only a single concurrent user, as he was successfully logged in while I wasn't, and when I was logged in he finally saw the issue I was having.

The logs show a number of errors, it's unclear which is associated with the failures.

Project requested R version '4.0.3' but '4.2.0' is currently being used 
Loading stopadforms

Listening on http://127.0.0.1:35571
Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: `filter_()` is deprecated as of dplyr 0.7.0.
Please use `filter()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp
Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp
Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp
Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp
Warning: Error in oauth_process: Bad Request (HTTP 400). Failed to get an access token.
  57: <Anonymous>
Error in oauth_process(params = url_params) : 
  Bad Request (HTTP 400). Failed to get an access token.

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

Warning: Error in oauth_process: Bad Request (HTTP 400). Failed to get an access token.
  57: <Anonymous>
Error in oauth_process(params = url_params) : 
  Bad Request (HTTP 400). Failed to get an access token.
Warning: Error in oauth_process: Bad Request (HTTP 400). Failed to get an access token.
  57: <Anonymous>
Error in oauth_process(params = url_params) : 
  Bad Request (HTTP 400). Failed to get an access token.
JessterB commented 2 years ago

Logs from the app running on R 4.0, exhibiting the same issue:

x86_64-pc-linux-gnux86_64linux-gnux86_64, linux-gnu40.02020042478286RR version 4.0.0 (2020-04-24)Arbor Day

Listening on http://127.0.0.1:36843
Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms-r40/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms-r40/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: `filter_()` is deprecated as of dplyr 0.7.0.
Please use `filter()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms-r40/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms-r40/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

── Column specification ────────────────────────────────────────────────────────
cols(
  ROW_ID = col_double(),
  ROW_VERSION = col_double(),
  form_data_id = col_double(),
  submission = col_character(),
  step = col_character(),
  scorer = col_double(),
  score = col_double(),
  comments = col_character(),
  species = col_character()
)

Warning: Error in split.default: group length is 0 but data length > 0
  66: split.default
  60: append_clinical_to_submission [/home/nkauer/ShinyApps/stopadforms-r40/R/score.R#194]
  59: module [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-panel-section.R#79]
  54: callModule
  53: module [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-main.R#111]
  48: callModule
  47: server [/home/nkauer/ShinyApps/stopadforms-r40/R/app-server.R#21]
Error in split.default(submissions, submissions$form_data_id) : 
  group length is 0 but data length > 0
Warning: Error in UseMethod: no applicable method for 'filter_' applied to an object of class "list"
  117: filter_
  116: filter.default
  114: <reactive:to_show> [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-review-section.R#131]
   98: to_show
   95: func [/home/nkauer/ShinyApps/stopadforms-r40/R/mod-review-section.R#139]
   82: origRenderFunc
   81: output$main-review_section-data_section_subset
    1: runApp
brucehoff commented 2 years ago

The error might be due to Synapse. See: https://sagebionetworks.jira.com/browse/SWC-5297?focusedCommentId=149297

JessterB commented 2 years ago

See https://sagebionetworks.jira.com/browse/ALZ-86, closing this duplicate

JessterB commented 2 years ago

This was resolved via ALZ-86