DEBUG MODE

Forum News, Announcements and any issues you're having with the forum

Moderator: myglaren

User avatar
Trainman
donor 2018
Posts: 2516
Joined: 21 Aug 2009, 11:58
x 7

DEBUG MODE

Post by Trainman » 23 Sep 2010, 10:00

phpBB : Critical Error

Error creating new session

DEBUG MODE

SQL Error : 1062 Duplicate entry '9227' for key 2

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('edc71f27265406935a4c4cfc44bc22cc', 9227, 1285232351, 1285232351, '3e194837', 3, 1, 0)

Line : 187
File : sessions.php

The above is what greeted me about 5 minutes ago when I tried to log in.

citroenxm
Posts: 7757
Joined: 31 Dec 2004, 00:10
x 19

Post by citroenxm » 23 Sep 2010, 10:11

Me too, but seems solved now...

PAul

User avatar
Xaccers
Posts: 7654
Joined: 08 Feb 2007, 00:46
x 3

Post by Xaccers » 23 Sep 2010, 11:05

Session table had crashed, I've repaired it with washing up liquid bottles and some sticky backed plastic :)

User avatar
Trainman
donor 2018
Posts: 2516
Joined: 21 Aug 2009, 11:58
x 7

Post by Trainman » 23 Sep 2010, 11:08

Xac wrote:Session table had crashed, I've repaired it with washing up liquid bottles and some sticky backed plastic :)
Ah, only a temporary fix then, should have used double sided sticky tape and PVA glue, Blue Peter badge technology :lol: :lol: :lol:

User avatar
spider
Posts: 3949
Joined: 05 Jan 2010, 15:28
x 63

Post by spider » 23 Sep 2010, 11:32

/Tech type post

Suggestion: consider moving the session table to memory to prevent crashes.

It will retain the table structure on disk obviously, but the data contents are held in memory. These will be lost when server offline (but mysql offline = no forum anyway)

They tend to not crash (at least in my experience with other software) when set to heap. ;) , I doubt there is any data held in the session table that is needed after a restart (although I'd have to install phpbb2 to double check they have not held any critical data in it, I doubt it though)

Does cause a small increase in server memory usage though, but seems an acceptable compromise in most cases, as a memory based table cannot crash and given its nature it is the most heavily used table. :)

Caution ( ! ) don't set any other tables to memory, I've seen that done.

/End of tech type post

User avatar
davetherave
Posts: 880
Joined: 01 Apr 2009, 21:06

Post by davetherave » 23 Sep 2010, 14:52

I just heard a wooshing noise above my head..... :lol:

jgra1
Posts: 4390
Joined: 27 Nov 2005, 20:07
x 15

Post by jgra1 » 23 Sep 2010, 15:02

that was the table before it crashed into the wall :D

User avatar
Xaccers
Posts: 7654
Joined: 08 Feb 2007, 00:46
x 3

Post by Xaccers » 23 Sep 2010, 15:06

Cheers Spider, have now changed to HEAP

User avatar
spider
Posts: 3949
Joined: 05 Jan 2010, 15:28
x 63

Post by spider » 23 Sep 2010, 15:09

Xac wrote:Cheers Spider, have now changed to HEAP
All being well, it should never crash now (that table anyway)

I can't (without installing and checking) seeing anything of value living in that table really, obviously server restart = loss sessions so everyone will have to login again but that should be it really.

You're welcome anyway :)

User avatar
Xaccers
Posts: 7654
Joined: 08 Feb 2007, 00:46
x 3

Post by Xaccers » 23 Sep 2010, 15:19

It crashed due to the server going down without giving sql enough time to shut down cleanly.

It only contains temporary session data.
Will keep an eye on memory use, if it does start going up a significant amount (I really doubt it) I've got a script that can clear out the oldest sessions.

User avatar
myglaren
Forum Admin Team
Posts: 14613
Joined: 02 Mar 2008, 14:30
x 330

Re: DEBUG MODE

Post by myglaren » 23 Sep 2010, 17:07

Trainman wrote:phpBB : Critical Error

Error creating new session

DEBUG MODE

SQL Error : 1062 Duplicate entry '9227' for key 2

INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('edc71f27265406935a4c4cfc44bc22cc', 9227, 1285232351, 1285232351, '3e194837', 3, 1, 0)

Line : 187
File : sessions.php

The above is what greeted me about 5 minutes ago when I tried to log in.
I got the same thing yesterday evening and thought that it was just me.

User avatar
spider
Posts: 3949
Joined: 05 Jan 2010, 15:28
x 63

Post by spider » 23 Sep 2010, 17:33

Spoke to (well messaged) Xac earlier, should hopefully not happen again now ;) , all being well that is. :)