node-redis-server icon indicating copy to clipboard operation
node-redis-server copied to clipboard

Open-promise never resolved if .conf file contains logfile

Open sebastiansondergaard opened this issue 8 years ago • 3 comments

Hi.

We tried to use the redis-server package to start a local redis instance configured by a .conf file.

We can successfully start an instance if we don't specify any logfile in the .conf file. But when it's specified redis is started and creates a logfile as expected but the open-promise is never resolved.

We attached the .conf-file which is causing the issue and hope that you can clarify the issue for us.

Best regards Sebastian and Martin redis.conf.txt

sebastiansondergaard avatar Feb 20 '17 13:02 sebastiansondergaard

Thanks for the report. I'll have a look.

BrandonZacharie avatar Feb 20 '17 15:02 BrandonZacharie

Specifying a log file makes Redis write messages to that file; redis-server expects those messages to come from stdout.

If there's a way to get these things to work together, I'd like to explore that solution. If there isn't, I suppose we'll need to parse the configuration file for a logfile statement and then tail the given file instead of stdout.

BrandonZacharie avatar Feb 20 '17 19:02 BrandonZacharie

A possible workaround which worked for my use case:

const server = new RedisServer({
         port: 6379,
         conf: ''
});

JonathanBristow avatar Nov 04 '17 13:11 JonathanBristow