rdubigny / cozy-music

Cozic, an open source music cloud
http://rdubigny.github.io/cozy-music/
Other
137 stars 19 forks source link

Error: connect ECONNREFUSED #10

Closed vizzah closed 10 years ago

vizzah commented 11 years ago

Can't make it work.

  1. Install was struggling with kontroller errors: "npm ERR! Error: No compatible version found: kontroller@'>=0.0.9'" I was able to overcome that.
  2. Now after starting server: $ coffee server.coffee Compound server listening on 0.0.0.0:9250 within development environment Track.All requests, cannot be created Error: connect ECONNREFUSED Track.byPlaylist requests, cannot be created Error: connect ECONNREFUSED Playlist.All requests, cannot be created Error: connect ECONNREFUSED

Loading the page brings error message: "Files couldn't be retrieved due to a server error.". Same error for playlists. After uploading mp3, it gets stored to /tmp and recognised:

POST /tracks controller: tracks action: create Body: {"cid":"c7","title":"*****.mp3","artist":"","album":"","track":"","year":"","genre":"","time":""}, >>> perform create <<< create [3 ms]

But then list of files remains empty.

rdubigny commented 11 years ago

Hi!

For your first point, have a look at https://github.com/mycozycloud/cozy-setup/issues/53

About your second point. I'm not sure about the reason why. I suspect old opened connexion to don't close, for example when uploadings are not completed as they should. Or maybe it's a problem with the communication between Flash and JS, I have noticed some problems on this. In all cases, the server will not be able to answer your client anymore. Try to restart your Cozy VM.

vizzah commented 11 years ago

Hi Rdubingny, Thanks for your reply. Does Cozy-music need Cozy-cloud base to operate? I am trying under assumption it is a standalone product? (but you've mentioned Cozy VM).

As soon as I start the server it comes with "connect ECONNREFUSED" before any clients connected. Where does Flash come into play here? I understand Flash might only be running on my browser, but this error happens on the server.

rdubigny commented 11 years ago

I have designed Cozic to work with the cozy data system. Maybe it could be used without it since Cozy is a Paas but you will need to make some modifications on the persistence layer.

If you just want to hack it I advise you to run it within a CozyCloud platform. Just follow the step here to install and run the cozy environment. For the "initialize your project" step don't do the cozy new command just clone this repo.

About the flash issue, I thought you managed to launch the application... I don't know much about it but I suspected it to send to many request to the server.