Browsing articles tagged with "node.js - Admins Goodies"
Jan 12, 2013
tom

Node.js WebServer on Ubuntu 12.04 not visible externally from the Internet (external IP)

Router: IP: 192.168.1.1 Host OS: Windows 7(64 bit) – IP: 192.168.1.2 Guest OS(VMware): Ubuntu 12.04 LTS(64 bit) – IP: 192.168.1.10 Guest OS has a NAT and a bridged connection via VMWare. I’m running a basic Node.js server/website listening on port 8000. Port forwarded Router with internal/external port: 8000 I can access my website on LAN(via Windows OS) but not from the any computer outside it or via the internet. Tried: (1) Disabling Ubuntu firewall “ufw”. [...]

Continue Reading »
Nov 22, 2012
tom

Node.js on via DynDNS

I have never used Node.js but since I am developing a browsergame that needs (almost) “realtime” communication, I am planning on using Node.js for this. To get started, I wanted to use a home server (normal computer) that is conntected to a dynamic IP via DynDNS. Are there the disadvantages using such a setting? What is the best way in combination with Node.js to store game status for a online game session? Asked by Azincourt [...]

Continue Reading »
Sep 9, 2012
tom

NodeJS Supervisord Hashlib

I have an problem with my NodeJS app. The problem is the include of the library Hashlib I’ve followed more than 10 times the instructions to install. Get a clone of the repo, do make and make install. NodeJS is installed in default path, and that’s the tricky point: When I launch node app.js it works, perfectly. The problem starts when I configured my Supervisord to run with the same user, with the same config [...]

Continue Reading »
Aug 25, 2012
tom

nginx: 502 bad gateway while using node.js varnish and stunnel

ive been following this tutorial: http://www.exratione.com/2012/08/websockets-over-ssl-stunnel-varnish-nginx-nodejs/ everything seems to run ok, except for my nginx setup. my node.js application runs on port 1337, varnish runs on port 80, stunnel on 443 and nginx on 8080. I can reach my app correctly when i specify the port (https://example.com:1337) but all I get when visiting https://example.com is a “502 Bad Gateway”. This is the output of my nginx log: 2012/08/25 14:13:59 [error] 6049#0: *1 no live upstreams [...]

Continue Reading »
Jun 10, 2012
tom

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 running but I’m guessing for about a few hours or so. Sometimes less. My question is where on the remote server should I be looking in order to debug this kind of issue? I’m running an Amazon Linux AMI. Asked [...]

Continue Reading »
May 22, 2012
tom

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://npmjs.org/install.sh | sudo sh It outputs: npm cannot be installed without nodejs. Install node first, and then try again.Maybe node is installed, but not in the PATH? Note that running as sudo can change envs.PATH=/sbin:/bin:/usr/sbin:/usr/bin But node is clearly installed (running node -v shows its [...]

Continue Reading »
May 21, 2012
tom

HAProxy + nginx reaching max numtcpsock in about 24 hours

I’m running a relatively simple VPS (a Media Temple (ve)) with a few PHP-based websites and (eventually) a few Node servers. In order to enable WebSockets support, I’m using HAProxy on port 80, which routes to either nginx or a particular Node process. I’ve recently run into a problem, though, where over the course of about 24 hours, my server hits the maximum allowed number of open TCP connections (numtcpsock in Parallels Power Panel, which [...]

Continue Reading »
May 20, 2012
tom

My node.js http server appears to be blocked by iptables

EDIT: Solved… There was a hardware firewall in the way! I installed node.js on a remote Debian GNU/Linux 6.0.4 (squeeze) server and ran this http server on port 8866. var http = require(‘http’);http.createServer(function (req, res) { res.writeHead(200, {‘Content-Type’: ‘text/plain’}); res.end(‘Hello World\n’); console.log(‘Someone set up us the bomb’); }).listen(8866, “0.0.0.0″); console.log(‘Server running at http://0.0.0.0:8866/’); It appears to run: node server.js root@pod:/var/www# Server running at http://0.0.0.0:8866/ But when I go to http://213.159.xxx.xxx:8866 nothing showsand it times out. [...]

Continue Reading »
May 12, 2012
tom

Can’t Install npm, Can’t Remove npm, Can’t Access Any Commands, Can’t Install Coffeescript

I am on Mac OS X Lion, I just used the package installer from nodejs.org to install node.js. Node.js is working fine, and Node.js comes with npm. I have homebrew installed as well. I am just trying to install coffeescript, but the terminal keeps throwing an error. So i decieded to check what version of npm I am running. It just keeps throwing an error. Whenever i try to use any npm command, it throws [...]

Continue Reading »
May 3, 2012
tom

How to change the command line in process list?

How does nginx appear in the process list like this? $ ps -ef | grep nginx … S 9:16 0:08.43 nginx: worker process … Ss 9:16 0:00.00 nginx: master process nginx I want to change my CLI program’s process name in node.js. Asked by guilin 桂林 In Node.js you can use change process.title to set the process’ title. Answered by Electro Check more discussion of this question. Bookmark on Delicious Digg this post Recommend on [...]

Continue Reading »
Pages:123456»