Advertisement:

Author Topic: Errors while in maintenance mode  (Read 1127 times)

Offline Krash.

  • Beta Tester
  • SMF Hero
  • *
  • Posts: 2,681
  • It's not a feature, it's a bug.
Errors while in maintenance mode
« on: May 11, 2012, 12:03:56 AM »
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


 ???

« Last Edit: May 11, 2012, 12:42:28 AM by Krash. »
"In the land of the blind, the one-eyed man is king."

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,767
    • wedgebook on Facebook
Re: Errors while in maintenance mode
« Reply #1 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.

Offline Colin

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,665
  • Gender: Male
  • SMF and Web Hosting Enthusiast
    • Gray Web Host
Re: Errors while in maintenance mode
« Reply #2 on: May 11, 2012, 09:55:01 AM »
Here is where you should seek support http://www.smfhacks.com/index.php?board=45.0
https://www.graywebhost.com - Affordable, reliable hosting starting at $2.95 per month

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,767
    • wedgebook on Facebook
Re: Errors while in maintenance mode
« Reply #3 on: May 11, 2012, 10:18:41 AM »
Why should he seek support there when it's a problem with SMF itself?

Offline Colin

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,665
  • Gender: Male
  • SMF and Web Hosting Enthusiast
    • Gray Web Host
Re: Errors while in maintenance mode
« Reply #4 on: May 11, 2012, 12:26:04 PM »
Why should he seek support there when it's a problem with SMF itself?

Good question  ;). That post was intended for a different topic.
https://www.graywebhost.com - Affordable, reliable hosting starting at $2.95 per month

Offline Krash.

  • Beta Tester
  • SMF Hero
  • *
  • Posts: 2,681
  • It's not a feature, it's a bug.
Re: Errors while in maintenance mode
« Reply #5 on: May 11, 2012, 02:50:30 PM »
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. 


"In the land of the blind, the one-eyed man is king."