Hi All,
I've installed R-Studio V1.2.1335 as a docker container from rocker - rstudio. It sits behind an nginx proxy. It all seems to work fine but when user logs in and tries to upload anything from local hard disk to the R-Studio server, I get the error message "Unexpected empty response from server" as shown.
[https://imgur.com/gqm63LI](Image of error message from imgur.com)
Everything else seems OK.
I followed the nginx proxy configuration instructions and they work fine. I have tried adjusting the "client_max_body_size 1000M;" directive inside nginx to allow larger file uploads, set the permissions on user folders to 777 to eliminate file access problems, added users to the staff and R Studio groups.
There are two articles about this problem but they do not apply in this case. I would link them but new users are not allowed to link articles.
I've then run tcpdump on the R Studio server container and seen what is being transmitted. When the OK button is clicked in the Upload Files dialogue box, about the first 300 of 1000 records are transmitted, but it stops It seems, when trying to upload a simple 70k CSV file.
However, if you check the /tmp folder on the R-Studio container, R Server creates a temporary directory called /tmp/RtmpKljPDe (for example) and the complete dataset is in there in a file called upload3f26d1e8b30.bin, in its entirety, which means the data was successfully uploaded to the server. So far so good.
The server just has to move the upload3f26d1e8b30.bin file from /tmp/RtmpKljPDe to /home/someuser.
So, the solution feels like it should be some kind of settings in session.conf or rserver.conf with something like
multiuser=true
rootdirectory=/home
Which the server then uses to park the downloaded data.
Not sure what to do. As a novice to R Server, I feel I've touched most of the bases, but could have missed some insider info that every admin learns after a while working with R Server.
Any help you can provide would be gratefully received.
Thanks for reading!