GeReV / mpdisco

A team-controlled music server based on mpd.
http://gerev.github.io/mpdisco/
MIT License
27 stars 8 forks source link

Error on running index.js #21

Closed lunaleaps closed 10 years ago

lunaleaps commented 10 years ago

After a brew install mpd and mpdisco, I attempted a node index.js to receive the following error:

 :: Express :: Listening on port 3000
   info  - socket.io started

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: connect ECONNREFUSED
    at errnoException (net.js:901:11)
    at Object.afterConnect [as oncomplete] (net.js:892:19)

Am I missing a set-up step?

lunaleaps commented 10 years ago
└─┬ mpdisco@0.2.1
  ├── clah@1.2.1
  ├─┬ connect@2.7.11
  │ ├── buffer-crc32@0.2.1
  │ ├── bytes@0.2.0
  │ ├── cookie@0.0.5
  │ ├── cookie-signature@1.0.1
  │ ├── debug@0.8.1
  │ ├── fresh@0.1.0
  │ ├── pause@0.0.1
  │ ├── qs@0.6.5
  │ └─┬ send@0.1.1
  │   ├── mime@1.2.11
  │   └── range-parser@0.0.4
  ├── consolidate@0.9.1
  ├── cookie@0.1.2
  ├─┬ express@3.8.1
  │ ├── buffer-crc32@0.2.1
  │ ├─┬ commander@1.3.2
  │ │ └── keypress@0.1.0
  │ ├─┬ connect@2.17.3
  │ │ ├── basic-auth-connect@1.0.0
  │ │ ├─┬ body-parser@1.2.2
  │ │ │ └── raw-body@1.1.6
  │ │ ├── bytes@1.0.0
  │ │ ├─┬ compression@1.0.2
  │ │ │ ├── bytes@0.3.0
  │ │ │ ├── compressible@1.0.1
  │ │ │ └── negotiator@0.4.3
  │ │ ├── connect-timeout@1.1.0
  │ │ ├── cookie-parser@1.1.0
  │ │ ├─┬ csurf@1.2.0
  │ │ │ ├── scmp@0.0.3
  │ │ │ └── uid2@0.0.3
  │ │ ├── errorhandler@1.0.1
  │ │ ├─┬ express-session@1.2.1
  │ │ │ ├── uid2@0.0.3
  │ │ │ └── utils-merge@1.0.0
  │ │ ├── method-override@1.0.2
  │ │ ├── morgan@1.1.1
  │ │ ├─┬ multiparty@2.2.0
  │ │ │ ├─┬ readable-stream@1.1.13-1
  │ │ │ │ ├── core-util-is@1.0.1
  │ │ │ │ ├── inherits@2.0.1
  │ │ │ │ ├── isarray@0.0.1
  │ │ │ │ └── string_decoder@0.10.25-1
  │ │ │ └── stream-counter@0.2.0
  │ │ ├── on-headers@0.0.0
  │ │ ├── pause@0.0.1
  │ │ ├── qs@0.6.6
  │ │ ├── response-time@1.0.0
  │ │ ├── serve-favicon@2.0.0
  │ │ ├─┬ serve-index@1.0.3
  │ │ │ ├── batch@0.5.0
  │ │ │ └── negotiator@0.4.3
  │ │ ├── serve-static@1.1.0
  │ │ ├─┬ type-is@1.2.0
  │ │ │ └── mime@1.2.11
  │ │ └── vhost@1.0.0
  │ ├── cookie-signature@1.0.3
  │ ├── debug@0.8.1
  │ ├── fresh@0.2.2
  │ ├── merge-descriptors@0.0.2
  │ ├── methods@1.0.0
  │ ├─┬ mkdirp@0.5.0
  │ │ └── minimist@0.0.8
  │ ├── parseurl@1.0.1
  │ ├─┬ proxy-addr@1.0.0
  │ │ └── ipaddr.js@0.1.2
  │ ├── range-parser@1.0.0
  │ └─┬ send@0.3.0
  │   ├── debug@0.8.0
  │   └── mime@1.2.11
  ├── formidable@1.0.14
  ├─┬ handlebars-precompiler@1.0.4
  │ ├── file@0.2.2
  │ ├─┬ handlebars@1.0.12
  │ │ ├─┬ optimist@0.3.7
  │ │ │ └── wordwrap@0.0.2
  │ │ └─┬ uglify-js@2.3.6
  │ │   ├── async@0.2.10
  │ │   └─┬ source-map@0.1.33
  │ │     └── amdefine@0.1.0
  │ ├── lodash@2.4.1
  │ └── uglify-js@1.2.6
  ├── mkdirp@0.3.5
  ├── mpd@1.0.2
  ├─┬ musicmetadata@0.2.7
  │ ├── buffer-equal@0.0.0
  │ ├── drag-and-drop-files@0.0.1
  │ ├── filereader-stream@0.0.1
  │ ├── strtok2@1.0.1
  │ └── through@2.3.4
  ├─┬ node-sass@0.5.4
  │ ├── colors@0.6.0-1
  │ └─┬ optimist@0.4.0
  │   └── wordwrap@0.0.2
  ├── node-uuid@1.4.1
  ├─┬ socket.io@0.9.17
  │ ├── base64id@0.1.0
  │ ├── policyfile@0.0.4
  │ ├── redis@0.7.3
  │ └─┬ socket.io-client@0.9.16
  │   ├─┬ active-x-obfuscator@0.0.1
  │   │ └── zeparser@0.0.5
  │   ├── uglify-js@1.2.5
  │   ├─┬ ws@0.4.31
  │   │ ├── commander@0.6.1
  │   │ ├── nan@0.3.2
  │   │ ├── options@0.0.5
  │   │ └── tinycolor@0.0.1
  │   └── xmlhttprequest@1.4.2
  └── underscore@1.4.4
GeReV commented 10 years ago

I admit I never tested it on a Mac, but I'll look into it.

But since it's a "connection refused" error, it would make sense if it's a configuration error. Possibly regarding mpd's configuration of port, or username/password.

GeReV commented 10 years ago

@lunaleaps, found this wiki article that got it running for me on an OS X machine:

http://mpd.wikia.com/wiki/Mpd_on_OS_X_Snow_Leopard

Note that after performing these steps you'll still need to run mpd in the console.

Thanks for the report and enjoy :)