bugy / script-server

Web UI for your scripts with execution management
Other
1.59k stars 247 forks source link

Script stops abruptly, but it continues to run in the backend #698

Closed sbalakrishna closed 11 months ago

sbalakrishna commented 1 year ago

Hi, With the latest bits (1.19.0-master@0da869e), I am experiencing a strange issue that the scripts are exiting abruptly. Almost all the scripts are exiting abruptly. But, if I check the history window, it is running in the backend. This problem is not happening with the old versions (say 1.18.0-master@c86f076).

I have deployed the tool on different environments (on-prem, AWS), but seeing the same problem.

Please let me know if there is any solution for that.

Thanks in advance. Regards, Bala

bugy commented 1 year ago

Hi @sbalakrishna could you check the network tab in the browser and send me screenshots of the socket connection and all the messages inside the websocket

sbalakrishna commented 11 months ago

image

bugy commented 11 months ago

Thank you! Could you also share details of the websocket? Those should be open, when you click on details. Also, please send a screenshot for the abruptly interrupted connection

sbalakrishna commented 11 months ago

image

sbalakrishna commented 11 months ago

image

sbalakrishna commented 11 months ago

The attached screenshot provide the details for one of script. The same issue is happening with all the scripts. As I mentioned earlier, I tried to install the tool on multiple different setups (Centos 7, 8, RHEL 7 and 8), but the issue still persists.

Please let me know if you need any additional info.

bugy commented 11 months ago

@sbalakrishna, the message details are from this socket: image

Could you send me for the socket, which has a "number" address. I.e. "96" in the example above

sbalakrishna commented 11 months ago

image

bugy commented 11 months ago

Hi @sbalakrishna, just to double check: your script prints more output after this line: image is it correct? Or you don't see this text in script server output window?

Unfortunately, I don't see anything suspicious in the browser logs. Could you create a minimal reproduction script for me, which I can use locally to reproduce the problem? I assume even having smth like:

echo 1
sleep 1
echo 2
sleep 1
echo 3
sleep 1
echo 4
sleep 1

Would fail for you. Or just some ping google.com

sbalakrishna commented 11 months ago

Closing the issue since it is not reproducible. Thanks for the support.