toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

How to connet RedisLabs

Open SkysCrystal opened this issue 2 years ago • 0 comments

Steps to Reproduce

Set REDIS_ENABLED=false Set REDIS_HOST=redis xxxxx .cloud.redislabs.com and REDIS_PORT=12498 Logs show: "Cannot connect to redis."

I don't know how to set Username and Password in RedisLab.

Expected Behaviour

Set basic information for connecting Redis.

Observed Behaviour

Cannot connect to redis.
RedisHealthCheckTimedOut: timeout
    at Timeout._onTimeout (/overleaf/libraries/redis-wrapper/index.js:164:16)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) {
  info: {
    uniqueToken: 'host=xxxxxxxx:pid=xx:random=xxxxxx:time=1700809378865:count=0',
    stage: 'write',
    timeout: 2000
  }
}
*** /etc/my_init.d/98_check_db_access.sh failed with status 1

*** Killing all processes...

Context

I can't connect to RedisLad, overleaf can not be set.

Technical Info

  • URL:
  • Browser Name and version: Chrome
  • Operating System and version (desktop or mobile): Debian
  • Signed in as:
  • Project and/or file: RedisLab gives this sample for Node.js:
import { createClient } from 'redis';

const client = createClient({
    password: '<password>',
    socket: {
        host: 'xxxxx .cloud.redislabs.com',
        port: 12498
    }
});

Analysis

SkysCrystal avatar Nov 24 '23 07:11 SkysCrystal