File Upload > 1GB: Unexpected response from server

Uploading a file > 1GB using the RStudio Server IDE (tested on Debian stretch) gives an error message: Unexpected response from server
Smaller files just work fine.

Looking into /var/log/syslog gives the following message:

Jun 5 21:18:39 ip-172-31-44-28 **rserver** [1052]: ERROR Unexpected exception: std::bad_alloc; LOGGED FROM: void rstudio::core::http::AsyncConnectionImpl<SocketType>::handleRead(const rstudio_boost::system::error_code&, std::size_t) [with SocketType = rstudio_boost::asio::basic_stream_socket<rstudio_boost::asio::ip::tcp> std::size_t = long unsigned int] /var/lib/jenkins/workspace/IDE_open-source-pipeline_v1.2/src/cpp/core/include/core/http/AsyncConnectionImpl.hpp:348

Tested also on previous versions of RStudio (1.2, 1.0.153) on either the Docker rocker containers or the AMIs from http://www.louisaslett.com/RStudio_AMI.

Is this a bug in RStudio Server?

For the free service, there's a 1GB hard limit on the total of all resources, including both data and packages which would produce this. See sean post.

1 Like

This is true for RStudio Cloud service, but I think the OP is talking about rstudio-server installed on a AWS EC2 instance.

@mannau are you using a reverse proxy like nginx or apache? (i.e. do you access RStudio using something like http://your.domain:8787 or http://your.domain/rstudio/?)

3 Likes

This issue happens also without a reverse proxy on ec2/localhost so I do not think the connection/proxy has anything to do with it.

The problem is definitely on the RStudio side and can be reproduced using the public docker/rocker container (eg rocker/rstudio) and the AWS AMI by louis aslett.

On the browser side I tested everything with Chrome (v. 74.0.3729.169) on a Mac.

Edit: The following bug posted on Github seems to be related: https://github.com/rstudio/rstudio/issues/3299