1. 程式人生 > >Magento報錯General error: 1030 Got error 28 from storage engine

Magento報錯General error: 1030 Got error 28 from storage engine

開啟一個Magento的網站突然報錯了,到伺服器上查看了下錯誤報告,內容如下:

a:5:{i:0;s:69:"SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine";i:1;s:2217:"#0 /home/website/public_html/buy/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/website/public_html/buy/lib/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)
#2 /home/website/public_html/buy/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `attr_ta...', Array)
#3 /home/website/public_html/buy/lib/Varien/Db/Adapter/Pdo/Mysql.php(333): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `attr_ta...', Array)
#4 /home/website/public_html/buy/lib/Zend/Db/Adapter/Abstract.php(706): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#5 /home/website/public_html/buy/app/code/core/Mage/Eav/Model/Entity/Abstract.php(891): Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
#6 /home/website/public_html/buy/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Abstract.php(647): Mage_Eav_Model_Entity_Abstract->load(Object(Mage_Catalog_Model_Category), 3, NULL)
#7 /home/website/public_html/buy/app/code/core/Mage/Core/Model/Abstract.php(225): Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract->load(Object(Mage_Catalog_Model_Category), 3, NULL)
#8 /home/website/public_html/buy/app/code/core/Mage/Catalog/controllers/CategoryController.php(51): Mage_Core_Model_Abstract->load(3)
#9 /home/website/public_html/buy/app/code/core/Mage/Catalog/controllers/CategoryController.php(107): Mage_Catalog_CategoryController->_initCatagory()
#10 /home/website/public_html/buy/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_CategoryController->viewAction()
#11 /home/website/public_html/buy/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('view')
#12 /home/website/public_html/buy/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /home/website/public_html/buy/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#14 /home/website/public_html/buy/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#15 /home/website/public_html/buy/index.php(80): Mage::run('', 'store')
#16 {main}";s:3:"url";s:15:"/buy/cloud.html";s:11:"script_name";s:14:"/buy/index.php";s:4:"skin";s:7:"default";}

在Magento官方論壇上看到也有人碰到過這種情況, 他們是通過清除/tmp目錄下的內容解決的。

於是我用df命令查看了下伺服器磁碟空間的使用情況,果然是用來掛載/tmp目錄的磁碟空間用完了,於是使用rm命令清除了/tmp目錄下的內容,哈哈,網站能正常訪問了。