Skip to content
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

Redis connection refused #118

Open
joehand opened this issue Dec 12, 2024 · 3 comments
Open

Redis connection refused #118

joehand opened this issue Dec 12, 2024 · 3 comments

Comments

@joehand
Copy link

joehand commented Dec 12, 2024

Describe the bug

Installed Outline on a fresh YunoHost install. It failed to connect to the redis instance.

{"error":"connect ETIMEDOUT","level":"error","message":"Redis error in socketio adapter","stack":"Error: connect ETIMEDOUT\n    at Socket.<anonymous> (/var/www/outline/node_modules/ioredis/built/Redis.js:170:41)\n    at Object.onceWrapper (node:events:631:28)\n    at Socket.emit (node:events:517:28)\n    at Socket.emit (node:domain:489:12)\n    at Socket._onTimeout (node:net:598:8)\n    at listOnTimeout (node:internal/timers:569:17)\n    at process.processTimers (node:internal/timers:512:7)"}
{"level":"warn","message":"Retrying redis connection: attempt 1"}

Context

This bug shows up a few places in the Outline repo.

Logs

https://paste.yunohost.org/ubotirupex

Fix

I was able to fix it by changing REDIS_URL=redis://localhost:6379 to REDIS_URL=redis://redis:6379, as suggested in the Outline repo.

I am not sure if the default should be changed in this repo.

Reporting here for visibility if other YunoHost users run into this. Feel free to close, it is resolved for me.

@Limezy
Copy link
Collaborator

Limezy commented Dec 12, 2024

Thanks for the report.
I will check and see if I need to change the repo as per your recommendation. Do you have any specificities about your Yunohost instance ?

@joehand
Copy link
Author

joehand commented Dec 12, 2024

Turns out its because redis wasn't running! I think this needs to have redis-server added to [resources.apt] in the manifest. I assume most other folks already had another app dependent on redis, so it was running.

Changing the URL was enough to trick it enough to have Outline run briefly, but it crashed as soon as I tried to update a page.

I fixed it by installing nextcloud which requires redis, and verified that the redis service was running. Outline is happy now (with original .env config).

@Limezy
Copy link
Collaborator

Limezy commented Dec 13, 2024

Very good catch thanks.
This is probably something that went wrong when transitioning to the package v2 version.
I do not understand why the CI didn't catch that bug though !
I will push a corrective action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants