All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
337 views

AWS CloudFront 404 error on web root only - node.js with express and pug

The Setup I have a web site built on node.js, express.js, and pug.js running on an AMI Linux instance in AWS. I've given the instance an Elastic IP and if I browse directly to the generated DNS record ...
Todd Wilcox's user avatar
  • 2,861
0 votes
1 answer
228 views

Lost Local Connection to MySQL DB that resides in AWS RDS

The MySQL DB residing in AWS RDS was made to connect with resources in the same VPC. I always had to make it publicly accessible in order to connect to it through MySQL Workbench 8.0 CE in Windows 11. ...
Learning Equals Success's user avatar
0 votes
0 answers
29 views

Why cant I get any kind of traffic from my AWS EC2 instance with a public IP?

Complete beginner to networking and im trying to deploy a simple express app on a windows instance of ec2 and I cannot find a single resource that explains the steps I need to take to make it happen ...
Thugsy49's user avatar
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 ...
Vitomir's user avatar
  • 103
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 ...
Max Hudson's user avatar
1 vote
1 answer
113 views

load static IP without specifying port

I am using AWS lightsail. I cloned my git repository to my htdocs and opened port 3000 on my networking ipv4 firewall. What im trying to do is load my node site with my aws static IP. It currently ...
seriously's user avatar
  • 121
0 votes
1 answer
240 views

How do I host Node.js and WordPress sites on the same domain name with a different server?

I would like to host 2 different applications on a different server. For eg www.example.com redirected the NodeJS application - Server A & www.example.com/blog redirected the WordPress ...
Kishore's user avatar
  • 231
0 votes
1 answer
3k views

AWS Load Balancer 502 Bad Gateway

I have multiple node web servers hosted on EC2 with a Load Balancer, and some users are getting a 502 even before the request reaches the server. I don't have the logs of those requests inside the ...
soltex's user avatar
  • 101
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 ...
Cameron Honis's user avatar
2 votes
0 answers
250 views

Facilitating arbitrary code execution on AWS Lambda

I am developing a SaaS where a user will be able to upload a custom JavaScript function that runs when an event happens. In order to preserve the integrity of the system, I am using AWS Lambda to run ...
Nexuist's user avatar
  • 121
1 vote
1 answer
294 views

How to assign which user to execute commands inside the container in AWS FARGATE

i'm trying to launch a nodejs container using AWS FARGATE, the problem i'm facing is that fargate gives me this error : cannot find this module "/path/to/file/webrtc.js" And when i execute ...
logax's user avatar
  • 129
1 vote
1 answer
766 views

AWS EFS - file delete and recreate not detected programmatically for 25 to 30 seconds

I am observing a very large delay in EFS detecting that a file has been re-created i.e. deleted and then created again. In this simple test example, I have a single file that gets deleted and ...
Ben's user avatar
  • 121
0 votes
1 answer
566 views

How to stop an application started with NPM's forever start?

I started a NodeJS application with forever start app.js. The code had a bug and the server is not running and not responding. When I launch it again with npm start, I see that the port is already in ...
miguelmorin's user avatar
1 vote
1 answer
2k views

How do I send secure cookies using node and a ProxyPass/ProxyPassReverse (Httpd/Amazon linux)

I am still pretty new but I am using an Amazon linux image and httpd to encrypt and decrypt SSL requests. Then I Proxy those messages to and from a NodeJS app running on port 3001. To do this I have ...
Jackie's user avatar
  • 171
1 vote
0 answers
83 views

Encrypting communication between between Microservice in my company and AWS

I am dealing with communication between microservices. Microservice A - Angular6/django Microservice B - NodeJS My Microservice A is in company network and Microservice B is in AWS. we need to find ...
Raveendar V's user avatar
0 votes
0 answers
4k views

(111: Connection refused) while connecting to upstream, client

I'm trying to setup an Nodejs/Express api on elastic beanstalk, and I'm pretty new to it. I'm getting this message in the error.log: 2019/10/02 17:04:17 [error] 5515#0: *15 connect() failed (111: ...
schoenbl's user avatar
  • 101
1 vote
1 answer
256 views

