• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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