stock-api is fixed. Write the report that shows it. Every line must come from command output. You start in /srv/stock-api.
The report, ~/report.txt, has three parts in this order:
text
errors: <ERROR lines in logs/app.log>
warnings: <WARN lines in logs/app.log>
<full output of bin/check.sh>
<ls -ld of current, logs, data/stock.csv and bin/check.sh>Build it with > for the first line and >> after that, using grep -c, $(...), bin/check.sh and ls -ld. Read it with cat ~/report.txt.
When it is complete, copy it to /srv/stock-api/results/report.txt, next to the check script's own output.