On a new installed SAP agent all jobs ends with ENDED_LOST after an agent restart.
Sample of error message:
java.io.FileNotFoundException: restart85534525 (Permission denied) at java.io.FileOutputStream.open(Native Method)
Cause:The restart* files in the bin directory of the agent needs write rights.
Solution:Set write permissions.