Posted in: Uncategorized

FileMaker Server 13 on OS X – Error 701 – Web publishing engine process has terminated abnormally

If you’re here, you’re looking for a solution.

This was my solution to the Web publishing engine stopping for no known reason, and random intervals.

I created a launchctl process to check the status of the server and if down, restart it.

First, the bash script – put it in /usr/local/bin/ and ensure you chmod +x the file once done.

Call the file wpecheck.sh

 

#!/bin/bash
#wpe running
up_wpe=`nc -zw 3 127.0.0.1 8998`
if [ -z “$up_wpe” ]; then
echo “wpe is not running”
up_fms=`nc -zw 3 127.0.0.1 5003`
if [ -n “$up_fms” ];
then #echo “DBS running”
fmsadmin start wpe
fi
fi

Test the script by running it:

sh /usr/local/bin/wpecheck.sh

Then, create the plist file to execute the above script every 60 seconds. Put the file into /Library/LaunchDaemons/

Call the file com.wpecheck.plist

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0″>
<dict>
<key>Label</key>
<string>com.wpecheck</string>

<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/wpecheck.sh</string>
</array>

<key>Nice</key>
<integer>1</integer>

<key>StartInterval</key>
<integer>60</integer>

<key>RunAtLoad</key>
<true/>

<key>StandardErrorPath</key>
<string>/tmp/wpecheck.err</string>

<key>StandardOutPath</key>
<string>/tmp/wpecheck.out</string>
</dict>
</plist>

If you want to get it working without restarting, then:

launchctl load -w /Library/LaunchDaemons/com.wpecheck.plist

Use the Process Viewer and filter by the words “wpe” to see if it’s actually running every 60 seconds or not.

Have your say

Recurring Date Settings

day week month year on
date of month day of week