Results 1 to 9 of 9

Thread: Can't open file: 'notes.MYI'

  1. #1
    tgra is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    29

    Default E-mail problem: Can't open file: 'notes.MYI'

    Runing trixbox, with latest patches for SugarCRM.

    Everything have worked fine for months, but today when people should check there e-mails. They got this error in the inbox:

    Error filling in additional list fields: Query Failed:select 1 from notes where notes.parent_id = '682995e3-77d7-8f1e-16f7-457bf0c18f11' and notes.deleted = 0::MySQL error 1016: Can't open file: 'notes.MYI' (errno: 145)
    When I open PhpMyAdmin it says that it can not open the table 'notes' in the sugarcrm database. What can I do to fix this error?

    I get this error in PMA:

    SHOW INDEX FROM `notes` ;

    MySQL sa: Dokumentasjon
    #1016 - Can't open file: 'notes.MYI' (errno: 145)
    Thomas..
    Last edited by tgra; 2006-12-10 at 11:04 AM. Reason: Adding more information...

  2. #2
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Can't open file: 'notes.MYI'

    Hi,

    Your tables may be corrupted. There are some documentation about ways to check or repair tables below.
    http://dev.mysql.com/doc/refman/5.0/...am-tables.html
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  3. #3
    tgra is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    29

    Default Re: Can't open file: 'notes.MYI'

    It is not possible to repair this table. The error messages says that it can not open the file: notes.myi. Is there anyway to rebuild the table: notes?

    Thomas..

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Can't open file: 'notes.MYI'

    Quote Originally Posted by tgra
    It is not possible to repair this table. The error messages says that it can not open the file: notes.myi. Is there anyway to rebuild the table: notes?

    Thomas..
    First find out why it cant read the file. Is it not there, is it there but currupt, are the permissions or owners screwed up on it. if it is there then just rename it something else (like notes.tmp) and run a 'REPAIR TABLE notes USE_FRM;'. It's been a real long time since I had to deal with a currupt index file but I thnk this works.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    tgra is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    29

    Default Re: Can't open file: 'notes.MYI'

    Thank you for your quick answer.

    Where should i look to find the file?

    Thomas,

  6. #6
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Can't open file: 'notes.MYI'

    Quote Originally Posted by tgra
    Thank you for your quick answer.

    Where should i look to find the file?

    Thomas,
    In Linux use the command 'find / | grep notes.myi' in windows just use the search command.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  7. #7
    tgra is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    29

    Default Re: Can't open file: 'notes.MYI'

    I am using Linux so I used th command: find / | grep notes.mui. It did not return anything.

    I then deleted the notes table and replaced it with an old backup. The e-mails is back, but I do not know how much I lost and what is stored in the notes table? It seemed like the notes table stored information about attachement? Does that mean that I have all the e-mails but may have lost some attachements?

    Thank you all for your participation!

    Thomas..

  8. #8
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Can't open file: 'notes.MYI'

    Quote Originally Posted by tgra
    I am using Linux so I used th command: find / | grep notes.mui. It did not return anything.

    I then deleted the notes table and replaced it with an old backup. The e-mails is back, but I do not know how much I lost and what is stored in the notes table? It seemed like the notes table stored information about attachement? Does that mean that I have all the e-mails but may have lost some attachements?

    Thank you all for your participation!

    Thomas..
    that I am note sure of, I don't use the email module so I have no idea what it stores where. Wish I could have helped more. You are going to make some 'new' backups now tho right? If you need a script I can send you one.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  9. #9
    tgra is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    29

    Default Re: Can't open file: 'notes.MYI'

    Hello!

    It all works now! I used your command: 'REPAIR TABLE notes USE_FRM;' The file was there but it did not pu MYI in capital letters in the search. I then deleted the old notes.MYI and logged on to the console in MYSQL and runned the repair command.

    It now works again!!!

    Thank you very much!

    Thomas..
    Last edited by tgra; 2006-12-11 at 03:01 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •