How to connet RedisLabs
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 1.3k
- Forks
- 310
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how REDIS_HOST, REDIS_PORT, and REDIS_ENABLED are consumed, then compare that configuration with the RedisLabs connection example and the timeout from /overleaf/libraries/redis-wrapper/index.js. Check /etc/my_init.d/98_check_db_access.sh as part of the startup path; done means RedisLabs authentication details are supported and the health check connects successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- redis
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100