传输期间发生AWS EC2 Rstudio服务器错误 [英] AWS EC2 Rstudio Server Error Occured During Transmission

查看:332
本文介绍了传输期间发生AWS EC2 Rstudio服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个多月后,我设法拼凑了如何设置AWS EC2服务器。通过Rstudio Server中的上传按钮完成文件上传时,由于文件大小限制非常保守,因此上传文件非常困难。尝试执行此操作时,错误消息为来自服务器的意外空响应。

在这方面,我不是唯一的。 使用Louis上载大文件到RStudio的问题EC2上的Aslett的AMI

After over a month, I have managed to piece together how to setup an AWS EC2 server. It has been very hard to upload files as there are very conservative (size) limits when done via the upload button in Rstudio Server. The error message when this is attempted is "Unexpected empty response from server".
I am not unique in this respect e.g. Trouble Uploading Large Files to RStudio using Louis Aslett's AMI on EC2

我设法通过腻子使用了以下命令,这使我可以通过filezilla或winscp上传文件。

I have managed to use the following commands through putty and this has allowed me to upload files via either filezilla or winscp.

sudo chown -R ubuntu / home / rstudio

sudo chown -R ubuntu /home/rstudio

sudo chmod -R 755 / home / rstudio

sudo chmod -R 755 /home/rstudio

一旦使用这些命令并注销,以后便无法再在实例上访问rstudio。我可以通过浏览器重新登录到实例,但收到错误消息:
传输过程中发生错误

Once I use these commands and log out, I can no longer access rstudio on the instances in future logins. I can relogin to my instances via my browser, but I get the error message: Error Occurred During Transmission

除使用一次腻子一次外,其他一切都很好

我认为这是因为命令更改了所有权或类似所有权。我应该使用其他命令吗?
如果不使用命令,则无法在filezilla / winscp与实例之间建立连接。
如果有人想发表评论,说这应该是封闭的,因为这是硬件问题,那么我认为硬件没有问题。我对正确的编码命令感兴趣。
谢谢:)

Everything is fine other than once I use Putty I lose browser access to my instances.
I think this is because the command is change of ownership or similar. Should I be using a different command? If I don't use a command I cannot connect between filezilla/winscp and the instance. If anyone is thinking of posting a comment that this should be closed as it is a hardware issue, I don't have a problem with hardware. I am interested in the correct coded commands. Thank you :)

好,所以最终我意识到这里发生了什么。无论实例大小如何,AWS的默认主目录大小均小于8-10GB。由于试图上传到家里,所以没有足够的空间。一个有经验的linux用户不会陷入这个陷阱,但是希望遇到此问题的任何其他对此不熟悉的Windows用户都能看到这一点。如果您上传到实例上的其他驱动器,则可以解决此问题。由于Louis Aslett Rstudio AMI基于8-10GB的空间,因此您必须在该目录(主目录)之外设置工作目录。从Rstudio服务器界面上看不出来直观。虽然这是一个高级论坛,并且这是一个菜鸟错误,但我希望没有人删除这个问题,因为我花了几个月的时间,我想其他人也会这样做。

Ok so eventually I realised what was going on here. The default home directory size for AWS is less than 8-10GB regardless of the size of your instance. As this as trying to upload to home then there was not enough room. An experienced linux user would not have fallen into this trap, but hopefully any other windows users new to this who come across this problem will see this. If you upload into a different drive on the instance then this can be solved. As the Louis Aslett Rstudio AMI is based in this 8-10GB space then you will have to set your working directory outside this, the home directory. Not intuitively apparent from Rstudio server interface. Whilst this is an advanced forum and this is a rookie error I am hoping no one deletes this question as I spent months on this and I think someone else will too.

推荐答案

请勿更改/ home / rstudio的权限,除非您知道自己在做什么,否则可能会导致意外问题(实际上确实会引起您的问题)。相反,使用filezilla或winscp将文件复制到一个临时文件(假设为/ tmp),然后使用腻子ssh将其复制到您的实例,然后使用sudo将文件移动到rstudio目录(例如sudo mv / tmp / myfile / home / rstudio)

Don't change the rights of /home/rstudio unless you know what you are doing, this may cause unexpected issues (and it actually does cause issues in your case). Instead, copy the files with filezilla or winscp to a temporary file (let say /tmp), then ssh to your instance with putty and move the file to the rstudio directory with sudo (e.g sudo mv /tmp/myfile /home/rstudio).

这篇关于传输期间发生AWS EC2 Rstudio服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