All Questions
Tagged with node.js amazon-ec2
49
questions
0
votes
1
answer
1k
views
How to configure AWS Application Load Balancer to point to multiple ports on the same server
I cannot get access to the second port that I want to have to. So, here are the listeners I have in my ALB:
HTTP:80 - that does not have security policy or SSL cert but it is always redirecting to ...
1
vote
1
answer
226
views
NGINX Hosting multiple servers in same domain
I have a website being served by Nginx and I'm trying to do something that I don't know if it's possible the way I'm trying to do but the case is:
I have Application A and B made with React / Node.
...
1
vote
1
answer
42
views
System architecture for storing sensitive data separately without single point of access
We're building a SaSS platform with support for integrations. Each client has multiple integrations. We'd prefer not to store these integration tokens in a centralized location, where there's a single ...
0
votes
1
answer
569
views
Error connection refused MERN APP on EC2
I have MERN app on ec2 i am getting an error ERR connection refused when connecting localhost:8080/api/auth/sign with node api. Cannot make post calls.
What should I do?
0
votes
1
answer
1k
views
Nginx return 500 Internal Server Error
Last night I was trying to upload photo on my website and I get error
I trying to do console.log but they didn`t show anything.After some re-search I notice that disk usage of my server is full so I ...
0
votes
2
answers
439
views
Persist server on AWS EC2 instance
I am able to run my node server on an EC2 instance by SSH-ing into the server and running the command node index.js when inside of the src file. The server works fine, but the issue is that I have to ...
1
vote
0
answers
76
views
Deploying two applications on the same instance with clustering
I am trying to deploy two applications listening on different ports on the same instance (a Next.js application along with a Node.js API server). I will use a reverse proxy to route traffic to them ...
4
votes
1
answer
2k
views
AWS EC2 SSH connection disconnects after some times and then starts throwing connection timed out error on every SSH connection request
I've created an ec2 instance and a ssh-rsa keypair. I then try to connect with the instance using visual studio code remote-ssh extension. In the first try, it connects successfully. I can access ...
0
votes
0
answers
394
views
EC2 Instance with node pm2 keeps breaking my instances ssh
Update:ok weird so my instance public dns seemed to change? is that possible, now I can ssh in after changing to the new one. still can't ssh in from the browserbased connection tho.
I have a ec2 t2....
1
vote
1
answer
1k
views
Cloudfront disrupting authentication with JSON Web Token
Short version: my jwt token is not surviving a refresh when pointing to domain behind Cloudfront.
Not sure if this is best posted here or on stackoverflow, but since I think I've isolated the problem ...
0
votes
1
answer
104
views
I have an AWS Elastic Beanstalk - Node.js running on 64bit Amazon Linux/4.10.2. What server is it running?
When I ssh into the EC2 instance and look around the server configuration files, I see Apache config files, NGINX config files. Why are both servers there? Which one takes priority? Do both servers ...
2
votes
1
answer
4k
views
This site can’t provide a secure connection when deploying node app on aws ec2
i have simple nodejs app running on ec2 instance, when tried to access the app from browser using "ec2-18-223-0-201.us-east-2.compute.amazonaws.com:4545 refused to connect."
it give me
This site can’...
1
vote
1
answer
237
views
Developing with Git and SSH access on AWS Elastic Beanstalk
We are using EC2 to develop one of our application and we are using Git and SSH to access our EC2 server and deploy files. Unfortunately, AWS breaks some data, changes IP addresses and make other ...
0
votes
2
answers
2k
views
CNAME to CloudFront: Read actual browser URL server-side
I'm trying to read the actual browser URL server-side (Node.js), but is getting the EC2 instance url.
I have a setup consisting of a Node.js application running on EC2 with a Cloudfront distribution.
...
0
votes
0
answers
692
views
Server hanging, can't connect to site until AWS instance is restarted
Our website has been having down time issues lately which seems to be caused by a lack of server resources considering the site crashes only when the servers cpu utilization reaches 100%. During this ...
0
votes
1
answer
85
views
Deploy Node project locally on ec2 machine
I have a ec2 Linux-16.04 machine, and Jenkins is installed on it.
I would like to have a Jenkins job to deploy my Node server on the same machine under another user.
What would be the best approach?
1
vote
0
answers
234
views
ssl files: Nginx works but Nodejs https module does not?
I have a Node instance running on an EC2 instance. I just got my ssl certificate, private key and ca-bundle. so I put them in Nodejs like:
var options = {
key: fs.readFileSync("/path/to/private/key"...
2
votes
1
answer
2k
views
How to manage node.js forever logs on AWS EC2?
I have a Node.js application running on AWS EC2 ubuntu server in which I use 'forever' module to keep the app running. I also utilize the logging done by forever (which it dumps to a file in the ....
0
votes
1
answer
2k
views
How to get node app running on Amazon EC2 instance to start on reboot?
So I have Node/Express app running on an Amazon Linux Ec2 instance (VPC). The path to my node app is as follows /home/ec2-user/server/server.js
If I run which forever I get
~/.nvm/versions/node/v6....
3
votes
2
answers
2k
views
Should I worry about hanging sockets when setting keep-alive timeout to Infinity?
Some initial context to this question. Currently I have a application cluster deployed behind a ALB which maintains persistent keep alive connections with the application. This application is under ...
1
vote
2
answers
172
views
Is it possible to share a node js source code with multiple EC2 instances?
I have a small fleet of EC2 servers that all run the same nodejs app. Deploying an update is painful: create an new AMI, terminate old instances, launch new instances.
Is it possible to centralize ...
0
votes
0
answers
1k
views
Amazon EC2 Nodejs port issue
I have opened port 80 on my EC2 instance. I have Apache installed, node 8.1.4 is installed on the instance, my files are deployed and node packages installed. But when my server starts (sudo node ...
1
vote
2
answers
2k
views
EC2 AWS Instance not building bcrypt dependency
I'm posting this here as it's clearly a server configuration issue rather than a code issue.
I've got an application working on my local Windows PC, however when trying to run:
npm install bcrypt
...
1
vote
2
answers
966
views
Node.js app on ElasticBeanstalk cannot access private key file on server
I have a node.js application running on ElasticBeanstalk. Part of it's configuration is a path to a .p12 key file. When the application attempts to use the key file, a permission denied exception is ...
1
vote
0
answers
3k
views
ERR_CONNECTION_REFUSED Amazon EC2 instance with node.js backend
I have a website running in Elatic Beanstalk. In default-environment url, it is working totally fine. But, when I try to access it with my domain from GoDaddy it is showing ERR_CONNECTION_REFUSED. I ...
2
votes
1
answer
3k
views
AWS Elastic Beanstalk - Node not found after creating NodeJS instance
Using AWS Elastic Beanstalk I chose to launch an instance that runs NodeJS. EC2 instance launched but when I check what version of node is running I get this:
node --version
-bash: node: command ...
5
votes
0
answers
1k
views
Node.js Server with PM2 Crashing with error ENOMEM - but no memory leak
I have an EC2 instance running a node.js server (Express based).
After deploying in a new environment, my service had started crashing almost instantly with spawn ENOMEM Errors like this one:
...
4
votes
1
answer
3k
views
SSL - Apache and Node.js on the same Amazon EC2 instance
I hosted my website on an EC2 instance, using Apache. SSL was also set up properly, running on HTTPS, port 443.
Currently, I just added a chat application to the website using Node.js + socket.io. ...
4
votes
2
answers
2k
views
Auto-scaling docker containers based on EC2 instance load and SQS
I'll start with a small description of how my application works..
If a user on my website adds a task, the task is broken down into multiple sub-tasks, the number can vary from 1 to 10 tasks. These ...
0
votes
0
answers
524
views
forward subdomain with route 53 to ec2 instance with node js
I have node js serving both root site (non prefix) and app.mydomain with node js subdomain npm .
how can I point to both of them using Route 53? as for now the root domain get request's from Route 53 ...
4
votes
1
answer
2k
views
Can't install PM2 services via Ansible on an Ubuntu EC2 instance
I'm using Ansible to create a pm2 service on a EC2 / Ubuntu instance. Below is the script. When I run it, PM2 is installed and the service is enabled. When I run pm2 list, I don't the see the ...
0
votes
1
answer
866
views
AWS: authorizeSecurityGroupIngress within a VPC
I'm using the NodeJS SDK to add an inbound rule to a db security group from a db-access security group.
Both of these security groups exist within a VPC, however when I add the ingress rule using
...
1
vote
1
answer
4k
views
How do you get multiple ports working with nginx proxy_pass and Node Express?
I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
0
votes
0
answers
492
views
Configuring NGINX with SSL and Node.js on CENTOS 6 in EC2
I'm trying to deploy a Node.js web-app on a Centos EC2 instance with an elastic IP.
The SSL certificate is already setup and properly configured.
I would like to allow only https connection to my app, ...
0
votes
2
answers
976
views
node.js hello world server on amazon EC2
As a lead in to deploying the Ghost blogging platform, I am checking that node.js can be deployed on my Amazon EC2 instance with Ubuntu 13.04
The Ghost Github page even gives step by step ...
0
votes
1
answer
6k
views
How can I run Apache Tomcat and Node.JS servers at the same time?
I'll give you an example of what I want: Let's pretend my domain is domain.com for now. My server machine is a Linux (Ubuntu). I'm currently running Tomcat as my server on ports 80 and 8080. I have ...
0
votes
1
answer
2k
views
Run sh file when Amazon EC2 instance starts
I have a "sh" file that starts a node server.
It works well if I run
sh /var/www/init_node.sh
I want the script to run everytime my instance restarts (so I have a node server up and running).
I ...
-1
votes
1
answer
270
views
What type of amazon ec2 instance should i take ? And how many of them? [duplicate]
I will be hosting a website . Our initial target will be around 50,000 unique visitors a day . Files are served using apache/php and the realtime events (likes,comments) are handled using a nodejs ...
0
votes
1
answer
3k
views
What causes SocketException (9001) handling request in node.js app and MongoDB ReplicaSet?
I have a simple node.js application that makes a single call connection call to my ReplicaSet. Things were actually working fine earlier today and nothing was changed in the application, now my ...
1
vote
1
answer
3k
views
Why is my nodejs application with forever not starting with Upstart on EC2 instance?
I am trying to start a nodejs application with forever (forever simply restarts the program if it crashes), but forever itself is not auto started on boot. So I am using upstart to initialize forever.
...
2
votes
1
answer
1k
views
diagnosing mongodb major faulting and erratic behavior
We have a mongodb instance running on an amazon ec2 large (7.5GB) ubuntu instance (same machine that our node.js server is running from). Traffic has increased a LOT recently and we are starting to ...
1
vote
1
answer
2k
views
Node app crashes after a while on micro EC2 instance even with supervisor
I'm using supervisor to start my node.js application on a micro EC2 instance. However, the app only stays running for some time until it eventually shuts down. Not exactly sure how long the app stays ...
4
votes
1
answer
4k
views
Trouble with installing npm and supervisor package on Amazon Linux AMI
I'm running an Amazon Linux AMI and successfully installed node.js by wget'ing the source, untarring the file, and running ./configure and then sudo make install. When I installed npm:
curl http://...
2
votes
1
answer
8k
views
How should I use sudo from an upstart script?
I am using upstart to run my node.js app on an Amazon Linux AMI EC2 instance. I have had a few issues getting it to work, summarized below.
In my script I had a line like this:
exec sudo -u www /...
1
vote
1
answer
3k
views
Node.js Amazon EC2 example webserver - no result
If I run the basic nodejs.org example on my Amazon EC2 Server, I get the message "Server running" in the console. But if I try to open it in a browser, using my elastic IP + the port, I get no result.
...
2
votes
1
answer
3k
views
Ubuntu Upstart job - "stop" is not recognized command
I need some help with this; endless upon endless scripts look exactly the same -- yet I can't seem to stop the job associated with an upstart script. I'm using any of the newest Ubuntu Elestic AMIs ...
4
votes
1
answer
4k
views
Set up websocket server on Amazon Linux AMI using Node.js
I have been having issues for a few days trying to set up a simple websocket server on an Amazon EC2 instance. I am using a micro instance of Linux. After booting up for the first time, I updated all ...
1
vote
1
answer
263
views
With a node.js powered server on EC2, how can I decrease the TCP connection time?
While profiling my application I've noticed that in the Firebug Net panel, the "Connecting" time—that is the time waiting for a TCP connection—is consistently around 70–100ms. See image below:
Of ...
0
votes
2
answers
1k
views
Any chance to install npm without root access?
I'm using EC2 with their Amazon Linux AMI. There is no way to login as root for security reasons. I installed node.JS with no problem but failed with the Node Package Manger. When using curl without ...