NixOS / hydra

Hydra, the Nix-based continuous build system
http://nixos.org/hydra
GNU General Public License v3.0
1.1k stars 291 forks source link

Reset, Backup, Restore Hydra state? #1253

Open lukego opened 1 year ago

lukego commented 1 year ago

Are there known methods to

Immediate use case is that I have two Hydra instances that have started giving me inscrutable "Unknown server error!" messages on the webUI. I would like to find a way to reproduce this and that demands being able to reset to a blank state.

~My hypothesis is that the problem is related to the Terraform Hydra provider because I only started to see the error when I began using that. I would like to get my Hydra(s) back into a known-good state to try and test this.~

P.S. If there are any tips for diagnosing "Unknown server error!" messages that would be welcome!

SuperSandro2000 commented 1 year ago
  • Reset Hydra to "factory default" state.

Drop the database and delete all gcroots from hydra.

  • Backup Hydra state.

You can backup the database but you would need to also backup all gcroots and though at least have a replication of the nix store.

Unknown server error

Whats in the logs?