-
Notifications
You must be signed in to change notification settings - Fork 189
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
Backend fails to start after removing Redis #2685
Comments
After talking to @HyperTHD, I think the problem only occurs in development.
In telescope/docker/development.yml Lines 72 to 74 in 321f0af
|
The possible fixes for this:
redis:
environment:
- REDIS_URL=reids://127.0.0.1:6379
ports:
- '6379:6379'
Though, I need some help to make sure that it runs normally on production/staging |
This is an interesting problem. I'm tempted to say that the fix for it is to leave the backend how it is now, and not bother updating it to use Satellite. The reason for this is that the code in the backend already does the right thing if the telescope/src/backend/lib/redis.js Line 9 in dece55b
If we use Satellite, we have to define a We get around this in development by re-using the config from telescope/src/backend/lib/config.js Line 8 in dece55b
|
Thing is, in staging/production, we've redefined the redis_url to point to the container itself, which is defined as follows: https://github.com/Seneca-CDOT/telescope/blob/master/docker/production.yml#L41 I tried to connect to redis this way with dev while talking with @TueeNguyen to no avail, with the only way being to do so the way he mentioned above. It's a sticky situation, the way the backend does it is fine, and honestly once the parser service gets added, we shouldn't worry about it since the backend's going to be removed. The service that uses redis, the posts service, grabs it from Satellite just fine as well |
I'm ok with leaving backend the way it is, it's not sth we prioritize |
I think we should focus on the parser service and fix this by removing the backend completely. Then we don't have multiple hacks in place to make this work. @TueeNguyen you cool if we close this? |
Yes! |
Thanks for doing the research and digging into this. Even though we didn't go with this solution, having the options in front of us was really important for being able to move forward. |
I believe someone will dig this one up for his issue :) |
What happened:
PR #2615 is likely to have caused the bug
What should have happened:
Containers should have built and run successfully
How to reproduce:
This bug occurs when you run
pnpm start
with your Redis database being fresh, not populated. It will run normally if you have run the project before.The text was updated successfully, but these errors were encountered: