Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i try to run the server #25

Open
yorivor opened this issue Jun 26, 2020 · 6 comments
Open

when i try to run the server #25

yorivor opened this issue Jun 26, 2020 · 6 comments

Comments

@yorivor
Copy link

yorivor commented Jun 26, 2020

npm run run:server

[email protected] run:server C:\git\video-chat
node ./server/index.js

Server Listening on port 3000
events.js:173
throw er; // Unhandled 'error' event
^

Error: Redis connection to localhost:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1083:14)
Emitted 'error' event at:
at RedisClient.onError (C:\git\video-chat\node_modules\socket.io-redis\index.js:118:12)
at RedisClient.emit (events.js:202:15)
at RedisClient.on_error (C:\git\video-chat\node_modules\redis\index.js:406:14)
at Socket. (C:\git\video-chat\node_modules\redis\index.js:279:14)
at Socket.emit (events.js:197:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at processTicksAndRejections (internal/process/next_tick.js:76:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] run:server: node ./server/index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] run:server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rovi.cruz.PH\AppData\Roaming\npm-cache_logs\2020-06-26T05_40_38_619Z-debug.log

@adrigardi90
Copy link
Owner

Do you have redis up and running in your local? Starting up the app via npm run run:server just run the node process. Try to run it via docker-compose to check whether you still get the same issue.

@mpena2099
Copy link

Exactly the same error here. :-/

@mpena2099
Copy link

After install "redis":

$ npm run run:server
I see "Cannot GET /" on http://localhost:3000/

$ npm run serve
I got the same "Something went wrong" error as in #28 .

@adrigardi90
Copy link
Owner

Bear in mind npm run run:server and npm run server just run the node process assuming redis is already up and running.

Check this out to get it running.
https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298

@mpena2099
Copy link

mpena2099 commented Jan 25, 2021

Bear in mind npm run run:server and npm run server just run the node process assuming redis is already up and running.

Check this out to get it running.
https://medium.com/@petehouston/install-and-config-redis-on-mac-os-x-via-homebrew-eb8df9a4f298

Thanks @adrigardi90 , that probably was my mistake. At the moment the only thing that still doesn't work is the video, when I try to access the server by local IP (192.168.0.43) and not by localhost, as I indicated in issue #10 .

@alfonsoIST
Copy link

@mpena2099 I had the same problem you mentioned with the video and solved it using https.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants