已解决 8.2.2升级到8.2.4后,后台备份,只备份sql.php数据,没有file.zip.php数据
禅道版本 8.2.4 源码包
操作系统 Other
客户端浏览器 Chrome

提问者: Jinwang 悬赏:5 日期: 2016-07-19 17:12:26 答案:1 点击:2736

获取技术支持

QQ: 电话:
设置备注
答案列表
最佳答案
2016/07/19
zentao/config/my.php 中debug的值改成true  ,后台-备份 点击备份按钮, 看日志文件(zentao/tmp/log/php开头的今天的文件)有什么报错。
2016/07/20
<?php
die();
?>

14:39:15 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting user-login

14:39:37 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting bug-create-3-0-moduleID=0

14:39:40 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting admin

14:39:43 ERROR: SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repairedThe sql is: SELECT * FROM `zt_cron` oRdEr bY `lastTime` desc lImiT 1 in lib\base\dao\dao.class.php on line 1301, last called by lib\base\dao\dao.class.php on line 707 through function sqlError.
in framework\base\router.class.php on line 1919 when visiting backup

14:39:45 Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 145 Table '.\zentao\zt_cron' is marked as crashed and should be repaired' in lib\zdb\zdb.class.php:202
Stack trace:
#0 lib\zdb\zdb.class.php(202): PDO->query('SHOW CREATE tab...')
#1 lib\zdb\zdb.class.php(94): zdb->getSchemaSQL('zt_cron', 'table')
#2 module\backup\model.php(24): zdb->dump('D:\xampp\zentao...')
#3 module\backup\control.php(82): backupModel->backSQL('D:\xampp\zentao...')
#4 [internal function]: backup->backup('yes')
#5 framework\base\router.class.php(1467): call_user_func_array(Array, Array)
#6 www\index.php(68): baseRouter->loadModule()
#7 {main}
thrown in lib\zdb\zdb.class.php on line 202 when visiting backup-backup-yes
2016/07/20
服务器断电导致数据库受损,登录数据库执行sql:REPAIR TABLE `zt_cron`;
2016/07/20
已解决,谢谢!