Setting up nodeBB on dokku
-
Hey people, I am extremely new to node.js, NodeBB & dokku but I've been trying to set up a nodeBB forum on my dokku image on digital ocean and although I have set up redis to work with the app when I run --setup it fails to connect to it, anyone else using a setup like this and any pointers for getting it working. The error I get is this;
error: Redis connection to [IP ADDRESS] failed - connect ECONNREFUSED
I have redis setup and dokku has linked the container to my forum container, I pass the correct IP & port during setup but the connection fails, I'm at a bit of a loss.
-
It does seem that dokku hasn't installed redis, trying to get it set up now. Through the guides I've been following and watching dokku auto-install and configure everything else I thought having the dokku redis plugin would install redis for my container, seems that isn't the case.
-
@sp4rkr4t Do you have the ability to execute
redis-cli
from your Dokku image? If you can ssh into the server and attempt to useredis-cli
with the redis credentials, you can see if there's a problem establishing the connection from there. -
I tried to put on nodebb Doku here on this a manual (nodebb wiki link).
8 point is passed
Instead 9th - you have to install the dokker-redis-pluginEventually I got a working application on Dokku, but do not know how to make the configuration process, but I can not process console to answer the questions of the installer.
-
I rebuilt the dokku image and this time install redis-server via apt myself, then installed the dokku-redis plugin and set it up for my forum container as the plugin says, then I pushed the nodebb code and that all set up but still I cannot connect to redis during setup. This is a real shame that I cannot figure this out as I don't really want to move forward with putting the rest of my stuff in containers until I have this figured out/fixed.
-
@julian It's in a container created by the plugin which also is meant to tie it to the forum container. I think you are right that it can't interpret the address correctly as I just tried a clean install but this time with mongodb and that plugin and had the exact same issue.