Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When debugging scripts you need to consider the process used to submit the job. First, a script is accessed and expanded to create the job file. This job file is then submitted to the relevant system where it is run, possibly via a queuing system. Errors can occur at any of these steps.

...

The first thing to check is whether the job file can be created. In the GUI you should be able to view your script. If not, you should receive a pop-up window indicating a file read error. This indicates that ecFlow cannot find your script as either it does not exist or ecFlow cannot find it. Look at the value of the ECF_SCRIPT variable to see where ecFlow expects to find the file. The location can be modified using the variable ECF_FILES as described later.

...

The next thing ecFlow will do is create the job file by adding all include files and substituting ecFlow variables (see the next chapter on "The ecFlow Pre-processor" for more details). To test if ecFlow can find all the include files and variable variables click the edit tab in ecflow_ui, info panel. If you get the error message "send failed for the node" ecFlow may not be able to access the include files or some ecFlow variables have not been set. More details will be given in the ecFlow log files.

...

You can debug your job file stand-alone, by running it outside of ecflow. To bypass the ecflow_client command in the job file, set the environment variable NO_ECF.

...