hbons/SparkleShare-Dashboard — Issue #37: make run leads to TypeError: Cannot read property 'port' of null
Author: cowclaw
Created: 2011-12-03 17:34:16+00:00
State: open

Hey there,

I took node from http://nodejs.org/dist/latest/ downloaded and compiled and installed it without any errors.I continued according to https://github.com/hbons/SparkleShare-Dashboard/wiki with:

$ curl http://npmjs.org/install.sh | sh

then cloned SparkleShare Dashboard with:

$ git clone https://github.com/hbons/SparkleShare-Dashboard.git
then i did
$ npm install -d
inside SparkleShare-Dashboard folder.

config.js looks like this

exports.folders = [
{ type: 'git', name: 'Private GIT folder', path: '/home/cowclaw/sparkleshare', pub: false }
];

exports.listen = {
port: 3000,
host: null
};

exports.https = {
enabled: false,
key: '/path/to/private.key',
cert: '/path/to/cert.crt'
};

exports.basepath = '';
exports.externalUrl = null;

// 300 sec
exports.linkCodeValidFor = 300;

// none | min | info | debug
exports.logging = 'debug';

Everything looks ok to me...

but running make run or make rundev leads to:

~/Downloads/SparkleShare-Dashboard$ make run
NODE_ENV=production node app.js

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'port' of null
at Object. (/home/cowclaw/Downloads/SparkleShare-Dashboard/app.js:508:84)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
make: *** [run] Fehler 1

I googled for the error, but didn't find anything helpful. So, any help is appreceated...

Thanks in advance:

btw:
it's debian with a 2.6.18 kernel
node is 0.6.4

if you need any additional information, just tell me