InnoDB: повреждение в табличном пространстве InnoDB |mysqld получил сигнал 6; - PullRequest
0 голосов
/ 14 октября 2019

Я пытался развернуть сервер Prisma API с использованием MySQL v5.7.22 и, проверяя журналы контейнера Docker, обнаружил следующее сообщение об ошибке: InnoDB: Assertion failure in thread 140621143836480 in file ut0ut.cc line 942

Я пытался повторно развернуть сервер Prisma безsuccess.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68195 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
mysqld(my_print_stacktrace+0x2c)[0x5653919db1ec]
mysqld(handle_fatal_signal+0x479)[0x565391309e59]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f279e6940c0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcf)[0x7f279ce20fff]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f279ce2242a]
mysqld(+0x628387)[0x5653912e0387]
mysqld(_ZN2ib5fatalD1Ev+0x12d)[0x565391ba9c8d]
mysqld(+0xf9ead1)[0x565391c56ad1]
mysqld(+0xf9f108)[0x565391c57108]
mysqld(_Z6fil_ioRK9IORequestbRK9page_id_tRK11page_size_tmmPvS8_+0x2b0)[0x565391c60230]
mysqld(_Z13buf_read_pageRK9page_id_tRK11page_size_t+0xce)[0x565391c151ee]
mysqld(_Z16buf_page_get_genRK9page_id_tRK11page_size_tmP11buf_block_tmPKcmP5mtr_tb+0x4aa)[0x565391be434a]
mysqld(_Z31trx_rseg_get_n_undo_tablespacesPm+0x143)[0x565391b87e23]
mysqld(+0x6274fb)[0x5653912df4fb]
mysqld(_Z34innobase_start_or_create_for_mysqlv+0x2f3d)[0x565391b54cdd]
mysqld(+0xd69f63)[0x565391a21f63]
mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x4f)[0x565391354bff]
mysqld(+0xb138e6)[0x5653917cb8e6]
mysqld(_Z40plugin_register_builtin_and_init_core_sePiPPc+0x2f0)[0x5653917cead0]
mysqld(+0x64a566)[0x565391302566]
mysqld(_Z11mysqld_mainiPPc+0xc71)[0x565391304121]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f279ce0e2e1]
mysqld(_start+0x2a)[0x5653912fa80a]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
2019-10-14T16:32:37.994801Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-14T16:32:37.996033Z 0 [Note] mysqld (mysqld 5.7.22) starting as process 1 ...
2019-10-14T16:32:37.999266Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-10-14T16:32:37.999279Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-10-14T16:32:37.999302Z 0 [Note] InnoDB: Uses event mutexes
2019-10-14T16:32:37.999304Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-10-14T16:32:37.999307Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2019-10-14T16:32:37.999309Z 0 [Note] InnoDB: Using Linux native AIO
2019-10-14T16:32:37.999645Z 0 [Note] InnoDB: Number of pools: 1
2019-10-14T16:32:37.999806Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-10-14T16:32:38.001533Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-10-14T16:32:38.011344Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-10-14T16:32:38.013250Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-10-14T16:32:38.024946Z 0 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!
2019-10-14 16:32:38 0x7f4560bde740  InnoDB: Assertion failure in thread 139935952529216 in file ut0ut.cc line 942
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
16:32:38 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68195 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
mysqld(my_print_stacktrace+0x2c)[0x5593027191ec]
mysqld(handle_fatal_signal+0x479)[0x559302047e59]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f45607bc0c0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcf)[0x7f455ef48fff]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f455ef4a42a]
mysqld(+0x628387)[0x55930201e387]
mysqld(_ZN2ib5fatalD1Ev+0x12d)[0x5593028e7c8d]
mysqld(+0xf9ead1)[0x559302994ad1]
mysqld(+0xf9f108)[0x559302995108]
mysqld(_Z6fil_ioRK9IORequestbRK9page_id_tRK11page_size_tmmPvS8_+0x2b0)[0x55930299e230]
mysqld(_Z13buf_read_pageRK9page_id_tRK11page_size_t+0xce)[0x5593029531ee]
mysqld(_Z16buf_page_get_genRK9page_id_tRK11page_size_tmP11buf_block_tmPKcmP5mtr_tb+0x4aa)[0x55930292234a]
mysqld(_Z31trx_rseg_get_n_undo_tablespacesPm+0x143)[0x5593028c5e23]
mysqld(+0x6274fb)[0x55930201d4fb]
mysqld(_Z34innobase_start_or_create_for_mysqlv+0x2f3d)[0x559302892cdd]
mysqld(+0xd69f63)[0x55930275ff63]
mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x4f)[0x559302092bff]
mysqld(+0xb138e6)[0x5593025098e6]
mysqld(_Z40plugin_register_builtin_and_init_core_sePiPPc+0x2f0)[0x55930250cad0]
mysqld(+0x64a566)[0x559302040566]
mysqld(_Z11mysqld_mainiPPc+0xc71)[0x559302042121]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f455ef362e1]
mysqld(_start+0x2a)[0x55930203880a]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
2019-10-14T16:33:39.671749Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-14T16:33:39.673175Z 0 [Note] mysqld (mysqld 5.7.22) starting as process 1 ...
2019-10-14T16:33:39.676620Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-10-14T16:33:39.676632Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-10-14T16:33:39.676654Z 0 [Note] InnoDB: Uses event mutexes
2019-10-14T16:33:39.676656Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-10-14T16:33:39.676660Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2019-10-14T16:33:39.676664Z 0 [Note] InnoDB: Using Linux native AIO
2019-10-14T16:33:39.676961Z 0 [Note] InnoDB: Number of pools: 1
2019-10-14T16:33:39.677114Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-10-14T16:33:39.678789Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-10-14T16:33:39.687796Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-10-14T16:33:39.689745Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-10-14T16:33:39.701344Z 0 [ERROR] [FATAL] InnoDB: Table flags are 0 in the data dictionary but the flags in file ./ibdata1 are 0x4800!
2019-10-14 16:33:39 0x7f9bbf300740  InnoDB: Assertion failure in thread 140306904254272 in file ut0ut.cc line 942
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
16:33:39 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68195 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
mysqld(my_print_stacktrace+0x2c)[0x55c540c301ec]
mysqld(handle_fatal_signal+0x479)[0x55c54055ee59]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f9bbeede0c0]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcf)[0x7f9bbd66afff]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f9bbd66c42a]
mysqld(+0x628387)[0x55c540535387]
mysqld(_ZN2ib5fatalD1Ev+0x12d)[0x55c540dfec8d]
mysqld(+0xf9ead1)[0x55c540eabad1]
mysqld(+0xf9f108)[0x55c540eac108]
mysqld(_Z6fil_ioRK9IORequestbRK9page_id_tRK11page_size_tmmPvS8_+0x2b0)[0x55c540eb5230]
mysqld(_Z13buf_read_pageRK9page_id_tRK11page_size_t+0xce)[0x55c540e6a1ee]
mysqld(_Z16buf_page_get_genRK9page_id_tRK11page_size_tmP11buf_block_tmPKcmP5mtr_tb+0x4aa)[0x55c540e3934a]
mysqld(_Z31trx_rseg_get_n_undo_tablespacesPm+0x143)[0x55c540ddce23]
mysqld(+0x6274fb)[0x55c5405344fb]
mysqld(_Z34innobase_start_or_create_for_mysqlv+0x2f3d)[0x55c540da9cdd]
mysqld(+0xd69f63)[0x55c540c76f63]
mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x4f)[0x55c5405a9bff]
mysqld(+0xb138e6)[0x55c540a208e6]
mysqld(_Z40plugin_register_builtin_and_init_core_sePiPPc+0x2f0)[0x55c540a23ad0]
mysqld(+0x64a566)[0x55c540557566]
mysqld(_Z11mysqld_mainiPPc+0xc71)[0x55c540559121]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f9bbd6582e1]
mysqld(_start+0x2a)[0x55c54054f80a]
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

Команда prisma deploy не выдавала никаких ошибок с этой моделью данных:

scalar DateTime @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\DateTime")

type Channel {
    id: ID! @id
    title: String!
    description: String!
    legend: String
    videos: [Video] @hasMany @relation(name: "Channel_Video")
    banner: Banner @belongsTo
}

type Subtitle {
    id: ID! @id
    code: String!
    description: String!
    url: String!
    video: Video! @belongsTo
}

type Source {
    id: ID! @id
    quality: String!
    url: String!
    video: Video! @belongsTo
}

type Video {
    id: ID! @id
    title: String!
    sources: [Source] @hasMany
    thumb: String!
    duration: Int!
    description: String!
    legend: String!
    shownOnPremieres: Boolean!
    shownOnTheMostSeen: Boolean!
    shownOnExploreEverything: Boolean!
    channel: Channel! @belongsTo @relation(name: "Channel_Video")
    subtitles: [Subtitle] @hasMany
}

type Banner {
    id: ID! @id
    img: String!
    duration: String!
    backgroundColor: String!
    buttonColor: String!
    textColor: String!
}

type User {
    id: ID! @id
    name: String!
    email: String!
    created_at: DateTime! @createdAt
    updated_at: DateTime! @updatedAt
}

Но когда я перешел к http://localhost:4466/_admin, этот запрос:

{
  videos {
    id
    title
    thumb
    duration
    description
    legend
    shownOnPremieres
    shownOnTheMostSeen
    shownOnExploreEverything
  }
}

Не возвращает результатов, несмотря на наличие данных в БД.

Кто-нибудь знает, как исправить контейнер MySQL, чтобы иметь возможность запрашивать таблицы?

...