Forums / General / "ezsession is marked as crashed and should be repaired"

"ezsession is marked as crashed and should be repaired"

Author Message

Ulrich L.

Monday 18 September 2006 11:13:54 am

Hi,
while toggling my harddrive with the szpublish installation between several computers, I must have made something wrong. Now I get the following MYSQL-error while trying to login in the admin interface. Logging in turns out to be impossible, the system always shows the same login page (admin siteaccess). The other siteaccesses aren't accessible as well.

Is there a way to reset the session manually without a browser?

060918 18:45:15 [ERROR] mysql\bin\mysqld: Table '.\myezp\ezsession' is marked as crashed and should be repaired
...
060918 18:45:16 [ERROR] mysql\bin\mysqld: Table 'ezcontentobject_version' is marked as crashed and should be repaired
060918 18:45:16 [ERROR] mysql\bin\mysqld: Sort aborted
060918 18:45:16 [ERROR] mysql\bin\mysqld: Table '.\myezp\ezsession' is marked as crashed and should be repaired
...

Claudia Kosny

Monday 18 September 2006 12:08:45 pm

Hi Ulrich

Did you by any chance remove your usb device without logging it off from the system? The some data might still have been in the cache and not written to the table which might have caused this error.

Anyhow - to access the database I would install PHPMyAdmin on the sever - if you use xampp you most likely have it anyway. If repairing does not help, just drop this table and create it new - I don't think that the ezsession table holds any relevant information.

Greetings from Luxembourg

Claudia

Ulrich L.

Monday 18 September 2006 1:04:18 pm

Thanks, Claudia.
I made a copy of the mysql database.
I dropped ezsession and had still an error concerning ezcontentobject_version.
I dropped ezcontentobject_version.

Now I don't get any errormessages from MYSQL, but I still get no access to my site anymore...

Is it lost forever...?

Claudia Kosny

Monday 18 September 2006 1:21:03 pm

Hi Ulrich

I think dropping ezcontentobject_version was a bad idea. The table ezsession holds afaik only session data, thus is is not incredibly important whereas ezcontentobject_version holds permanent data which is important for maintaining the objects. Hopefully I am wrong but I don't think you can recreate this data if the table is so corrupted that it cannot be repaired. What happened when you tried to repair the table? Do you get any error messages at all now?

Claudia

David Boman

Monday 18 September 2006 2:30:28 pm

Hi Ulrich,

As Claudia said, dropping ezsession is not much of a problem but dropping ezcontentobject_version was probaly not a good idea so I think your backup might come in handy :)

One easy way to repair your tables, is to use the tools shipped with mysql:

~ # mysqlrepair -A -e -v --auto-repair -p

Issuing this as root will prompt for the root password (-p) of your database instance and then do an extended (-e) check and automagically repair (--auto-repair) of all (-A) tables in the database, verbosley (-v) showing what is happening.

If you don't want to do it from the commandline but have access to phpMyAdmin then you can mark all tables in the database you have trouble with and select 'repair'. This will then do almost the same as above.

...and as always. Don't forget to take backups of all your databases before you do anything of this. :)

Ulrich L.

Tuesday 19 September 2006 12:35:53 am

Thanks, David.
I tried to repair the two tables, using phpadmin.

Having that done, I could access my siteaccess again (admin). However, I could only see the root node of the content tree, all the other content was gone...Behaviour was strange (couldn't access class management).
Perhaps it's better to downgrade to an older backup... Hmmm....
Or still any other ideas?

eZ debug

Timing: Jan 30 2025 21:27:26
Script start
Timing: Jan 30 2025 21:27:26
Module start 'content'
Timing: Jan 30 2025 21:27:26
Module end 'content'
Timing: Jan 30 2025 21:27:26
Script end

Main resources:

Total runtime0.3319 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.0703370.2813
Module start 'content' 0.00760.0144 958.35161,005.5625
Module end 'content' 0.02200.3098 1,963.91413,894.5391
Script end 0.3318  5,858.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00481.4428200.0002
Check MTime0.00140.4266200.0001
Mysql Total
Database connection0.00080.226310.0008
Mysqli_queries0.228268.75891410.0016
Looping result0.00160.48071390.0000
Template Total0.309593.210.3095
Template load0.00080.228910.0008
Template processing0.308793.011010.3087
Override
Cache load0.00050.162710.0005
Sytem overhead
Fetch class attribute can translate value0.00200.614910.0020
XML
Image XML parsing0.00030.079810.0003
General
dbfile0.00882.6450200.0004
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs