Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpage fails to load #466

Open
Samiam789 opened this issue Feb 21, 2024 · 7 comments
Open

Webpage fails to load #466

Samiam789 opened this issue Feb 21, 2024 · 7 comments

Comments

@Samiam789
Copy link

When I run the app the webpage loads but continually displays the "loading" animation. I can click through the various tabs but can't upload data. I'm running R on Fedora Linux 39 (workstation edition). I've tried it using Firefox and Edge (and also through RStudio). Any help would be much appreciated!

@patriciamar
Copy link
Owner

Please provide more information:
Are you running ShinyItemAnalysis locally in your R session? If running locally, please provide your sessionInfo(). You should also be able to see the Error messages it gives you (in RStudio, this will be in the Background Jobs tab).

@patriciamar
Copy link
Owner

Also, there were some issues with the Matrix library lately, try to update that library.
Perhaps the error message it was giving you was related to that library?

@Samiam789
Copy link
Author

Here is the output from Background Jobs in rstudio... I couldn't see any error messages (but I am very new to R).

Loading required package: shiny

Listening on http://127.0.0.1:3318
Loading required package: DT

Attaching package: ‘DT’

The following objects are masked from ‘package:shiny’:

dataTableOutput, renderDataTable

Loading required package: plotly
Loading required package: ggplot2

Attaching package: ‘plotly’

The following object is masked from ‘package:ggplot2’:

last_plot

The following object is masked from ‘package:stats’:

filter

The following object is masked from ‘package:graphics’:

layout

Loading required package: shinyBS
Loading required package: shinydashboard

Attaching package: ‘shinydashboard’

The following object is masked from ‘package:graphics’:

box

Loading required package: shinyjs

Attaching package: ‘shinyjs’

The following object is masked from ‘package:shiny’:

runExample

The following objects are masked from ‘package:methods’:

removeClass, show

Loading required package: deltaPlotR
Loading required package: MASS

Attaching package: ‘MASS’

The following object is masked from ‘package:plotly’:

select

Loading required package: data.table
Loading required package: difNLR
Loading required package: difR
Loading required package: ggdendro
Loading required package: grid
Loading required package: gridExtra
Loading required package: knitr
Loading required package: latticeExtra
Loading required package: lattice

Attaching package: ‘latticeExtra’

The following object is masked from ‘package:ggplot2’:

layer

Loading required package: ltm
Loading required package: msm
Loading required package: polycor
Loading required package: mirt
Loading required package: stats4

Attaching package: ‘mirt’

The following object is masked from ‘package:ltm’:

Science

Loading required package: lme4
Loading required package: Matrix

Attaching package: ‘lme4’

The following object is masked from ‘package:mirt’:

fixef

Loading required package: nnet
Loading required package: purrr

Attaching package: ‘purrr’

The following object is masked from ‘package:data.table’:

transpose

Loading required package: psych

Attaching package: ‘psych’

The following object is masked from ‘package:ltm’:

factor.scores

The following object is masked from ‘package:polycor’:

polyserial

The following objects are masked from ‘package:ggplot2’:

%+%, alpha

Loading required package: rmarkdown
Loading required package: ShinyItemAnalysis
This is ShinyItemAnalysis version 1.5.0

  • to run the interactive {shiny} app, call run_app()
  • to learn more, visit ShinyItemAnalysis.org
    Loading required package: stringr
    Loading required package: tidyr

Attaching package: ‘tidyr’

The following objects are masked from ‘package:Matrix’:

expand, pack, unpack

Loading required package: dplyr

Attaching package: ‘dplyr’

The following object is masked from ‘package:gridExtra’:

combine

The following objects are masked from ‘package:data.table’:

between, first, last

The following object is masked from ‘package:MASS’:

select

The following objects are masked from ‘package:stats’:

filter, lag

The following objects are masked from ‘package:base’:

intersect, setdiff, setequal, union

Loading required package: tibble
Loading required package: VGAM
Loading required package: splines

Attaching package: ‘VGAM’

The following objects are masked from ‘package:psych’:

fisherz, logistic, logit

Loading required package: xtable

Attaching package: ‘xtable’

The following object is masked from ‘package:ggdendro’:

label

@Samiam789
Copy link
Author

Here is the R session info...

version 4.3.2 (2023-10-31)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora Linux 39 (Workstation Edition)

Matrix products: default
BLAS/LAPACK: FlexiBLAS OPENBLAS-OPENMP; LAPACK version 3.11.0

locale:
[1] LC_CTYPE=en_AU.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8
[5] LC_MONETARY=en_AU.UTF-8 LC_MESSAGES=en_AU.UTF-8
[7] LC_PAPER=en_AU.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C

