Script is already running or disabled - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Script is already running or disabled (/showthread.php?tid=1030) |
Script is already running or disabled - Thomas - 06.10.2017 Hi a week ago my scheduled script has stopped working. If I try to start it manually I get messagebox saying "Script is already running or disabled". I don't believe the message but: Script is not disabled. Can I check if the script is already running? Can I kill the running script? The script is used for sending data to Weather Underground PWS site. It's extremely simple. I don't see any possibility of endless loop here. Code: require("user.ecl_weather") RE: Script is already running or disabled - admin - 09.10.2017 Go to System Config > Status > Running processes. Find line containing "lua /lib/genohm-scada/core/scripting-scheduled.lua" and kill it. The reason is probably SSL getting stuck somewhere. RE: Script is already running or disabled - Thomas - 09.10.2017 Thank you. Can I set timeout for ssl operations? Can I set time limit for script execution? It's potentially dangerous if a script can hangs in this way. RE: Script is already running or disabled - mooselight - 17.02.2018 (09.10.2017, 12:34)Thomas Wrote: Thank you. Hi there ! I've exactly the same problem, my 2 scheduled scripts are hanging every week or so. For now, I manually reboot my LM, but I would like to find the cause of the hang. My scripts are very simple .. just get some grp value on the bus and report them to emoncms via SSL. Here is the code of one of the scripts. Is there any solution to make them more "resilient" to SSL problems ? Thanks for any help PS/ I did not have that problem a few month ago .. so maybe emoncms is getting to busy and slow to answer requests ? Code: -- load required modules |