MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > Administration Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old May 16th, 2005, 20:09   #1
speed-addiction
 
Join Date: Mar 2005
Posts: 76
speed-addiction is on a distinguished road
Default error number 1016

I have mambo running for about a month with no problems, yesterday I uploaded some content, nothing weird at all, just an article as usual logged out... today

DB function failed with error number 1016
Can't open file: 'mos_session.MYI'. (errno: 145) SQL=SELECT session_id FROM mos_session WHERE session_id=MD5('e20eafcf277b7bc0dd125357b4a1b223')
SQL =
SELECT session_id FROM mos_session WHERE session_id=MD5('e20eafcf277b7bc0dd125357b4a1b223'


This message appears when i wanna login or view my page!!!

Is there a repair utility, anyone with this similar problem?

HELP PLEASE!
speed-addiction is offline   Reply With Quote
Old June 22nd, 2005, 08:55   #2
Sanca
 
Sanca's Avatar
 
Join Date: Feb 2005
Location: Karlskoga, Sweden
Posts: 13
Sanca is on a distinguished road
Default

I got this ERROR code today!! Ahh. Don't know how to solve it! Couldnt make any sense out of the Mysql Documentation on the web about troubleshooting and error reporting.

DB function failed with error number 1016
Can't open file: 'mos_session.MYI' (errno: 145) SQL=SELECT session_id FROM mos_session WHERE session_id=MD5('7765ccb5192ae4175b41cf8eeabbe691')
SQL =

SELECT session_id FROM mos_session WHERE session_id=MD5('7765ccb5192ae4175b41cf8eeabbe691')




ALL Tips and Suggestions are welcomed
My website where you can see this code is: http://www.dalajarna.se/
__________________
The Swedish "mambofan" - Sanca

Site Admin of following site(s):
http://www.dalajarna.se/
Sanca is offline   Reply With Quote
Old June 22nd, 2005, 14:51   #3
speed-addiction
 
Join Date: Mar 2005
Posts: 76
speed-addiction is on a distinguished road
Default

Here you go, I really freaked out when it happenned to me, I still donīt know the reason it appeared, however I would like someone to help me at the time...

replace de mos_session entry in the database

#
# Table structure for table `mos_session`
#
DROP table IF EXISTS mos_session;
CREATE TABLE `mos_session` (
`username` varchar(50) default '',
`time` varchar(14) default '',
`session_id` varchar(200) NOT NULL default '0',
`guest` tinyint(4) default '1',
`userid` int(11) default '0',
`usertype` varchar(50) default '',
`gid` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`session_id`),
KEY `whosonline` (`guest`,`usertype`)
) TYPE=MyISAM;
#
# Dumping data for table `mos_session`
#


and it should work allright....
speed-addiction is offline   Reply With Quote
Old June 23rd, 2005, 11:47   #4
Sanca
 
Sanca's Avatar
 
Join Date: Feb 2005
Location: Karlskoga, Sweden
Posts: 13
Sanca is on a distinguished road
Default

How can i do this? I'm not into Mysql that much even if I managed to install it on my own server.
A small hint from you Speedaddiction would be nice please or anyone else.
__________________
The Swedish "mambofan" - Sanca

Site Admin of following site(s):
http://www.dalajarna.se/
Sanca is offline   Reply With Quote
Old June 30th, 2005, 02:57   #5
simes
 
Join Date: Dec 2004
Posts: 67
simes is on a distinguished road
Default

This just happened to me, THANKYOU THANKYOU THANKYOU THANKYOU for making this code available
simes is offline   Reply With Quote
Old June 30th, 2005, 16:58   #6
speed-addiction
 
Join Date: Mar 2005
Posts: 76
speed-addiction is on a distinguished road
Default

Quote:
Originally Posted by simes
This just happened to me, THANKYOU THANKYOU THANKYOU THANKYOU for making this code available

no problem... I posted it because when it happenned to me I had a very hard time finding it... hope its useful
speed-addiction is offline   Reply With Quote
Old July 11th, 2005, 09:32   #7
Sanca
 
Sanca's Avatar
 
Join Date: Feb 2005
Location: Karlskoga, Sweden
Posts: 13
Sanca is on a distinguished road
Default

Here is how I solved my problem:

As fortune as I am my backup contained the mysql database directory (on my own server) so I could locate the database files in my backup. You know the *.MYI files (or what they were called, I mentioned those in one of my other messages).

I used these old backup files to overwrite my crashed files. And the problem solved.
__________________
The Swedish "mambofan" - Sanca

Site Admin of following site(s):
http://www.dalajarna.se/
Sanca is offline   Reply With Quote
Old July 11th, 2005, 09:45   #8
manuman
 
manuman's Avatar
 
Join Date: Mar 2004
Location: Western Australia
Posts: 552
manuman is on a distinguished road
Default

A little late night reading if your interested.

http://dev.mysql.com/doc/mysql/en/repair.html

Cheers
manuman
__________________
http://www.thejfactory.com the new home of the Letterman Newsletter extension.
manuman is offline   Reply With Quote
Old July 11th, 2005, 09:49   #9
Sanca
 
Sanca's Avatar
 
Join Date: Feb 2005
Location: Karlskoga, Sweden
Posts: 13
Sanca is on a distinguished road
Default

I tried to repair the tables in mysql administrator but the table wouldn't show in the list so I had to investigate if the files with the table really excisted. Thats how I found out that I could just replace the files, and why I didn't repair the table.
__________________
The Swedish "mambofan" - Sanca

Site Admin of following site(s):
http://www.dalajarna.se/
Sanca is offline   Reply With Quote
Old July 24th, 2005, 03:10   #10
martintbird
 
martintbird's Avatar
 
Join Date: Mar 2004
Location: Hong Kong
Posts: 69
martintbird is on a distinguished road
Default Phew! - thanks a lot

just had same problem (after server had some trouble), and found this thread via google search

Looked very scary.
I ran speed-addiction's code lines as a mysql query, using phpmyadmin from cPanel (maybe many folk know all about such things; but pretty new to me - I'd only once used phpmyadmin before, to upgrade mambo)

- worked fine; so thanks very much
__________________
--Signature Rules: http://forum.mamboserver.com/showthread.php?t=36375
martintbird is offline   Reply With Quote
Old August 21st, 2005, 05:11   #11
rpersonius
 
Join Date: Apr 2005
Posts: 10
rpersonius is on a distinguished road
Thumbs up Thank you Thank you Thank you!!!!

Wow, very scary is right. I just noticed the same error on one of my sites. With the use of your SQL I was able to fix it in no time. Now all I have to do is figure out what caused this error in the first place.
rpersonius is offline   Reply With Quote
Old October 27th, 2005, 08:09   #12
marian
 
Join Date: Jul 2004
Posts: 68
marian is on a distinguished road
Default

Quote:
Originally Posted by speed-addiction
Here you go, I really freaked out when it happenned to me, I still donīt know the reason it appeared, however I would like someone to help me at the time...

replace de mos_session entry in the database

#
# Table structure for table `mos_session`
#
DROP table IF EXISTS mos_session;
CREATE TABLE `mos_session` (
`username` varchar(50) default '',
`time` varchar(14) default '',
`session_id` varchar(200) NOT NULL default '0',
`guest` tinyint(4) default '1',
`userid` int(11) default '0',
`usertype` varchar(50) default '',
`gid` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`session_id`),
KEY `whosonline` (`guest`,`usertype`)
) TYPE=MyISAM;
#
# Dumping data for table `mos_session`
#


and it should work allright....
Having posted a new thread about this very topic, I've been searching and searching and found several threads about the same prob.
Your solution was the only one that produced a cure. So a million thanks to you.
It would be nice if someone could make this a sticky as i'm sure there are others out there who are going to tear their hair out in the future and this fix will save them a lot of grief.
The only other thing I'd like to know are the precise steps for running this script myself in phpadmin, as I had to get our host to do it.
Thanks a lot again.
marian is offline   Reply With Quote
Old November 28th, 2005, 07:31   #13
RSGracey
 
Join Date: Jul 2005
Posts: 25
RSGracey is on a distinguished road
Default

Thanks!--Stored this code in a query in Navicat, and if it ever happens again, *knock wood* I'll be able to run it again. It worked!

Stephen
RSGracey is offline   Reply With Quote
Old November 30th, 2005, 19:17   #14
ensonix
 
