XMLDataSource error in Kentico 9 site

Wei Wang asked on September 2, 2024 18:38

Hi,

Our site which built on Kentico 9 suddenly stopped working. The error message from event log says: Message: The operation has timed out.

Exception type: System.Net.WebException Stack Trace: at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize) at CMS.Controls.XMLDataSource.GetDataSourceFromDB()

any idea?

thank you Wei Wang

Recent Answers


Juraj Ondrus answered on September 3, 2024 05:53

I would check the XML data source setup - on what page it is and what data it is pulling. Maybe it is pulling too much data from the DB and it takes long time so it times out. There must have been done some changes...

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on September 3, 2024 12:55

thanks looks like the db data file space is pretty much fool, it's 105GB now. Will increase data file space help? what's the recommended db size? sorry our DBA quit we don't have a DBA now

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 3, 2024 12:58

That is a pretty big DB. There are no recommendations as this vary per project. IF you have big newspaper web site then the size is OK. But if it is a small company web, it is not OK and something is wrong. I would recommend reviewing the backup and transaction log settings, use Google to see how to reduce the DB size, shrink it etc.

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on September 3, 2024 13:03

by checking the disk usage report, I found that the tables Staging_Task, CMS_ObjectVersionHistory, CMS_Attachment,and all the Analytics_xxxhits talbes are the top tables. And I noticed that the task Remove analytics data is disabled.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 3, 2024 13:05

So, you should do some cleanup in the admin UI and delete the unused staging tasks, clear up attachments and so on...

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on September 3, 2024 13:08

thanks, let me check if I can do more cleaning with built in tasks

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on September 3, 2024 13:37

I didn't find any task to delete unused staging tasks, it's not a builtin task? can I delete from the database directly?

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on September 3, 2024 13:38

And also no tasks for clean attachment history, object version history either

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 3, 2024 14:22

Well, maybe those are orphaned tasks from some deleted staging server. The same for the other - this indicates some inconsistency in the DB and you should be cautious. While you can delete the staging tasks directly, for the version history records I would recommend something like this

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on September 3, 2024 14:24

thank you again for your help!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.