shiny server running, apps disconnected from the server - shiny

I had an issue with an app or all apps that are running locally with shiny server , I did much troubleshooting but always getting "Disconnected from the server.
Reload"
all logs are from 05 january , I still dont know what is the real reason behind this , any expert who can assist ?
Thanks
restarting , reloading shiny server
checking logs but nothing came up

By default, shiny server will go to sleep and kill the associated R process if there is no activity. You can stop this behavior by setting:
location / {
app_idle_timeout 0;
}
In /etc/shiny-server/shiny-server.conf
More details in the shiny server docs and this SO question

Related

ColdFusion2016 services are not getting started

ColdFusion2016 services are not getting started, It was running since last year now they are stopped suddenly, while I'm checking the cf-out logs it says
"Either the server is already running or some other application is using the HTTP port"
CF-Error logs says "failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak."
I have checked no other application is using it except coldFusion.
When I stop IIS site then ColdFusion services gets started.
Can any one help me here.

jetty 404 error page on hot deployment

I am currently using Jetty 9.1.4 on Windows.
When I deploy the war file without hot deployment config, and then restart the Jetty service. During that 5-10 seconds starting process, all client connections to my Jetty server are waiting for the server to finish loading. Then clients will be able to view the contents.
Now with hot deployment config on, the default Jetty 404 error page shows within that 5-10 second loading interval.
Is there anyway I can make the hot deployment has the same behavior as the complete restart - clients connections will wait instead seeing the 404 error page ?
Unfortunately this does not seem to be possible currently after talking with the Jetty developers on IRC #jetty.
One solution I will try to use are two Jetty instances with a loadbalancing reverse proxy (e.g. nginx) before them and taking one instance down for deployment.
Of course this will instantly lead to new requirements (session persistence/sharing) which need to be handled. So in conclusion: much work to do in the Java world for zero downtime on deployments.
Edit: I will try this, seems like a simple enough solution http://rafaelsteil.com/zero-downtime-deploy-script-for-jetty/ Github: https://github.com/rafaelsteil/jetty-zero-downtime-deploy

Controlling Gunicorn in a new ssh session

I am using Gunicorn to power Django application on a remote server (ubuntu), to which I connect by ssh. Once Gunicorn has started the status log pops up showing you what is going on and such. However when I close my ssh session and reconnect later on I cant seem to reopen the process without killing Gunicorn and rebooting the server.
Not sure if i understand your issue correctly...
When running django/gunicorn usually it is helpful to use some tools to control the processes. One really good option to do so is the use of supervisord:
http://docs.gunicorn.org/en/latest/deploy.html#supervisor
If you just want to run processes directly and being able to (dis-)connect - generally screen is a good option.
It allows you to to disconnect an ssh-session while leaving your 'virtual?' terminals running.
Just re-ssh to your server and reconnect using:
screen -xr

How do I make my wamp icon turn green? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
1) I have installed 32 bit version wamp 2.2E, on windows XP 32bit. The icon is currently orange. I do not have skype.
2)The windows hosts file does have the line:
127.0.0.1 localhost
3a) Trying to enter //127.0.0.1/ in the browser results in error:
"Navigation to the webpage cancelled"
3b) or //localhost/ results in error:
"Access denied"
4)Apache and PHP error logs are empty even after restarting services.
5) restarted under services.msc the service "wampmysqld", doesn't help
6) stopping first then restarting all services doesn't help [I should add the icon has never been green from the first installation of wamp has been going to orange]
Please note this happens because there is some other application running on port 80 , which is used by wamp.
You can check by wamp-> apache-> service -> Test port 80. It will list out applications used by port 80.
In our case IIS server was running http service, so start task manager, first click show all processess, put a stop to HTTP
After this fix i got IIS page issue on localhost which got solved when we did below step check in your hosts file in WINDOWS folder, if entry 127.0.0.0 localhost is commented then uncomment it by removing # infront of that line.
Problem solved:
I downloaded the older version wampserver 2.1e - and bam, it works.
Note: during the installation process, the windows firewall popped up and asked me if I wanted to continue to block certain elements from apache http, I chose unblock, and bam it works! Now I wonder if that was the problem with 2.2e, if I needed to go into the firewall and something is blocking apache.
Make sure applications like Yahoo Messenger, Skype, or ICQ are not running when you try to start WAMP. If any of the 3 apps are running, WAMP will fail to start because for some reason they also use the local address. Stop the apps first, restart WAMP, and when it is green, you may restart your IMs. Hope this helps.
You can often get stuck in this position when the wamp services are not running correctly. From the start menu run "services.msc" look for any services that mention wamp (sort alphabetical) and ensure they all say "started".
If this still doesn't work try stopping the services for wamp and restarting them, it may take a moment or two for the menus to refresh and work.

VMware Server 2.0 - The VMware Infrastructure Web Service not responding

After installing VMware Server I get the following error when I try to access the VMware web-based server manager:
The VMware Infrastructure Web Service
at "http://localhost:8222/sdk" is not
responding
Go into the services manager and check that the 'VMware Host Agent' service is running. If not, then start it and then try browsing to the site again.
Vmware Hostd was not working for me either.
However, in trying to start the service it stopped automatically. Typically when this happens it is because there is an error in your config.xml.
C:\ProgramData\VMware\VMware Server\hostd\config.xml
In my case, checking the logs at:
C:\ProgramData\VMware\VMware Server
showed it erroring out after "Trying hostsvc".
Searching the config.xml for hostsvc showed references to several things, the first thing was the datastore. In checking my datastores.xml file:
C:\ProgramData\VMware\VMware Server\hostd\datastores.xml .
I found it full of all sorts of random characters instead of a properly formed XML document.
Renaming datastores.xml to datastorex.xml.bad allowed me to start the service. At which point I had to add back my datastores through the GUI.
Hopefully this will help someone else out. I did not find any other references in Google to this issue.
Try accessing via "http://localhost:8222" without the /sdk. You can also try the secure site via "https://localhost:8333".