Improper performance of the publish function on the compiler page

The publish function on the compiler page is not performing as needed. When the publish is completed, the server responds by returning to an error. In the dialogue box, there is a progress bar.
It seems to freeze for 5 minutes or so and then shows an error message.
The same thing happened last month and it seems to happen on all PC platforms, Windows/Mac, also on Chrome and Safari. The annoying thing is that this is not consistent. Sometimes, the error is there and at other times, it isn't.
The daily activity on the server must be affecting it in some way or the other. Any ideas please?

Publishing program, please wait…

Connection Error: Server responded with a failure code – 0. Click OK to retry.
