• Starting today August 7th, 2024, in order to post in the Married Couples, Courting Couples, or Singles forums, you will not be allowed to post if you have your Marital status designated as private. Announcements will be made in the respective forums as well but please note that if yours is currently listed as Private, you will need to submit a ticket in the Support Area to have yours changed.

CF Database corrupted again on 27 January with 28 hour downtime, now fixed!

Erwin

Well-Known Member
May 13, 2015
201,108
1,803
✟216,037.00
As members would know, CF had a database crash on 25 January caused by the wrong setting in a config file - I fixed it in about 12 hours with no data loss.

Well, I didn't learn my lesson and kept modifying the database config to try to optimize the database so I could put our "find member's posts" feature back in.
It worked but because of the way I recoded things, the database was cacheing a lot of disk writes into RAM, and this caused occasional writes not to be written - leading to another database corruption.

This database corruption affected the WHOLE database - I had to restore our backups 3 times but they ended up being corrupted, and in the end decided to try to fix up the corrupted database. Took about 12 ours again...

Praise God, I fixed it, with minimal or no data loss whatsoever.

So now CF is back. :)

I promise I won't try to be too smart now. I'll leave things alone!
 

Erwin

Well-Known Member
May 13, 2015
201,108
1,803
✟216,037.00
Deamiter said:
Horray for fixing a 24 hour problem! Just out of curiosity, IS the search feature back, or have you learned your lesson there too?
I couldn't make it work without the database going crazy.

I'm now at work, so I'm going to have to concentrate. :) I woke up at 4 am this morning to work on CF... it's been a crazy CF week for me.
 
Upvote 0

TheBear

NON-WOKED
Jan 2, 2002
20,653
1,812
✟312,481.00
Country
United States
Gender
Male
Faith
Atheist
Marital Status
Private
Erwin said:
As members would know, CF had a database crash on 25 January caused by the wrong setting in a config file - I fixed it in about 12 hours with no data loss.

Well, I didn't learn my lesson and kept modifying the database config to try to optimize the database so I could put our "find member's posts" feature back in.
It worked but because of the way I recoded things, the database was cacheing a lot of disk writes into RAM, and this caused occasional writes not to be written - leading to another database corruption.

This database corruption affected the WHOLE database - I had to restore our backups 3 times but they ended up being corrupted, and in the end decided to try to fix up the corrupted database. Took about 12 ours again...

Praise God, I fixed it, with minimal or no data loss whatsoever.

So now CF is back. :)

I promise I won't try to be too smart now. I'll leave things alone!

Thanks, Erwin! :wave:
 
Upvote 0

Sephania

Well-Known Member
Jan 7, 2004
14,036
390
✟16,387.00
I was praying for you Erwin as I am sure you were tearing your hair out trying to do this and have work and everything.

Just a quick question, I noticed when it first went haywire that while you could get into the opening page and chat but not the individual forums, you could access the PM and send and receive. Now I don't know a whole lot about databases, but this would seem to me to be on a different one? The PM's I mean. So if that is true, couldn't you somehow split the forums so as the "lighter" forums would be on a data base where you can't search for posts and the more "in-depth" forums would be on another that would have the search capability?

Just thinking, it really is a lose but I dont' think a necessity for the whole of CF.

Glad you can rest now, I don't know how you do it, the L-RD has blessed you mightely!
 
Upvote 0

Palatka44

Unabashedly Baptist
Jul 22, 2003
1,908
94
68
Palatka, Florida
Visit site
✟25,227.00
Faith
Baptist
Marital Status
Married
Politics
US-Republican
Erwin,
I thought that I had caused CF to crash as I had just changed my Signature when every thing went down. Whew! I am not the cause, the burdens been lifted and now CF is back!
May you always have more smarts then me.:D
 
Upvote 0