The recovery server could not be contacted while installing Mojave
Simple fix, connect the ethernet cable directly to your laptop(use usb-ethernet adapter) or pc and reinstall mac OS from the internet recovery mode= restart and hold command-option-R.