News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Errors while in maintenance mode

Started by Krashsite, May 11, 2012, 12:03:56 AM

Previous topic - Next topic

Sir Osis of Liver

Working on a 1.1.12 forum which has been unuseable due to session verification errors.  Admin cannot access admin section, members can't post or pm, registration keeps looping back to registration form.  Tinkering around in the database, I see that the forum is generating around 50-60 errors per minute while in maintenance mode.  This is what they look like in smf_log_errors:

2: Unknown: open(/var/chroot/home/content/p/r/o/accountname/tmp/sess_e344e3bc9382eb3333865ad52aa757b1, O_RDWR) failed: No such file or directory (2)<br />File: Unknown

2: session_start() [&lt;a href='function.session-start'&gt;function.session-start&lt;/a&gt;]: open(/var/chroot/home/content/p/r/o/accountname/tmp/sess_00086525fdcc8faf7fcb452c65c5ca05, O_RDWR) failed: No such file or directory (2)<br />/home/content/p/r/o/accountname/html/forums/Sources/Load.php<br />1957

2: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct ()<br />File: Unknown


???

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

So why was 'use DB sessions' turned off? (It's defaulted to on in the installation, amongst other things)

In the database, smf_settings table, replace any existing row where variable = 'databaseSession_enable' and set its value to 1, or add a new row if there isn't an existing row for that.

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Arantor

Why should he seek support there when it's a problem with SMF itself?

Colin

Quote from: Arantor on May 11, 2012, 10:18:41 AM
Why should he seek support there when it's a problem with SMF itself?

Good question  ;). That post was intended for a different topic.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Sir Osis of Liver

Quote from: Arantor on May 11, 2012, 08:36:15 AM
So why was 'use DB sessions' turned off? (It's defaulted to on in the installation, amongst other things)

In the database, smf_settings table, replace any existing row where variable = 'databaseSession_enable' and set its value to 1, or add a new row if there isn't an existing row for that.

Thanks, Arantor, got it working late last night once I figured out what the errors meant.  Couple of the settings were broken - queryless URLs was not set, and database driven sessions was off.  The errors were probably caused by bots and spiders hitting the forum.  They were a big help.  No idea what caused the settings to break - it's an old forum running a basic 1.1.12 install, and nobody there would know how to mess with settings. 


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: