Spontaneous "connection refused" error using Selenium in R - r

I have written several different scripts that utilize the RSelenium package's automated web browsing. However, on occasion, the window will spontaneously close while in the middle of running, and I will get this error :
Error in checkError(res) :
Undefined error in httr call. httr output: Failed to connect to localhost port 4567: Connection refused
When this happens, the web browser will close which forces me to restart the script. Then, once restarted, the script will work fine. I run these scripts often (maybe a dozen times a day, ignoring re-runs due to the error), and have had this error happen at different stages of the scripts. The error seems to happen randomly. Does anyone have an idea of what could be causing this?

Related

Getting std::bad_alloc error within Shiny server

I am using a Shiny web server within a virtual machine and it is throwing a strange error since a few days. Other apps within the machine work fine.
The error messages within the specific loge files are
Listening on http://127.0.0.1:33017
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_create
or
Listening on http://127.0.0.1:36529
SEND {"busy":"busy"}
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
How can I approach this problem? I can not reproduce the problem on my local machine, since it is running normally. How can I debug something like this?
The Webinterface just greys out and ask to reload: https://butterlab.imb-mainz.de/flydev/

exception exit: eaccess on windows 10

I have an erlang TCP server that works without a problem on everything but windows.
There it reports the error in the title of this question. I tries to disable the firewall in windows. Still I get the same error. What could the issue be?
Thanks
eacces is a posix message, it means that the code attempts to access to a file or a directory without the necessary rights. In the error message, you should have the line of code responsible for this error, and the call stack.

How to reconnect and continue normaly on "Error: MySQL server has gone away" in nodesql and MariaDB

I get Error: MySQL server has gone away from time to time using MariaDB and mariasql. The application stops working logically. Now I wonder if there is a way to catch this error, reconnect and continue normal operation.
After some research, I found that mariasql reconnects automatically, but make sure you listen to the error event, or your application will stop due to uncaught exception error.

network error (Tcp error)

I am inside a network where I need proxy settings to access the internet.
I have a weird problem.
The internet is working fine.
But it is one particular instance when i get this error:
Network Error (tcp_error)
A communication error occurred: "Operation timed out"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
For assistance, contact your network support team.
This happens when I use hadoop in local mode.
I can access the UI interface. I can see the jobs running. but when I try to see the logs of each task.. i am not able to access those logs.
UI--> job-->map--> task--> all <-- this is where the error is..
Any clues?
THanks
Not sure about exactly what your tcp action is, or about Hadoop or your proxy setup, but if you can reliably repeat the error, and the timeout error happens at approximately the same time each time you test, and that time is on the order of minutes, my guess would be that you've got a true processing delay (perhaps caused by blocking somewhere) at the server, but not necessarily.

Running multiple projects at the same time in play framework

I am trying to run 2 projects built using play framework simultaneously but with little success. This is the error that pops up while trying to run the second instance:
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_E
RROR_TRANSPORT_INIT(197)
I tried changing the http port of one to 9000 and the other to 9001, but still the same error. Any ideas as to how I can get these multiple instances running ? Thanks in advance.
Play uses 2 ports in dev mode. One for http and one for jpda. You can change both in your application.conf file
http.port=9001
jpda.port=8001
Bonus answer : In production mode, only the http port is used.

Resources