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

Unable to connect to Redis server on localhost:6379 when running app.py from Worker Directory #96

Open
a-verma26 opened this issue Mar 16, 2023 · 0 comments

Comments

@a-verma26
Copy link

a-verma26 commented Mar 16, 2023

When trying to run app.py from the Worker Directory on my Mac M1 for the Scan8 project, I encountered an error.
The error occurred after installing Redis server and other dependencies and it prevented the app.py from starting.
However, I did not install Redis server earlier as I only installed Redis.

The Error message:
ConnectionError: Error 8 connecting to localhost:6379. nodename nor servname provided, or not known.

Solution:

The "ConnectionError: Error 8 connecting to localhost:6379" error is related to the connection to the Redis server failing. This error can occur when the maximum number of open file descriptors has been reached and the operating system is unable to create new connections.

By using the ulimit -n 1024 command, the open file limit is increased to 1024 for the current shell session. This allows more connections to be created, which can solve the "ConnectionError" issue when connecting to Redis.

However, this is not a permanent solution as the open file limit will reset when a new shell session is started. By adding the ulimit -n 1024 command to the shell startup file, the open file limit will be increased permanently and the "ConnectionError" issue should be resolved for future shell sessions.

Please assign me this issue @Ammoniya @maanas-talwar

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

1 participant