saeedvaziry / spotdl

Simple Spotify Downloader
27 stars 3 forks source link

Crash on startup #1

Closed Wengiel31 closed 5 years ago

Wengiel31 commented 5 years ago

npm install, then node server gives:


  Press CTRL-C to stop

events.js:180
      throw er; // Unhandled 'error' event
      ^

Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14)
Emitted 'error' event at:
    at RedisClient.<anonymous> (C:\Users\Wengi\Desktop\spotdl-master\node_modules\kue\lib\redis.js:65:13)
    at RedisClient.emit (events.js:203:13)
    at RedisClient.on_error (C:\Users\Wengi\Desktop\spotdl-master\node_modules\kue\node_modules\redis\index.js:401:14)
    at Socket.<anonymous> (C:\Users\Wengi\Desktop\spotdl-master\node_modules\kue\node_modules\redis\index.js:279:14)
    at Socket.emit (events.js:203:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 6379
}
saeedvz commented 5 years ago

Did you created .env file on project root? There is .env.example. You can rename it to .env and modify content

Wengiel31 commented 5 years ago

Did you created .env file on project root? There is .env.example. You can rename it to .env and modify content

Wall, no I didn't, BUT after doing it I get the same error :/

saeedvz commented 5 years ago

Make sure that you have python3 and https://github.com/ritiek/spotify-downloader installed

saeedvz commented 5 years ago

Also install redis-server on your OS

Wengiel31 commented 5 years ago

I didn't know that I had to install Redis :P . Now everything is working.

For others:

Don't forget to edit the ".env" file afterwards and set "REDIS_URL" port to the one that You've chose while installing Redis.

saeedvz commented 5 years ago

Readme updated.