time zone: Australia/Brisbane
tzcode source: system (glibc)

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

loaded via a namespace (and not attached):
[1] compiler_4.3.2 CoprManager_0.5.5

@Samiam789
Copy link
Author

Updating the Matrix package didn't help.

@netique
Copy link

netique commented Feb 22, 2024

@Samiam789 Please try ShinyItemAnalysis::run_app(background = FALSE) to run the app directly in your console. Wait for, say, 5 minutes and look for any prompts, warnings, or errors in the console.

Another thing to try is to reinstall ShinyItemAnalysis with all dependencies using:

install.packages("ShinyItemAnalysis", dependencies = TRUE)

Have you tried running a simple shiny app? Maybe your machine is configured to handle HTTP or WebSocket requests in some restrictive way. Please try:

shiny::runExample("01_hello")

@Samiam789
Copy link
Author

The simple app seemed to run ok (shiny::runExample("01_hello").

Installing the dependencies didn't make any difference.

Running it with the (background = FALSE) also didn't make any difference. After 10 min I couldn't see any warnings in the console.

The webpage opens. The loading animation starts about 10 sec after the webpage opens and then remains. I can navigate to the data tab and if I click the browse button I can navigate to and select a csv file on my hard disk. But if I press the upload button nothing happens.

Here is the console output after running the app with the (background = FALSE)...

ShinyItemAnalysis::run_app(background = FALSE)
Loading required package: shiny

Listening on http://127.0.0.1:4547
Loading required package: DT

Attaching package: ‘DT’

The following objects are masked from ‘package:shiny’:

dataTableOutput, renderDataTable

Loading required package: plotly
Loading required package: ggplot2

Attaching package: ‘plotly’

The following object is masked from ‘package:ggplot2’:

last_plot

The following object is masked from ‘package:stats’:

filter

The following object is masked from ‘package:graphics’:

layout

Loading required package: shinyBS
Loading required package: shinydashboard

Attaching package: ‘shinydashboard’

The following object is masked from ‘package:graphics’:

box

Loading required package: shinyjs
You can use shinyjs to call your own JavaScript functions:
https://deanattali.com/shinyjs/extend

Attaching package: ‘shinyjs’

The following object is masked from ‘package:shiny’:

runExample

The following objects are masked from ‘package:methods’:

removeClass, show

Loading required package: deltaPlotR
Loading required package: MASS

Attaching package: ‘MASS’

The following object is masked from ‘package:plotly’:

select

Loading required package: data.table
data.table 1.15.0 using 8 threads (see ?getDTthreads). Latest news: r-datatable.com
Loading required package: difNLR
Loading required package: difR
Loading required package: ggdendro
Loading required package: grid
Loading required package: gridExtra
Loading required package: knitr
Loading required package: latticeExtra
Loading required package: lattice

Attaching package: ‘latticeExtra’

The following object is masked from ‘package:ggplot2’:

layer

Loading required package: ltm
Loading required package: msm
Loading required package: polycor
Loading required package: mirt
Loading required package: stats4

Attaching package: ‘mirt’

The following object is masked from ‘package:ltm’:

Science

Loading required package: lme4
Loading required package: Matrix

Attaching package: ‘lme4’

The following object is masked from ‘package:mirt’:

fixef

Loading required package: nnet
Loading required package: purrr

Attaching package: ‘purrr’

The following object is masked from ‘package:data.table’:

transpose

Loading required package: psych

Attaching package: ‘psych’

The following object is masked from ‘package:ltm’:

factor.scores

The following object is masked from ‘package:polycor’:

polyserial

The following objects are masked from ‘package:ggplot2’:

%+%, alpha

Loading required package: rmarkdown
Loading required package: ShinyItemAnalysis
This is ShinyItemAnalysis version 1.5.0

  • to run the interactive {shiny} app, call run_app()
  • to learn more, visit ShinyItemAnalysis.org
    Loading required package: stringr
    Loading required package: tidyr

Attaching package: ‘tidyr’

The following objects are masked from ‘package:Matrix’:

expand, pack, unpack

Loading required package: dplyr

Attaching package: ‘dplyr’

The following object is masked from ‘package:gridExtra’:

combine

The following objects are masked from ‘package:data.table’:

between, first, last

The following object is masked from ‘package:MASS’:

select

The following objects are masked from ‘package:stats’:

filter, lag

The following objects are masked from ‘package:base’:

intersect, setdiff, setequal, union

Loading required package: tibble
Loading required package: VGAM
Loading required package: splines

Attaching package: ‘VGAM’

The following objects are masked from ‘package:psych’:

fisherz, logistic, logit

Loading required package: xtable

Attaching package: ‘xtable’

The following object is masked from ‘package:ggdendro’:

label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants