Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Woke up this morning, Vanilla asking me to install
I've just reinstalled vanilla on a new host (yesterday). Woke up this morning and my settings.php was blank/corrupted, and the forum was showing the install page. Can anyone suggest what could cause it? I want to try make sure it doesn't happen again.
0
This discussion has been closed.
Comments
this never happened on my old host. twice in one day on a new host is alarming.
This smells like a fopen() race condition... and appears to be possible:
function SaveSettingsToFile($File) { // Open for writing only. // Place the file pointer at the beginning of the file and truncate the file to zero length. // If the file does not exist, attempt to create it. $FileContents = $this->UpdateConfigurationFileContents($File); if ($this->Context->WarningCollector->Iif()) { // write the contents to a temporary file $rand = DefineVerificationKey(); $temp = @fopen($rand . '.tmp', 'wb') if (!$temp) { $this->Context->WarningCollector->Add(str_replace("//1", $File, $this->Context->GetDefinition("ErrOpenFile"))); } else { if (!@fwrite($temp, $FileContents)) $this->Context->WarningCollector->Add($this->Context->GetDefinition("ErrWriteFile")); } fclose($temp); // If no errors, overwrite the existing settings file if ($this->Context->WarningCollector->Iif()) @rename($rand . '.tmp', $File); } return $this->Context->WarningCollector->Iif(); }
i'm sorry, i can't remember what the error said. i think it was an error opening.
i've emailed dreamhost to see what they say. the load on my site is never heavy (maximum 10 users or so, according to 'Who's Online'), but the overall load on dreamhost could be causing the slow speed.
Don't go replacing code just yet... I have no way to test what I posted and just fixed 3-4 bugs after re-reading it.
the error i got definitely related to a file in /library/Framework/ although i can't remember which one. i'm sure it referenced a specific line in whichever file it was.
Did you enable an extension recently?
"This
seems to be a problem with the script that is causing it to remove that
file as I did not notice anything in our logs that indicated otherwise."
interestingly, the rest of my site (wordpress based) is now slow/down with a 500 error. (edit: fixed... wp-cache plugin at fault, it seems)
down again at about 9am UK time this morning, when nobody was likely to have been online at all - it's a bank holiday! i'm seriously thinking of just moving to another host.