att / rcloud

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

after a while, SIGPIPE and notebooks stop functioning #2654

Closed gordonwoodhull closed 5 years ago

gordonwoodhull commented 5 years ago

single-user non-proxified RCloud 2.1.3-devel on Linux Mint 19.1 Tessa

after a while I see the following on the terminal:

Error: ignoring SIGPIPE signal
In addition: Warning message:
In gzfile(file, "rb") :
  cannot open compressed file '/home/osboxes/src/rcloud/conf/rcloud.auth', probable reason 'No such file or directory'
Fatal error: unable to initialize the JIT

Error: ignoring SIGPIPE signal
Fatal error: unable to initialize the JIT

(repeats a couple more times)

Now RCloud appears to function but many commands will fail with

Error: call_notebook: Error in file(open = "w+b", encoding = "UTF-8") : 
  cannot open the connection

The trace differs.

The symptom is similar to single-user temp dir problems in #1770 but it appears to be permanent. First I was able to restart RCloud, now even restarting the machine doesn't help.

gordonwoodhull commented 5 years ago

simple stuff like arithmetic and loading libraries works

gordonwoodhull commented 5 years ago

Okay, I think this is caused by opening multiple tabs with RCloud, which happens e.g. whenever you run a shiny notebook using the Shareable Link.

As @s-u wrote in #1770:

even if we guarantee the existence of tempdir() at session init, it doesn't help as another session can blow it away at any other point

The second session kills tempdir for the first session. Now nothing works until I restart RCloud.

If I'm careful never to have more than one session running, then life is good.

I think this is exacerbated by rcloud.shiny shutdown att/rcloud.shiny#31 but it's the same issue, so closing as dupe.