att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
429 stars 141 forks source link

rcloud.jupyter cannot allocate memory #2730

Open gordonwoodhull opened 4 years ago

gordonwoodhull commented 4 years ago

I opened about a dozen tabs on rcloud.social because I wanted to see multiple compute nodes.

Two in the middle failed with out-of-memory errors. More likely file descriptors and not much we can do about it, but I thought I'd record the errors here.

error 1

Could not initialize session. The GitHub backend might be down or you might have an invalid authorization token. (You could try clearing your cookies, for example).<br />Error: Error: compute_init: Error in value[[3L]](cond) : 
  Error ocurred while initializing `rcloud.jupyter' laguage package:Error in py_module_import(module, convert = convert): OSError: [Errno 12] Cannot allocate memory

Detailed traceback: 
  File "/usr/local/lib/R/site-library/rcloud.jupyter/jupyter/jupyter_adapter.py", line 5, in <module>
    from nbconvert.preprocessors import ExecutePreprocessor
  File "/usr/lib/python2.7/dist-packages/nbconvert/__init__.py", line 4, in <module>
    from .exporters import *
  File "/usr/lib/python2.7/dist-packages/nbconvert/exporters/__init__.py", line 3, in <module>
    from .exporter_locator import export_by_name
  File "/usr/lib/python2.7/dist-packages/nbconvert/exporters/exporter_locator.py", line 16, in <module>
    from .pdf import PDFExporter
  File "/usr/lib/python2.7/dist-packages/nbconvert/exporters/pdf.py", line 12, in <module>
    from testpath.tempdir import TemporaryWorkingDirectory
  File "/usr/lib/python2.7/dist-packages/testpath/__init__.py", line 2, in <module>
    from .asse
collapse
R trace:
stop("Error ocurred while initializing `", lang, "' laguage package:", 
    as.character(e), "; Check rcloud.languages configuration.")
value[[3L]](cond)
tryCatchOne(expr, names, parentenv, handlers[[1L]])
tryCatchList(expr, classes, parentenv, handlers)
tryCatch(suppressMessages(suppressWarnings(initialize.language(.session))), 
    error = function(e) stop("Error ocurred while initializing `", 
        lang, "' laguage package:", as.character(e), "; Check rcloud.languages configuration."))
start.rcloud.common(...)
start.rcloud.gist(username = username, token = token, ...)
start.rcloud(...)
fun(...)

error 2

Could not initialize session. The GitHub backend might be down or you might have an invalid authorization token. (You could try clearing your cookies, for example).<br />Error: Error: compute_init: Error in value[[3L]](cond) : 
  Error ocurred while initializing `rcloud.jupyter' laguage package:Error in system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE): cannot popen '/usr/bin/which 'python' 2>/dev/null', probable reason 'Cannot allocate memory'
; Check rcloud.languages configuration.
collapse
R trace:
stop("Error ocurred while initializing `", lang, "' laguage package:", 
    as.character(e), "; Check rcloud.languages configuration.")
value[[3L]](cond)
tryCatchOne(expr, names, parentenv, handlers[[1L]])
tryCatchList(expr, classes, parentenv, handlers)
tryCatch(suppressMessages(suppressWarnings(initialize.language(.session))), 
    error = function(e) stop("Error ocurred while initializing `", 
        lang, "' laguage package:", as.character(e), "; Check rcloud.languages configuration."))
start.rcloud.common(...)
start.rcloud.gist(username = username, token = token, ...)
start.rcloud(...)
fun(...)