Production-ready Node/React app - memory utilization issues

I have an app that is deployed on AWS using ECS and recently facing some issues with memory utilization. To give you a little background: Our app is Node.js (specifically Sails.js) backend with ...
Aaron's user avatar
  • 183
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 ...
V.Villacis's user avatar
0 votes
0 answers
46 views

Unable to get response from server on port other than 80

I'm currently using AWS EC2 instance My server built on node.js is running perfectly on port 80 and I get a response from API but if I switched to other port e.g. 8001 then I get no response from API....
Karthik Ashokkumar's user avatar
2 votes
0 answers
1k views

Error 200 during WebSocket handshake: Aws load balancer + ec2 websocket

I'm using load balancer in front of an aws ec2 instance(I will have more in future). In this ec2, I have a website being served by nginx on port 80, a nodejs app listening on 8080 and the websocket on ...
Sandro Benevides's user avatar
1 vote
1 answer
570 views

What is the major difference between AWS Elastic Beanstalk & Docker. Which one should i use?

I just started learning about Amazon elastic beanstalk, and it seems very good and useful. However, it seems like Docker can be used for the same thing. AWS EB let's you create environments in Node....
samceena's user avatar
  • 161
3 votes
1 answer
65 views

node js app issues after AWS Instance snapshot

I had a node.js app with nginx running totally fine on a domain i purchased. It was run on an ubuntu server and all was well. I accidentally clicked "create image" on the aws site and ever since then ...
helpimlost's user avatar
1 vote
1 answer
3k views

HTTPS in applications running on Docker in EC2/ECS

This is the first project I'm deploying in AWS and I'm really struggling with how things work. Stack Overflow wasn't the right place for this question so hopefully, this one will be. I currently have ...
Tomás Fonseca's user avatar
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 ...
Epsiloncool's user avatar
0 votes
2 answers
6k views

NGINX Set client_max_body_size For One Route on AWS Elastic Beanstalk

I have a Node.Js application deployed to Amazon Elastic Beanstalk. When uploading a file, I get the following error: 2019/03/04 17:00:42 [error] 4325#0: *722 client intended to send too large body: ...
Florian Ludewig's user avatar
1 vote
1 answer
622 views

How to setup python3, numpy, nltk in my elastic-beanstalk?

I have deployed my project in elastic-beanstack, I need to setup python3, numpy and nltk environment to it. We have a python code with python3, numpy and nltk, We are interacting to python code with ...
fernandus's user avatar
  • 143
0 votes
1 answer
743 views

How to keep an Amazon ElastiCahe Memcached/Redis before a RDS MySQL database and use ElastiCache to cache the content?

I created one cluster in ElastiCache and connected that cluster with EC2 instance. And I want to include ElastiCache in front of my RDS(MySQL database). I have two questions which are as below. 1)Is ...
Gayathri K's user avatar
1 vote
2 answers
1k views

AWS - Four load balanced t3.micro vs one t3.medium for a NodeJS API

I'm trying to decide which of the two setups would be get me more price/performance value with the consideration that I will run a NodeJS API in cluster mode: All prices are current rates for ...
muffin's user avatar
  • 111
1 vote
1 answer
427 views

Elastic Beanstalk: Update AMI + node version at the same time

We have a system that's been sitting on an old version of node for a long time and wanted to update to a newer version. Updating via the web dashboard doesn't allow you to change the node instance ...
ChrisJ's user avatar
  • 295
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 ....
Ankur Lathwal's user avatar
0 votes
0 answers
772 views

No network connection on Multiple docker container in Elastic Beanstalk

I'm trying to deploy a multiple docker container to Elastic Beanstalk. There is two containers, one for the supervisor+uwsgi+django application and one for the JavaScript frontend. Using docker-...
dfranca's user avatar
  • 135
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....
jdog's user avatar
  • 1
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 ...
andrsnn's user avatar
  • 165
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 ...
boblapointe's user avatar
0 votes
1 answer
299 views

AWS deploying strategy for cached page/app

We have a Single Page App with server-side rendering enabled. We hosted on AWS ELB. The application assets (js, css files) has a hash in the filename, to control the caching on the client/proxy ...
user1016265's user avatar
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 ...
Wayneio's user avatar
  • 121
