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

Can't disable auto rollback #241

Closed
StillerHarpo opened this issue Nov 1, 2023 · 1 comment · Fixed by #242
Closed

Can't disable auto rollback #241

StillerHarpo opened this issue Nov 1, 2023 · 1 comment · Fixed by #242

Comments

@StillerHarpo
Copy link

I have the following config

        deck = {
          hostname = (import ./variables.nix).nixosDeckIP;
          profiles.system = {
            user = "root";
            sshUser = "root";
            remoteBuild = true;
            autoRollback = false;
            magicRollback = false;
            path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos
              self.nixosConfigurations.nixosDeck;
          };
        };

Expected behaivor

deploy-rs doesn't rollback on failore

Actual behaivor

⭐ ❌ [activate] [ERROR] The activation script resulted in a bad exit code: Some(4)
🚀 ❌ [deploy] [ERROR] Activating over SSH resulted in a bad exit code: Some(1)
🚀 ℹ️ [deploy] [INFO] Revoking previous deploys
🚀 ❌ [deploy] [ERROR] Deployment failed, rolled back to previous generation
@notgne2
Copy link
Contributor

notgne2 commented Nov 1, 2023

Does the rollback actually take place? iirc there's issues where the logging/output just gives completely uninformative nonsense sometimes, often claiming to roll back or revoke when it isn't doing anything.

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