Skip to content

Crash-looping bundles sometimes get reloading stuck #294

@ulidtko

Description

@ulidtko

Steps to reproduce:

  • Have an app.keter in incoming/ up & running;
  • Without stopping, deploy a bogus version of app.keter that immediately crashes on start.
    • Keter keeps the old version running, as expected,
    • The new bundle gets unpacked under temp/ & goes into crash-loop;
    • Logs Process restarting too quickly, waiting before trying again... and restarts in 20ms anyway, spamming monitoring 😂
  • Now "fix" the app.keter removing the crash, and deploy the bundle to incoming/ again.

Expected: the second modification of app.keter gets unpacked under temp/ again, and starts from there as usual. Once fully started, replaces the previous process.

Actual: keter just logs Watched file modified and nothing happens.

I managed to stop the alert flood by rm -rf temp/app-1 and touch incoming/app.keter; but that's it. temp/app-0 keeps running, temp/app-2 is unpacked but nothing gets launched from there. Will need to arrange a maintenance window now, to be able to restart keter 🥲

This is on version 2.0.1 (vendored slightly), but I'm pretty sure the bug exists also in upstream latest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions