After more researching it look like there is a problem with nginx.https.sock because even if it is present (after rebuilding the app) the error of file not found still shows up.
I have tried deleting the file as per the instructions here:
However it makes no difference to the log error or the 502 error. If anyone is able to advise I’d be very grateful.