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

Check services are up when the platform starts #740

Open
sduenas opened this issue Feb 21, 2025 · 0 comments · May be fixed by chaoss/grimoirelab-core#38
Open

Check services are up when the platform starts #740

sduenas opened this issue Feb 21, 2025 · 0 comments · May be fixed by chaoss/grimoirelab-core#38
Assignees
Labels
2.x Issues and pull requests of 2.x version configuration

Comments

@sduenas
Copy link
Member

sduenas commented Feb 21, 2025

The platform (server, workers, consumers and producers) should check all the required services are up before it runs. Now, if any of these services is running the platform stops with an exception.

For example, when Redis is not available, this is the error we get:

$ grimoirelab run server --dev
Traceback (most recent call last):
  File "/home/sduenas/.cache/pypoetry/virtualenvs/grimoirelab-core-NX6zi-ux-py3.12/lib/python3.12/site-packages/redis/connection.py", line 357, in connect
    sock = self.retry.call_with_retry(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sduenas/.cache/pypoetry/virtualenvs/grimoirelab-core-NX6zi-ux-py3.12/lib/python3.12/site-packages/redis/retry.py", line 62, in call_with_retry
    return do()
           ^^^^
  File "/home/sduenas/.cache/pypoetry/virtualenvs/grimoirelab-core-NX6zi-ux-py3.12/lib/python3.12/site-packages/redis/connection.py", line 358, in <lambda>
    lambda: self._connect(), lambda error: self.disconnect(error)
            ^^^^^^^^^^^^^^^
  File "/home/sduenas/.cache/pypoetry/virtualenvs/grimoirelab-core-NX6zi-ux-py3.12/lib/python3.12/site-packages/redis/connection.py", line 730, in _connect
    raise err
  File "/home/sduenas/.cache/pypoetry/virtualenvs/grimoirelab-core-NX6zi-ux-py3.12/lib/python3.12/site-packages/redis/connection.py", line 718, in _connect
    sock.connect(socket_address)
ConnectionRefusedError: [Errno 111] Connection refused
@sduenas sduenas added 2.x Issues and pull requests of 2.x version bug and removed bug labels Feb 21, 2025
@sduenas sduenas moved this to Near Term in GrimoireLab Roadmap Feb 21, 2025
@jjmerchante jjmerchante self-assigned this Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues and pull requests of 2.x version configuration
Projects
Status: Near Term
Development

Successfully merging a pull request may close this issue.

2 participants