Publishing Error

I am getting this error when I try publishing from either service center or service studio:

Error in advanced query GetConsumers in Espace_UpdateCache in Espace in ServiceCenter (SELECT DISTINCT {Espace}.*  from  {Espace_Reference}  inner join  {Espace_Version} on {Espace_Version}.[Id]={Espace_Reference}.[Consumer_Version_Id]   inner join  {Espace} on {Espace}.[Id]={Espace_Version}.[eSpace_Id]   where producer_ss_key=@key   and {Espace}.[Is_Active] = 1): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

I have verified that both servers are up and running (sql server, outsystems server) and was wondering what else could be causing this error.

Thanks in advance for your help.
Hi Becky,

Did you get around your problem? I'd suggest that you use service center to clean up older versions of the you modules and also maybe ensure that the db maintenance scripts are running and optimizing those tables. 

Sorry for the late answer, hope you have overcome your problem by now :)