Results 1 to 6 of 6

Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

This is a discussion on Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145) within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi, Just tried to do some work on one of my shops ( http://www.foot-shop.co.uk/ ) and found the site is ...

      
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    63
    Rep Power
    6


    Default Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    Hi,

    Just tried to do some work on one of my shops (http://www.foot-shop.co.uk/) and found the site is down:

    "1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    select value from sessions where sesskey = '4e35589800a368e2d3cb6744dabe627e' and expiry > '1207988486'

    [TEP STOP]"


    I've done some searching on the forums and it sounds quite easy to fix (repairing table in database via PhpMyAdmin) but all the links I've found in previous threads don't seem to work? I want to make sure I do it properly and don't make the problem worse! Can someone please help ASAP?

    Many thanks,

    James

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    To repair the table, go use phpmyadmin (most hosts provide this in your control panel) and select the database. Then click the checkbox next to the sessions table, and select Repair from the dropdown at the bottom of the page.

    That should fix it.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Jan 2007
    Posts
    63
    Rep Power
    6


    Default Re: Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    Hi Michael,

    As always your advice is spot on! Thanks a bunch for that.

    Any idea what causes it? Is it likely to happen again?

    James

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    It is mostly a server level issue. Usually it is caused by an improper shutdown/restart of mysql (forced reboot, or not properly shutting down mysql during a service restart).

    Yes it can happen again at any time, if the server you are on is overloaded, unstable or otherwise poorly managed. It can also happen if whomever is working on the mysql server does not properly restart the service when they are doing that.

    Table corruption happens, especially on shared servers. It is a good idea to periodically repair and optimize all tables.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Member
    Join Date
    Jan 2007
    Posts
    63
    Rep Power
    6


    Default Re: Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    Hi Michael,

    Okay thanks for the info, will keep an eye out for that from now on.

    James

  6. #6
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    21


    Default Re: Website Down - 1016 - Can't open file: 'sessions.MYI'. (errno: 145)

    Just a fast note. If you are on a shared server think about getting off and getting on one where you have control. All it takes is one badly formed sql statement to bring your server to it knees - and this is your business after all. At about $200USD/mo the cost of a root server where you have control over it (or a managed server) is well worth the cost.

    If you are on your own server then you can do what I do on the servers I have, which is repair and optimize the tables on the 15th of each month. It's a simple cron job and it ensures that the server and mysql runs clean.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

Similar Threads

  1. error 1016 - Can't open file, help please
    By dmiles in forum osCommerce 2.2 Discussion
    Replies: 2
    Last Post: 09-06-2005, 09:24 AM
  2. Spider Sessions
    By Studio143 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 05-14-2005, 02:21 PM
  3. Please help! sessions are breaking for some reason
    By thinkweb in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-15-2005, 10:13 PM
  4. 1016 - Can't open file: 'sessions.MYD'. (errno: 145)
    By red_fraggle in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-22-2004, 10:55 AM
  5. 1016 Error message PLEASE HELP!!
    By Lalla in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-16-2004, 04:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •