Forums / General Questions / 1017 Can't find file: 'sessions' (errno: 2) error after server crash

1017 Can't find file: 'sessions' (errno: 2) error after server crash

Views: 1,656

Results 1 to 2 of 2
29 Dec 2011, 6:40 AM
#1
alex_sg avatar

alex_sg

New Zenner

Join Date:
Dec 2011
Posts:
1
Plugin Contributions:
0

1017 Can't find file: 'sessions' (errno: 2) error after server crash

Hi,

Our shop https://www.optical8.com was running well after installation since last year. Yesterday we found that the connection of the pages to database was lost, we then contact the hosting provider, they checked and told us the database harddisk crashed, then they migrated the shop to a new server, we tried and a new error appearred as below,

1017 Can't find file: 'sessions' (errno: 2)
in:
[select value from sessions where sesskey = '80d18e21a6974176448287920885a64d' and expiry > '1325140832']

It looks like the table sessions got some problem, we tried to repair the table in Phpadmin but failed, could anyone help to solve this problem? Thanks in advance!

Alex

29 Dec 2011, 10:27 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: 1017 Can't find file: 'sessions' (errno: 2) error after server crash

Delete the "sessions" table (ONLY that table) from your database, and then restore that table from your backup.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.