[MDEV-23344] InnoDB: Fatal: Trying to access page number 57 in space 182 space name zabbix/items. Created: 2020-07-30 Updated: 2021-05-17 Resolved: 2021-05-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server, Storage Engine - InnoDB |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.1.38, 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Everton Barbosa Kopec | Assignee: | Marko Mäkelä |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | crash, need_feedback | ||
| Environment: |
Debian release 9.9 |
||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
Hi guys, I was trying to solve “outside tablespace bounds” MySQL error but I could not up the even the MySQL server. I tried to set innodb_force_recovery=1 and then up to 6 and but still got the same error. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused") But there is mysqld.sock in this folder. Could someone show me a light? |
| Comments |
| Comment by jingbo zhao [ 2020-07-31 ] |
|
hi Everton Barbosa Kopec, what do on your MySQL server to cause this problem? and please paste the complete mysql error log. |
| Comment by Everton Barbosa Kopec [ 2020-07-31 ] |
|
Hi Jingbo Zhao, |
| Comment by Marko Mäkelä [ 2020-08-05 ] |
|
According to the message, something seems to attempt accessing a page right after the end of the data file. Be aware that setting innodb_force_recovery to 4 or higher may corrupt the database further. The setting 6 is the worst. Do not expect anything to be consistent. Setting innodb_force_recovery to 4 should prevent any background access to the table. But it may also corrupt secondary indexes in tables. But you may attempt to rescue data by mysqldump or similar. A simple trick could be to remove or rename that data file so that it cannot be accessed. I cannot help with the socket problem. I would suggest to check the server error log and the process table. Maybe an old server process did not die and is preventing a new one from acquiring advisory locks on the files? I wonder if this could be something that we fixed in |
| Comment by Elena Stepanova [ 2020-09-06 ] |
|
For the socket problem – the socket is removed upon normal shutdown. Since your server keeps crashing, it doesn't get to remove the socket, that's why it is still there. |
| Comment by Marko Mäkelä [ 2020-10-28 ] |
|
This is not exactly a duplicate of Starting with |
| Comment by Marko Mäkelä [ 2021-04-13 ] |
|
We have not seen anything like this in our internal testing. Apparently the data file was truncated at some point. What happened before the time the log started? Was there some previous crash recovery or restore from a backup? What would SHOW CREATE TABLE report for the table definition? Can you get a fully resolved stack trace of the crash that would identify the current index? If the table contains a secondary index, then this might have been fixed by |