Database exception - what's next
Generally speaking there are three reasons for this:
- the database has been screwed up (quiet common)
- an invalid SQL-query has been sent (occurs seldom in stable versions)
- database versions does not match and should be updated
The first step is finding out more.
Database not available?
If you even can't login any more. The database is not available. Use phpmysql or other tools to check your server.
Available but problems? - Get more details
If this is only a problem of a special page inside streber or is not reproducable this could be a SQL-problem. We need to find out more...
- log in as project manager or admin
- click on system info in the footer
- click on error.log : Parse
- go to the end of the list and look for the error-message like
20060616001505 ERROR: db/db.inc.php:38 - Datenbankfehler (hide)
- click on the date-number at the left for details
The details could look this this:
from errors.log
Error 20060616002056 ERROR: db/db.inc.php : 38 Datenbankfehler
Error 20060616002056 db/db.inc.php : 249 -> MysqlException::__construct("Querry=SELECT p.* from project")
Error 20060616002056 db/class_person.inc.php : 734 -> DB_MysqlStatement::execute("", int1)
Error 20060616002056 index.php : 304 -> Person::getProjects()
Error 20060616002056
Error 20060616002056 Variables in __construct():
Error 20060616002056 message = Querry=SELECT p.* from project p, projectperson pp
Error 20060616002056 WHERE
Error 20060616002056 p.status <= 5
Error 20060616002056 AND p.status >= 2
Error 20060616002056 AND p.state = 1
Error 20060616002056
Error 20060616002056 AND pp.person = 11
Error 20060616002056 AND pp.project = p.id
Error 20060616002056 AND pp.state=1
Error 20060616002056 ORDER BY prio, name
Error 20060616002056
Error 20060616002056 code = NULL
Error 20060616002056 sql_obj = Object id #21
Error 20060616002056 mysql_error = Can't open file: 'project.MYI' (errno: 145)
Error 20060616002056 v0.0621, from 84.190.17.16, uri:/
Error 20060616002056
Especially interessting is the line starting with
mysql_error =:
mysql_error = Can't open file: 'project.MYI'
tells us, that the sql-table index-files are missing. To fix this
use mysqladmin to repair sql-tables. In all cases this fixed the problem for me.
mysql_error = Incorrect key file for table 'project'; try to repair it
tells us, that the sql-table index-files are missing. To fix this
use mysqladmin to repair sql-tables. In all cases this fixed the problem for me.
Other errors
This might be a programming error. But before reporting this...
- check you version (at the bottom of the error-report) maybe there is a fix outside.
- search the tracker for a detail of the report (e.g.
class_person.inc.php) to find similar posts.
Report Bugs
Submitting bugs will help us! Please do.
But you should read
How to submit Bugs before doing so. Please
do not add comments if you actually want to add bug reports.