AWS ec2 windows application not visible after launch - amazon-web-services

I've got a windows application that has been deployed to an AWS EC2 instance which has then been configured to run on startup via the task scheduler. This all works as intended with one exception. When I remote into the EC2 instance, I can't see the application. It's running (visible on the task manager) and producing the output as expected but the GUI is not visible and I'd like to be able to see it when I RDP into the instance.
It is being launched via the task scheduler and I can't find anything in the settings to enable the GUI to be visible for the application when I remote into the system. Is there an EC2 instance setting that needs to be enabled to make this possible?

Related

How to keep the application on when ec2 get stopped?

what I did is I deployed Tomcat application in EC2 but I install and configure it previously before launching the ec2.
basically, when your machine of app comes up, it should have the tomcat application already deployed in it
without running the shell commands manually to install and configure tomcat.
Right now the problem is when I stopped the ec2 and start it again the tomcat application was not pop up when I hit the IP.
can you please tell me how to solve this problem?
If I understood correctly, you need to run a set of commands on instance startup to configure your application/server.
You can do this with a user data script. User data is executed at launch, and you can configure it to run on restarts as well.
If I understood right, you want your tomcat to be started everytime you restart your server.
You can configure the tomcat as a linux service and enable that service so that it will start tomcat every time your system reboots. This way, you don't have to start tomcat manually each time system reboots.
Reference: https://www.digitalocean.com/community/tutorials/install-tomcat-on-linux

Spontaneous shutdowns in AWS EC2 instance

I have hosted a web server in an EC2 instance running Windows Server 2012 R2, and suddenly the instance became not available. I ran into the issue couple of times and when I checked the AWS Console, status of the instance has changed to Stop.
Interestingly when I checked for system logs in Event Viewer, I found this error message.
The process C:\Program Files\Amazon\XenTools\LiteAgent.exe
(EC2AMAZ-******) has initiated the shutdown of computer EC2AMAZ-******
on behalf of user NT AUTHORITY\SYSTEM for the following reason: No
title for this reason could be found Reason Code: 0x8000000c
Shutdown Type: shutdown Comment:
Any idea why it happened and what does LiteAgent.exe do?
This is Amazon's management service. This is the message you would get if someone shuts the machine down via the Web UI or if Amazon's infrastructure shut the machine down (for autoscaling etc).
If you need to know who's doing this you should consider enabling AWS Cloud Trail on the EC2 instances.

Monitor application running on docker at EC2 instance

I have nodejs application in docker on AWS EC2 instance. It exposes port. Sometimes this application terminates and I am not able to restart it automatically. What would be the best approach on AWS EC2 in order to check and restart in case of failure?
My recommendation is to use Supervisor
Very easy to install and configure. It will start the application when the system starts up and also monitors it. If the application is not running, it will start the application.
Adding a Program

GUI tools to access AWS EC2 running Ubuntu

I'm asking this here because google couldn't point me out in the proper direction. Are there any available tools for manipulating an EC2 instance via SSH using a GUI. I'm not very familiar with Ubuntu CLI commands (I actually crashed an instance by doing something over putty) so a GUI is my only option. What I actually want to do is to install a Glassfish web server on the instance. All necessary ports are forwarded (4848,8080,80).

Created Image from running instance.Now the instance not working

I have created an image from a running instance which had a web application/service running in it.But after I did this the webservice is not working,though the running instance is fine and health checks are ok.What would have happened while I made the image?Please help
When you create an image from a running EC2 instance, it will reboot by default unless you specify the "No Reboot" option. This will have interrupted your web service, depending on how you've configured it to recover from reboots.