Giter Site home page Giter Site logo

Comments (12)

andrewrk avatar andrewrk commented on June 16, 2024

I'm sorry you're having so much trouble. I'll see about getting a virtual ubuntu 12.04 beta2 going today to see if I can duplicate the issue.

But anyway what's happening is it's looking for the coffee binary at ./node_modules/coffee-script/bin and is unable to find it. So something is different than I expected when writing that Makefile. One thing you can try is installing from source instead of npm - checkout the master branch of groovebasin, and do this:

sudo npm link
make
npm -g start groovebasin

from groovebasin.

kozzbc avatar kozzbc commented on June 16, 2024

I appreciate the fast reply,

So now I have cloned the git, and it linked to npm and the make both worked without error, but when I try to start GB I have a new error refering to server.js, I guess it might be missing from somewhere, Heres the last part of the error

devin@mainserver:~$ npm -g start groovebasin

[email protected] start /usr/lib/node_modules/groovebasin
node server.js

The "sys" module is now called "util". It should have a similar interface.
info - socket.io started
info - Serving at http://localhost:16242/
info - server running as user 1000
warn - bind_to_address does not have a unix socket enabled in /etc/mpd.conf. Uploading disabled.
warn - bind_to_address does not have a definition that is 'localhost' in /etc/mpd.conf. Uploading disabled.
warn - httpd audio_output not enabled in /etc/mpd.conf. Streaming disabled.
warn - recommended to turn auto_update on in /etc/mpd.conf
warn - recommended to turn gapless_mp3_playback on in /etc/mpd.conf
warn - recommended to turn volume_normalization on in /etc/mpd.conf
warn - recommended to set max_command_list_size to >= 16384 in /etc/mpd.conf
info - lastfm is enabled.
info - dynamicmode is enabled.
warn - upload is disabled.
info - download is enabled.
info - chat is enabled.
warn - stream is disabled.
info - server to mpd connect
error - [5@0] {} unknown command "subscribe"

/home/devin/groovebasin/lib/plugins/dynamicmode.js:112
new_files.push(item.track.file);
^
TypeError: Cannot read property 'file' of undefined
at DynamicMode. (/home/devin/groovebasin/lib/plugins/dynamicmode.js:112:36)
at /home/devin/groovebasin/lib/plugins/dynamicmode.js:4:61
at DirectMpd. (/home/devin/groovebasin/lib/mpd.js:196:31)
at DirectMpd.raiseEvent (/home/devin/groovebasin/lib/mpd.js:5:61)
at Object.cb (/home/devin/groovebasin/lib/mpd.js:725:17)
at DirectMpd. (/home/devin/groovebasin/lib/mpd.js:208:24)
at DirectMpd.handleMessage (/home/devin/groovebasin/lib/mpd.js:5:61)
at DirectMpd. (/home/devin/groovebasin/lib/mpd.js:236:16)
at Socket. (/home/devin/groovebasin/lib/mpd.js:5:61)
at Socket.emit (events.js:67:17)

npm ERR! [email protected] start: node server.js
npm ERR! sh "-c" "node server.js" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the groovebasin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls groovebasin
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "node" "/usr/bin/npm" "-g" "start" "groovebasin"
npm ERR! cwd /home/devin
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] start: node server.js
npm ERR! message sh "-c" "node server.js" failed with 1
npm ERR! errno {}

npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "node" "/usr/bin/npm" "-g" "start" "groovebasin"
npm ERR! cwd /home/devin
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! message EACCES, open 'npm-debug.log'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/devin/npm-debug.log
npm not ok

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

All those warnings are configuration options in /etc/mpd.conf that you should change.

But the kicker is the error - error - [5@0] {} unknown command "subscribe"

"subscribe" command is a newish feature of mpd and does not exist in the version in ubuntu's package manager. You'll have to compile mpd from source to get the latest features.

To compile mpd from source will go something like this:

git clone git://github.com/superjoe30/mpd.git
cd mpd
sudo apt-get build-dep mpd
sudo apt-get install autoconf build-essential
autoreconf .
(might be some instructions you need to follow here)
./configure
make
sudo make install

from groovebasin.

kozzbc avatar kozzbc commented on June 16, 2024

Ok great, thanks for the heads up on that, I'll try it out when I get back home and let you know how it works out, sounds prommising :)

from groovebasin.

kozzbc avatar kozzbc commented on June 16, 2024

Ok I finally had a chance to give this another try today, I was missing libtool, then I tried the steps above to compile from source again, but it was throwing errors when I ran the autoreconf . command, I did a little searching and tried with autoreconf -isfv , that worked and so did the ./configure make and sudo make install. So now when I start grovebasin with npm -g start groovebasin, I does start with a few warnings, and I can now load it in my browsers on the other pc's in my network. But I cannot start the mpd and the /etc/mpd.conf file is missing, Did it install correctly? do I need to manually launch it form my /home/user/mpd directory?

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

when you install mpd from source, you run it by running the "mpd" binary and optionally passing as a parameter the path to the conf file. Since you compiled mpd from source, you have to create the conf file - you'll want to copy it from /doc/mpdconf.example to where you want. I like to put it at /etc/mpd.conf, and I think that it will automatically find it there if you don't pass a parameter.

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

be sure to check out the warnings - they should clue you in as to what conf options to set in mpd.conf.

from groovebasin.

kozzbc avatar kozzbc commented on June 16, 2024

Great I have a copy of my last mpd.conf that I just dropped into /etc/ , But I'm not exactly sure where to find the mpd binary to launch it. I'm doing everything on a headless server distro over putty from my win machine so I dont have the luxury of a full desktop hehe

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

If you did sudo make install, it should be in /usr/local/bin.

from groovebasin.

kozzbc avatar kozzbc commented on June 16, 2024

Duhh LOL nevermind, I just figured it out, simply typing mpd in terminal starts it, I should of known better

Thanks a lot for all the help and keep up all the great work with this great project

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

Thank you, I hope you enjoy using it. Feedback welcome.

from groovebasin.

andrewrk avatar andrewrk commented on June 16, 2024

This works for me on Ubuntu 12.04.

from groovebasin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.