In order to correct it, you have to find out an exact reason.
SiteBuilder does not show too much detail on the error to the end-users; you should log in under administrator and review the SiteBuilder logs through the Admin panel. There will be some additional information on the reason publishing fails.