-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Error connecting Etherpad-lite to Redis database #4693
Comments
Looks like the docs just need an update for correct redis config? Can you do that please @sbutler-gh ? |
@JohnMcLear when I posted this issue, I added an update to this documentation page. Is that what you had in mind? Anything else? |
Reading the code, it looks like the fix is required here: Testing in ether/ueberDB#182 |
Give that a test @sbutler-gh - you will need to clone the ueberdb directly into etherpad/node_modules and do an npm install etc. -- I wouldn't test it on your production site tho, defo test on a throwaway instance 📦 |
@JohnMcLear I went through the links, looks like a fix got identified and committed? I could test locally with ueberdb if it's important (for you/the project), but I'd need more of a step-by-step instruction for how to do that. To be clear, I'm not really concerned with my own instance in this case because I got these working already, so just let me know what would be preferable |
I think we're good to close this w/ the @rhansen fixes and the change to settings handle things should be better for Redis users now :) |
When attempting to configure a Redis database with the following format (from this documentation):
I repeatedly got this error:
I encountered this error after with both Docker and non-Docker installations (settings.json.template and settings.json.docker)
While troubleshooting, I came across the discussion of setting values of HOST / PORT in this thread, which set me on the right path.
In the end, I updated the DBsettings in the settings.json.docker file according to the format in line 29 of this file: https://github.com/NodeRedis/node-redis/blob/master/lib/createClient.js
So the DB section of my settings.json.docker now looks like this:
^ And that format has ended up working for me, when I run Etherpad in a docker container.
I'm not quite sure what the issue was with the original formatting, although this might be helpful to include in the documentation for Redis configurations
The text was updated successfully, but these errors were encountered: