502 Bad Gateway - failed to update

The error in nano says “No space left on device”. Have you checked that you haven’t run out of disk space?