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

[BUG] The deployment of the CD pipeline (server-side) is broken #1858

Open
3 of 6 tasks
pierluca opened this issue May 15, 2024 · 1 comment
Open
3 of 6 tasks

[BUG] The deployment of the CD pipeline (server-side) is broken #1858

pierluca opened this issue May 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pierluca
Copy link
Contributor

pierluca commented May 15, 2024

Description (Actual behavior)

When a new release is made, the PoP backend software wasn't restarted. (a temporary fix is now in place for dev-be{1,2}-{a,b}.personhood.online)

Expected behavior

When a new release is made, the PoP backends should be restarted automatically with the new version.

How to reproduce

  1. Generate a new release
  2. Go on the server
  3. Check the uptime of systemctl status pop-dev-be1-go.service
  4. It should be seconds, it's much longer

Version & Environment

This bug was reproduced on May 15, 2024 (github.com/dedis/ansible-config is the relevant repo)

Front-ends:
  • Fe1-Web (please include browser's names & version)
  • Fe2-Android (please specify if phone or emulation, and Android version)
  • Not applicable
Back-ends:
  • Be1-Go
  • Be2-Scala
  • Not applicable

Workaround

systemctl restart of each service - not a valid option.

Possible root cause

Most likely, since the Debian Bullseye update, the previous service descriptions don't work anymore.

@pierluca pierluca added the bug Something isn't working label May 15, 2024
@pierluca pierluca self-assigned this May 15, 2024
@pierluca
Copy link
Contributor Author

Good scripts , to be included in ansible-config

pop-dev-be1-go-a-restart.path

[Path]
PathModified=/home/popdemo/dev/be1-go/pop

[Install]
WantedBy=multi-user.target

pop-dev-be1-go-a-restart.service

[Unit]
Description=pop-dev-be1-go-a restarter
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart pop-dev-be1-go-a.service

[Install]
WantedBy=multi-user.target

Enabling commands

$ systemctl enable pop*restart.{path,service}
$ systemctl start pop*restart.{path,service}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant