boutroslab / CRISPRAnalyzeR

CRISPRAnalyzeR: interactive analysis, annotation and documentation of pooled CRISPR screens
GNU General Public License v2.0
80 stars 31 forks source link

ERROR: An error has occurred. Check your logs or contact the app author for clarification #49

Open larrywei opened 6 years ago

larrywei commented 6 years ago

Hi Jan,

Thank you for such an amazing analysis tool.

I recently successfully ran the application on our Ubuntu server. However, we encountered a issue of connection. Sometimes I can connect the CRISPR analyer without any problem, but sometimes it kept saying "ERROR: An error has occurred. Check your logs or contact the app author for clarification.". I have checked the shiny-server log file but found nothing helpful. Do you have any idea how this connectio problem happens and how to figure it out? Thank you very much.

Best, Larry

larrywei commented 6 years ago

Here is the content in the log: cat CRISPRAnalyzeR-shiny-20180731-091847-35115.log

Listening on http://127.0.0.1:35115

Attaching package: ‘shinydashboard’

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

box

Attaching package: ‘shinyjs’

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

runExample

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

removeClass, show

Highcharts (www.highcharts.com) is a Highsoft software product which is not free for commercial and Governmental use

Attaching package: ‘DT’

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

dataTableOutput, renderDataTable

Loading required package: grid Loading required package: futile.logger Parsed with column specification: cols( Library = col_character(), Setting = col_character(), Value = col_character() ) Read 319 items Warning in file(con, "r") : cannot open file 'analytics.js': No such file or directory Warning: Error in file: cannot open the connection Stack trace (innermost first): 51: file 50: readLines 49: shiny::includeScript 48: tag 47: shiny::tags$head 46: tag 45: tags$section 44: tag 43: tags$div 42: div 41: dashboardBody 1: runApp Error : An error has occurred. Check your logs or contact the app author for clarification. Parsed with column specification: cols( Library = col_character(), Setting = col_character(), Value = col_character() ) Read 319 items Warning in file(con, "r") : cannot open file 'analytics.js': No such file or directory Warning: Error in file: cannot open the connection Stack trace (innermost first): 51: file 50: readLines 49: shiny::includeScript 48: tag 47: shiny::tags$head 46: tag 45: tags$section 44: tag 43: tags$div 42: div 41: dashboardBody 1: runApp Error : An error has occurred. Check your logs or contact the app author for clarification.

ramanktalwar commented 6 years ago

Yes, I am having a similar issue.

jwinter6 commented 6 years ago

hi guys,

actually, you downloaded the wrong image. You retrieved the V1.xxAnalytics one which is for the webserver demo only and not for external use. Sorry my fault that these are downloadable, try to always use the :latest tag.

please go and use either

boutroslab/crispranalyzer:latest or boutroslab/crispranalyzer:1.50.

Can you verify which version you started with docker? Please do not use the Analytics versions, maybe I should delete them ...

cheers Jan

larrywei commented 6 years ago

Hi Jan,

Thank you for your quick reply.

I'm using the latest docker image.

boutroslab/crispranalyzer latest 732aea80860a 6 months ago 7.14GB

This problem happens randomly. Sometimes I can connect the Analyzer without any problem, but my colleague cannot connect. Sometimes my colleague can connect but I can't. Sometimes I can't connect at the office's network but can connect at home's network.

Actually, I have two log files in /var/log/shiny-server

CRISPRAnalyzeR4-shiny-20180731-100944-32847.log CRISPRAnalyzeR-shiny-20180731-091847-35115.log

The 355315 one has the record that I can't connect. The 32847 one has the record that everything is okay.

Thank you for your time.

Best, Larry

jwinter6 commented 6 years ago

HI Larry,

please send me the log files to jan.winter@dkfz-heidelberg.de

I will take care as soon as I am back from holiday - as this should just not happen (never say never ;)

Best, Jan

evan-wehi commented 5 years ago

I have the same error, missing analytics.js, using latest or 1.50.

I'm running as:

sudo docker run --rm -p 8000:8000 boutroslab/crispranalyzer:latest

on centOS7 and then connecting from a remote machine.

If I run on my mac and connect locally it is OK.

How can I run it on a local server?

evan-wehi commented 5 years ago

I added an nginx redirect and it loads in the browser but it after loading it greys out. Buttons and menus seem to work. I'm setting this up for a lab in our institute but I'm not able to test it.

jwinter6 commented 5 years ago

Dear all,

sorry for the delayed replies.

Please do not use the 1.40Analytics, this is the docker image for the webserver we hosted. Please use :LATEST, which does not require an analytics file.

So the correct files are:

:latest or :1.50

In case it works on CentOS but not on the MAC or vice versa, please check carefully if you are really running :LATEST tag. Anyway, you can try to remove any downloaded image files via

docker images docker rmi -f IMAGEID

Best Jan

evan-wehi commented 5 years ago

Hi Jan,

As I clearly stated, I was using latest and it still failed looking for the analytics file. It seems to fail because we are accessing it from a remote machine, not the machine where the docker image is running.

Thanks, Evan

moskalenko commented 5 years ago

Same problem exists with the 1.50 source when trying to start the shiny app. App requires analytics.js. It should not be a requirement. At least make using google-analytics usage configurable.

adbeggs commented 5 years ago

Hi all

I am having exactly the same problem too! Docker running within Ubuntu 18.04LTS, here's the log:

root@08f1f23085c0:/var/log/shiny-server# cat CRISPRAnalyzeR-shiny-20190502-150930-39545.log

Listening on http://127.0.0.1:39545

Attaching package: ‘shinydashboard’

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

box

Attaching package: ‘shinyjs’

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

runExample

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

removeClass, show

Highcharts (www.highcharts.com) is a Highsoft software product which is not free for commercial and Governmental use

Attaching package: ‘DT’

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

dataTableOutput, renderDataTable

Loading required package: grid Loading required package: futile.logger Parsed with column specification: cols( Library = col_character(), Setting = col_character(), Value = col_character() ) Read 319 items Warning in file(con, "r") : cannot open file 'analytics.js': No such file or directory Warning: Error in file: cannot open the connection Stack trace (innermost first): 51: file 50: readLines 49: shiny::includeScript 48: tag 47: shiny::tags$head 46: tag 45: tags$section 44: tag 43: tags$div 42: div 41: dashboardBody 1: runApp Error : An error has occurred. Check your logs or contact the app author for clarification.

tgjohnst commented 4 years ago

Since it doesn't look like the devs have fixed this, I figured I'd share a quick fix to the latest container without having to rebuild from source, just involves chopping out the analytics.js line from the shiny code: 0) Run the docker container either in background, in a screen, etc. 1) Mount the Docker filesystem (using whatever your running container's name is) sudo docker exec -it {container_name} bash 2) chop the comma off the preceding line sed -i 's/("tooltip-delay.js"),/("tooltip-delay.js")/' /srv/shiny-server/CRISPRAnalyzeR/ui.r 3) chop out the analytics.js line sed -i '/analytics.js/d' /srv/shiny-server/CRISPRAnalyzeR/ui.r

After that, should work just fine. Cheers

fatim598 commented 3 years ago

Can you help me please. for a week I have not found a solution to my problem.

indeed I created an application on shiny that I want to deploy but each time I compile it, I get the same error message.

Capture