Report this

What is the reason for this report?

R script in node gets stuck. No errors shown

Posted on March 29, 2019

Please, see the stackoverflow thread first:

https://stackoverflow.com/questions/55409558/shelljs-execution-gets-stuck-on-digitalocean

The execution of an R script just gets stuck and there is no errors. I need to have a way of figuring out of what is going on.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Greetings!

I see that you were able to find the answer to this. For the benefit of future readers, I am going to paste your answer here:

So, I do not know why but it was apache2 server problem. I switched to nginx, but then RAM out of memory errors appeared which I fixed by reducing the amount of memory my R script uses:

options(java.parameters = "-Xmx6000m")

It was -Xmx8000m. Then the script was finishing correctly on the server, but on the client I saw 504 gateway timeout errors which I fixed by the solution I found here: https://asdqwe.net/blog/solutions-504-gateway-timeout-nginx/

Just created file at /etc/nginx/conf.d/timeout.conf with:

proxy_connect_timeout       3000;
proxy_send_timeout          3000;
proxy_read_timeout          3000;
send_timeout                3000;
After which it finally started working

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.