6 Replies Latest reply on Mar 3, 2017 2:22 PM by erusso

    Error 701 - FMSE Stopped during scheduled scripts

    erusso

      I'm having an issue with a set of scripts.  I have 2 scripts that run every 15 minutes server side to push out iPad notifications and Emails.  The database ques the emails/notifications and the server side script checks and pushes out the emails/notifications to users.

      If I run both the scripts the FMSE crashes and I get that error message.  It does not happen every time and it only happens if they're both running together.  The server can run the scripts together numerous times and be fine then all over a sudden it takes down the script engine.

      I have tried running the script on a local machine and there are no issues.  There are no issues if its run local and run as perform script on server.

       

      Here are some details on the server :

      FMS 15.0.3

      Mac OS Sierra on 6 Core Mac Pro with 12 GB Ram

      1 hosted database

      SMTPit Plugin Installed

        • 1. Re: Error 701 - FMSE Stopped during scheduled scripts
          pijlgroms@cardsolutions.nl

          hi we have several issues on servers with fmse, you can solve this (well not really solve) on several ways:

           

          memory piling up is really a thing in fmse.

           

          1- be sure on your smtp script that you disconnect every connection, if you stop your script without really give the command disconnect it may build op connections in memory (they will timeout on the smtp server, but better safe than sorry).

          2- if all fails, try a different plugin maybe its more nice to the memory and load.

           

          On our servers (windows and mac) i have a script that monitors the process and on crash it restart it again, on a mac you can do that with the launchd deamon on windows with event monitor.

          On periods (every hour or every day) i have a script that restarts fmse on the server to free up mem and connections . (also launchd)

           

          We are also running a seperate monitor server for our servers but also for clients, its monitors all the processes (dbserver, fmse, wpe,wpc, odbc) and reports if one crashes but also try to restart the proces. But sometimes FMSE get unrepsonsive and none of the monitors will help and only forcing a restart of fmse will help. The monitor servers also helps to get monthly reports of crashes and other stuff like load, disk usage, connection counts etc)

          • 2. Re: Error 701 - FMSE Stopped during scheduled scripts
            erusso

            Thanks for the response.  I was thinking it was something along those lines as its so intermittent.  Is there any way you would share the scripting your using to monitor the server processes? I'm currently running server on the mac platform. 

            Thanks for the help

            Ed

            • 3. Re: Error 701 - FMSE Stopped during scheduled scripts
              pijlgroms@cardsolutions.nl

              you can use this plist file, save it in /Library/LaunchDaemons/com.filemaker.fmse.keepalive.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.filemaker.fmse.keepalive</string>

                      <key>ProgramArguments</key>

                      <array>

                              <string>/Library/FileMaker Server/Database Server/bin/fmsased</string>

                </array>

                <key>KeepAlive</key>

                <true/>

                <key>RunAtLoad</key>

                <false/>

                <key>StandardOutPath</key>

                <string>/Library/FileMaker Server/Logs/fmsased.out</string>

                <key>StandardErrorPath</key>

                <string>/Library/FileMaker Server/Logs/fmsased.err</string>

              </dict>

              </plist>

              • 4. Re: Error 701 - FMSE Stopped during scheduled scripts
                pijlgroms@cardsolutions.nl

                or just a schedule to restart every night:

                 

                <?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.filemaker.fmse.restart</string>

                        <key>ProgramArguments</key>

                        <array>

                                <string>/usr/local/bin/fmsadmin</string>

                                <string>RESTART</string>

                                <string>FMSE</string>

                                <string>-y</string>

                          </array>

                  <key>StartCalendarInterval</key>

                        <dict>

                                <key>Hour</key>

                                <integer>0</integer>

                                <key>Minute</key>

                                <integer>0</integer>

                        </dict>

                </dict>

                </plist>

                • 5. Re: Error 701 - FMSE Stopped during scheduled scripts
                  erusso

                  Thanks very much for the help!

                  Set them up and we'll see how all goes

                  • 6. Re: Error 701 - FMSE Stopped during scheduled scripts
                    erusso

                    Question on this script... Sorry for all the questions on this but I'm new to this.

                    I've created this script however it tries to run every 10-15 seconds and errors that it is already running. Is this normal for the keep alive script being that the process was started by fms during system startup. If I stop the FMSE from terminal to see if this keep alive script restarts it it errors as well.  Am I missing something?

                     

                    Here is the error if FMSE is stopped

                    omniORB: ERROR -- the application attempted to invoke an operation

                    on a nil pseudo-object reference.

                     

                    Here is the error if its already running.

                    Another instance of FileMaker Scripting Engine is already running.

                     

                    Thanks