We have seen a different behavior when streamlit app is launched in foreground manually using cmd or in background using batch mode. It seems that, app is not able to find some executables and files like Excel. I have attached few error screenshots below. As per the error, we have checked that no excel file was opened or excel process was running in background and still the issue persist.
We do not see this error when we launch the app in foreground manually using cmd or powershell. We are expecting any advise on this issue from you.
Could you print out the working directory for when you’re running the Streamlit apps both ways? Also, is there a particular reason you need to launch the app using ‘batch mode’? I’m not a windows user so i’m not totally sure what batch mode is
We are seeing Streamlit process getting killed/crashed for some unknown reason making the application server unavailable. To counter, we did some reactive step to check the port/process running and if not running, we start. Hence we are putting it thru batch mode. Batch mode (.bat/.ps1) is like running “shell (.sh)” script in Linux file.
@chetan-vaidya3d so when you run your Streamlit apps locally on Windows, the apps are getting killed? Do you have any logs for this? Is this happening right when you launch your Streamlit apps or some time afterwards? And am I right to say this is a local issue or do you have it deployed elsewhere?