• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Git additional deployment actions kills screen when deployment task is finished

Yoronex

New Pleskian
Server operating system version
AlmaLinux 8.7 x86_64
Plesk version and microupdate number
Plesk Obsidian 18.0.49.2
Hi everyone,

I am struggling with a problem for a few hours now and I am out of ideas on how to solve it. My website is a Laravel application that needs to run a separate command to connect to a messaging queue. This command is blocking, i.e. it continues to run for all eternity until it is stopped. I want to start this command after deployment, but it needs to be in parallel with the rest of the deployment actions. I therefore opted to go for the program screen.

I got a screen to start just fine with screen -dmS test and it also exists (and is detached as expected) while the deployment actions are still executing. It is thus also listed in screen -list in a separate SSH window when logged in as the same user. However, as soon as the deployment actions are done, the socket is gone. I added a sleep command in my execution sequence to verify this, and the screen socket persisted until the actions were finished.

I am out of ideas of what the problem could be, as I would assume that the deployment actions are executed in a SSH terminal. Of course, the session is terminated as soon as all actions are finished, but that is why I am starting a screen (which should persist over sessions). I hope any of you have an idea as to what this could be!
 
Back
Top