AnsweredAssumed Answered

How to clear a server level shell script 'Running.."?

Question asked by oak on Oct 26, 2018
Latest reply on Oct 26, 2018 by wimdecorte

After I use FMS 17 > Configuration >Script Schedules I create a schedule for a system script. The script has an error. The thing is that the FMS GUI keeps showing it as "running" even after the time out.

 

The event.log show (Caps are mine):

event log

2018-10-26 15:35:14.091 -0700   Information     146     fm.DOMAIN.org   Schedule "UsageLog2" run now by "SOMENAME".

2018-10-26 15:35:14.092 -0700   Information     688     fm.DOMAIN.org   Schedule "UsageLog2" has started system script "UserCount.sh" with process ID 23881.

2018-10-26 15:37:14.255 -0700   Warning 690     fm.DOMAIN.org   Schedule "UsageLog2" has exceeded its time limit.

 

the sterr.log show the error.

ct 26, 2018 3:34:59 PM com.vaadin.event.ConnectorActionManager handleAction

WARNING: Ignoring action for disabled connector com.filemaker.jwpc.iwp.ui.common.DialogButton, caption=OK

/Volumes/Macintosh HD/Library/FileMaker Server/Data/Scripts/UserCount.sh: line 9: fmsadmin: command not found

Probably I should have given the whole path to fmsadmin. Never mind that.

 

The issue that process ID 23881 is no longer running but the FM Server v17 GUI keeps showing the script as "Running..."

 

If I try to run the same schedule (3 times) again the stout.log reports:

(node:220) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): [object Object]

(node:220) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): [object Object]

(node:220) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): [object Object]

Is there a way to clear these schedules (cli?) without restarting the server?

Outcomes