0 votes
0 answers
63 views

Java OpenCV failure results in AWS Maxed ReadOps

I am using AWS to host some pretty heavy computer vision processing and have run into a problem that is very hard to diagnose. The image processing infrastructure is configured as a worker instance ...
Nathan Tornquist's user avatar
0 votes
1 answer
657 views

Running `npm install` in git submodule before deploy finishes in Elastic Beanstalk

My Node.js project has some git submodules (this is something that cannot be easily changed right now, so I can't use a package registry like npm) While EB will automatically init and update the ...
Henrique Barcelos's user avatar
1 vote
0 answers
869 views

Amazon Elastic Beanstalk with File Access to Amazon S3

i've a problem with my Amazon Elastic Beanstalk and Amazon S3 setup. From the EB instance i want to load a file with node (fs.readFileSync), i tried a ton of configurations - but non of them worked, ...
Michael J. Zoidl's user avatar
4 votes
1 answer
5k views

AWS Elastick Beanstalk + Node JS + HTTPS = Connection Refused

I have a node js app deployed on AWS, using Elastic Beanstalk with a single instance. It works well with HTTP but I am having trouble setting up the HTTPS access. I created my certificate and ...
ErezSO's user avatar
  • 161
-2 votes
1 answer
130 views

Site rendering differently with and without "www" [closed]

I recently developed a site, and was surprised to find that the section labeled "Transparent Pricing" shows different prices when I access the site with or without the "www." nmbs.io displays the ...
David K.'s user avatar
  • 101
0 votes
2 answers
424 views

How migrate Parse Web App to my own Server

There are a lot of manuals for migrating Parse servers to different platforms but none of them say which kind of plugins and packages are needed for those web applications which work with Expressjs on ...
AmirModiri's user avatar
1 vote
1 answer
2k views

Node path on elastic beanstalk

It seems I have node installed in this directory here on my elastic beanstalk instance, however I do not have a node command available on the system. $ ls -la /opt/elasticbeanstalk/node-install/ ...
ThomasReggi's user avatar
-2 votes
1 answer
59 views

Staging architecture on AWS

We are using AWS (EC2-classic) and I will migrate our servers to AWS VPC, we will use AuroraDB, too. Staging ENV has 8servers (Linux Ubuntu 14.04), and on these servers are running RoR & node.js ...
nex.cz's user avatar
  • 1
1 vote
0 answers
866 views

Intermittent ERR_INVALID_CHUNKED_ENCODING

I have a Node.js application running in two AWS instances behind a ELB instance. Every now and then, I get errors such as ERR_INVALID_CHUNKED_ENCODING or ERR_CONTENT_LENGTH_MISMATCH. This is observed ...
Griffith's user avatar
  • 111
4 votes
0 answers
255 views

What does Process/CPU metric in atop really mean?

I've been using the excellent atop for reviewing load test impact in detail, and the distinction between the SystemLevel/CPU metric in the top (system-wide) section and the ProcessLevel/CPU metric in ...
Dave Gregory's user avatar
1 vote
0 answers
1k views

Node.js w/ Apache, same IP, different ports. Virtual Host config breaks normal Apache (Site on 80) access?

We have clients who don’t want to open port 3000 on their firewall and our app uses that port for Node.js. Been trying to find a way to redirect port 3000 (node.js) traffic so we can bring our site ...
Patrice Otrava's user avatar
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 ...
dylanfa88's user avatar
0 votes
1 answer
124 views

Will internal API calls be treated as DDOS attacks by AWS?

I have a nodejs development server. I am currently running on an AWS EC2 micro AMI. I have a hardware device which continuously submits data to this server via socket. The server then calls an API, ...
Jaseem Abbas's user avatar
0 votes
1 answer
491 views

Installing node.js on a PHP App Server (OpsWorks)

I have a PHP App Server running Ubuntu 14.04 with a stack that contains an ELB, the server, and a MySQL RDS. All of this is working as expected, but to finalise my deployment I need to install node.js....
J Young's user avatar
  • 131