All Questions
36
questions
0
votes
1
answer
500
views
my nginx server was working perfectly fine and now shows a 502 error
I'm deploying my project,
I had no problem until i decided to buy a domain for my digital ocean droplet
i added the records from my namecheap domain to my droplet
i was working on it then suddenly ...
0
votes
0
answers
311
views
NodeJS stops listening on port 443
We are having a big problem with nodejs intermittently not listening on port 443. Development claims that this is because node cannot connect to the Mongo database. However, when I get an alert the ...
0
votes
2
answers
622
views
High availability with round robin - rsync and DB replication or a cluster?
I have one machine (centos7) with Apache, PHP, MariaDB and Nginx, Nodejs, MongoDB installed and being used by many different domains.
I'd like to create a working mirror and can't decide between 2 ...
0
votes
0
answers
2k
views
how to connect to mongodb server via ssh tunnel with Proxy Jump (ProxyCommand)
I have an ssh config file like this.
I have a proxy jump to host1 from test2.
Host host1
Hostname xxxxxx.us-east-1.elb.amazonaws.com
Port 2222
User xxxx
IdentityFile ~/.ssh/cert
...
0
votes
0
answers
49
views
Connect Nodejs app to MongoDB Via Azure
I have a nodejs application and my organization is using mongodb but via azure which I'm not too familiar with. I usually just go on the mongodb website and then go to the 'connect you application' ...
0
votes
1
answer
1k
views
Error in Node.js / Ubuntu 20 server configuration: 111 Connection refused
I get these three lines of errors when I refresh my page:
2020/10/07 16:38:55 [error] 315270#315270: *7 connect() failed (111: Connection refused) while connecting to upstream, client: 66.249.66.221, ...
0
votes
1
answer
345
views
Can this inbound & outbound bandwidth of my server cause issues?
I have a social app where users do the usual stuff of other social apps; upload multiple text and photo posts every hour, like & comment (a notification is created for each action), view custom/...
2
votes
0
answers
91
views
How do I create a web dev environment using a linux command line without a GUI/OS? [duplicate]
Sorry if this is a stupid question or it doesn't make sense.
Basically what I'm trying to do is put my local web development project (using Nodejs/Express and MongoDB) onto a server that only ...
3
votes
3
answers
9k
views
Unable to reach primary for set Cluster0-shard-0
I've set up a MongoDB cluster on Atlas and have been able to connect to it from Compass and a NodeJs app I'm building for about a week. today I started getting consistently the "transient" error ...
0
votes
1
answer
1k
views
How to serve wordpress (LAMP) and Angular (Node/Express) app on same server/domain
I'm currently running a web server with Ubuntu 16.04, serving up a Wordpress site, using LAMP stack and LetsEncrypt SSL to encrypt the website. I'd like to be able to run an Angular app with the MEAN ...
1
vote
0
answers
142
views
how to connect to mongo replica cluster which is ssl/tls enabled?
I have three mongo instance(Replicaset) with ssl/tls i.e I have 3 pair of key and cert. Which pair should be used in the Node js connection string ? Is there a way to add all 3 key&crt pair. I ...
2
votes
0
answers
569
views
PM2 running but socket.io stops responding at times
I am using a hostgator vps with apache, for backend, I am using node.js and socket.io, it works fine but at times it just stops working. Pm2 is showing it online but it just stops responding.
Can ...
0
votes
1
answer
678
views
Could not login to docker container
I am trying to run my node.js app and mongodb using docker compose. I could setup the containers successfully as follows. The site is also working. But I could not login into the containers.
docker ...
0
votes
1
answer
160
views
Would a hpc and/or shard mongo cluster solve my system bottle neck?
OK so I have an application running on Node.js on the same desktop system that is running my mongo service. I have a certain query that takes about 20 seconds to complete, this entire system ...
2
votes
1
answer
5k
views
Best way to handle 'MongoError: failed to connect to server on first connect' in Mongoose
In this GitHub issue for mongoose the developer stated that it is intended behaviour to crash the Node.js process if the initial database connection to MongoDB fails. It does this instead of trying to ...
0
votes
1
answer
115
views
Node.js not talking to Mongodb
I inherited a server, and the original admin team is no longer around. We have a live server that is working, but I'm trying to successfully convert it to an AMI for AWS scaling.
The clones work, ...
4
votes
1
answer
658
views
Debugging Node.js disk I/O and CPU spikes
I'm running a Node/Meteor/Mongo app on Ubuntu (on a Digital Ocean 1GB droplet), and I've been seeing some weird disk I/O spikes, which are then followed by CPU spikes:
I was wondering:
If that ...
1
vote
3
answers
533
views
Run a shell command on ubuntu/nginx boot
I have a ubuntu 13 running nginx and node.js, to start mongodb I need to run on command line:
mongod --config /etc/mongodb.conf
Problem is that when I exit terminal, it stops, how can I add this to ...
-1
votes
1
answer
1k
views
Sending many record on client startup. Nginx 502 bad gateway too many open files
I have nodejs app that sending > 800 mongodb documents on client startup (execute only when a client access my app for the first time).
Nginx as reverse proxy in front of node server.
App server ...
0
votes
1
answer
2k
views
Edit edit /etc/mongo.conf and uncomment "auth=true"
I am trying to disable the auth, and many places tell em to
nano /etc/mongo.conf and uncomment "auth=true"
Yet there is no config file there. I have tried also
edit /etc/mongod.conf
and there ...
2
votes
2
answers
678
views
Gearman writing "Too many open files" into the log. Disk space issues
We're running a service that makes screenshots of URL supplied and posts it to our S3 bucket. Similar to manet, but our custom coded nodejs app. We don't store the screenshots on our local hard drive. ...
0
votes
1
answer
1k
views
How to allocate more resources to Node.JS process?
I'm not a (very good) back-end developer so understanding processes and memory are a little about my pay grade.
I'm currently building an app using the MEAN stack. I have a separate Express server ...
0
votes
0
answers
12
views
ExpressJS + MongoDB: Better to make one API call with 10,000 objects, or 10,000 individual API calls? [duplicate]
I'm building an app that relies on a web scraper built in Node/Express, which operating on the same localhost as my front-facing Node/Express app.
I'm trying to optimise as much as possible and I'm ...
0
votes
0
answers
417
views
Random mongo shutdown
I had mongo randomly shutdown on one of my servers today and I was wondering if anyone could take a look at the logs below and tell me what might have happened. The server is hosted on digital ocean ...
1
vote
1
answer
2k
views
MongoDB high CPU usage
Running MongoDB 2.4.11 on Ubuntu 14.04.1 LTS
In top, this mongod thread is constantly using ~195% CPU:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24524 mongodb 20 ...
0
votes
1
answer
575
views
mongoose/mongodb DoS-ing a nodeJS instance [closed]
We have a nodeJS instance inside a AWS VPC that makes a request to a mongodb instance running in another availability zone.
The node instance is hit with a particular request a lot. That request is ...
0
votes
1
answer
2k
views
MongoDB Failover Replica Set
I'm newbie to mongodb replica sets and sharding..
I am setting up IP Failover on two servers. I set up DNS failover at AWS route 53 to switch the IP address in case the main server goes down. I also ...
0
votes
2
answers
2k
views
Problems with running a node.js application using mongoDB on a VPS running CentOS
I have registered a VPS with DirectAdmin, running CentOS and I'm using a domain which I registered from a different site. I've done the necessary configuration to make the domain display the default ...
12
votes
3
answers
8k
views
node.js, mongodb, redis, on ubuntu performance degradation in production, RAM is free, CPU 100%
As the question title suggests, I'm having an hard time to figure out what can be improved on my application(or tuned in the os, ubuntu) to achieve an acceptable performance. But first I'll explain ...
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 ...
2
votes
2
answers
705
views
Unsure of how to setup two Virtual Machines on Windows Azure to match my desired architecture
I'm in the process of trying to setup a couple Win2008 Server Virtual Machines on Windows Azure (using the VM Preview feature) and I'm not sure how to get my desired "architecture" setup properly. ...
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 ...
4
votes
2
answers
6k
views
I need nodejs and mongodb to handle 5000 requests per second
As the title suggested, I need nodejs and mongodb to handle 5000 requests per second. Right off the bat that is. We'll grow to many times that eventually.
My initial thoughts are to put each on ...
0
votes
3
answers
140
views
Local computer for serving a web app via LAN [duplicate]
Possible Duplicate:
How do you do Load Testing and Capacity Planning for Web Sites
I'm planning to create a "voting tool" to help votation in a conference of my NGO.
My idea would be to create ...
1
vote
1
answer
857
views
MongoDB: Fixing ReplicaSet Error on reconfig - "Server::doWork task:rs Manager exception:unauthorized db:local lock type:2 client"
Question: How do I fix my servers and get them back to the normal ReplicaSet with no error messages?
I'd offer a serious bounty, but all my points are on SO :(
Details of the Problem
I'm running a ...
2
votes
1
answer
362
views
Analytics + download tracking
So I'm in a bit of a sticky situation.
I really like Mint, which I'm currently using for my analytics. Google Analytics wasn't cutting it, because I need real time info. Now, I'm outgrowing Mint a ...