Join Date: Dec 2004
Location: Newport Beach, CA
Posts: 6
ensonix is on a distinguished road
Default

Hi

I'm actually getting this error every day, sometimes together with corrupt mos_content, mos_rsgallery, mos_rsgalleryfiles and mos_statsagent tables.

I have tried rebuilding the mos_sessions tables using the sql code above, but the error just keeps happening. Is it worth just deleting the database and restoring from a backup?
__________________
Ryan Salt
Ensonix Enterprises, Inc
High Availability Network Solutions
http://www.ensonix.com/
ensonix is offline   Reply With Quote
Old December 2nd, 2005, 09:56   #15
ensonix
 
Join Date: Dec 2004
Location: Newport Beach, CA
Posts: 6
ensonix is on a distinguished road
Default

Anybody got a solution for preventing this? Our site is down for the fifth day this week. I can't monitor it every minute of the day, and it seems to be a problem with the way the sessions table is being written to by Mambo
__________________
Ryan Salt
Ensonix Enterprises, Inc
High Availability Network Solutions
http://www.ensonix.com/
ensonix is offline   Reply With Quote
Old December 5th, 2005, 16:06   #16
asmar
 
Join Date: Apr 2004
Posts: 48
asmar is on a distinguished road
Default

Anyone from the Mambo team with a solution to this serious bug?
It happened to me as well more than a couple of times during last week.

Thanks
asmar is offline   Reply With Quote
Old January 12th, 2006, 09:51   #17
mack
 
Join Date: Nov 2005
Posts: 1
mack is on a distinguished road
Exclamation error number 1016 - How to Solve

I had this error:
DB function failed with error number 1016
Can't open file: 'mos_session.MYI'. (errno: 145) SQL=SELECT session_id FROM mos_session WHERE session_id=MD5('e20eafcf277b7bc0dd125357b4a1b223')
SQL =
SELECT session_id FROM mos_session WHERE session_id=MD5('e20eafcf277b7bc0dd125357b4a1b223'

How to solve this:

The fast and easy way:
  1. Stop the MySQL Server, with some like this: /etc/init.d/mysql stop
  2. Go to the DB storage directory "/var/lib/mysql/{your_db}/"
  3. Backup the data file wwwm_session.MYI
  4. Run this: myisamchk ./wwwm_session.MYI
  5. Read the messages, if no have critical error try with: myisamchk -r ./wwwm_session.MYI
  6. Read the messages, if no have critical error congratulations! your data file was recovered, just start the MySQL Server, with some like this: /etc/init.d/mysql start

If you have a critical errors or if you want to learn more about this error go to:
http://dev.mysql.com/doc/refman/5.0/en/repair.html

Enjoy!
mack is offline   Reply With Quote
Old January 25th, 2006, 19:01   #18
RockLee
 
Join Date: Sep 2004
Posts: 22
RockLee is on a distinguished road
Unhappy Recurring 'DB function failed with error number 1016'

I've tried speed-addiction's fix and it works fine. However about a week later, the same error occured again.

Does anyone know what's causing this? I check the server's error log and found nothing. Does this happens only to those who upgraded to 4.5.3?

How can I fix this problem at its root to prevent it from re-occuring? Any suggestions would be appreciated. TIA!


P/S: Can't try Mack's suggestion as I do not have shell access.
RockLee is offline   Reply With Quote
Old February 17th, 2006, 07:21   #19
RSGracey
 
Join Date: Jul 2005
Posts: 25
RSGracey is on a distinguished road
Default Use Navicat, and "repair tables"

I've since discovered that Navicat has a "repair tables" function. I now make it a regular practice to run the function, just to keep things neat, and the "session" issue doesn't happen anymore.

Stephen
RSGracey is offline   Reply With Quote
Old February 20th, 2006, 00:05   #20
RockLee
 
Join Date: Sep 2004
Posts: 22
RockLee is on a distinguished road
Unhappy

Navicat is too expensive for me, besides it doesn't solve the problem at the root if I have to repair tables on a regular basis. I didn't need to do this in the past.

My web hoster says the problem lies with Mambo, but I have a few other sites using mambo that doesn't have this problem at all.

Does anyone know what's causing the error number 1016 for mos_session table?
RockLee is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 07:21.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.