deploy.log is in your folder. Count everything in it: wc deploy.logrun Now use flags to count only the lines, then only the words. Then find the line number of the error with cat -n.