Why does my scheduler fail with the message "Task with ID 1 returned 0 outputs but 1 were expected? when using a nonshared configuration?

7 views (last 30 days)
Why does my job result return the below error even though the task log file indicates that the job has completed successfully:
 
Task with ID 1 returned 0 outputs but 1 were expected.
As well, when validating my cluster profile, I receive a similar error and validation fails. 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 9 Apr 2015
This error can occur when using the nonshared configuration with MDCS when there is a delay in file mirroring.  When using a nonshared configuration, the job result is mirrored by SSH from the cluster headnode to the MATLAB client.  If the file structure is too slow and this mirroring process takes an extended period of time, this could cause a false error.  This error generally occurs if the job output is retrieved  too fast and the job results have not been mirrored to the client machine.  Similarly, when running validation, the job output is retrieved right after the test job  is finished, which would cause the error.  
To resolve the issue, simply wait 15-30 seconds longer prior to retrieving the job status.  Unfortunately, due to the way validation occurs, validation will fail as you can't control the job output is retrieved.  

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!