{"record":{"id":"e3985bb2a77a6244","repo":"nginx/nginx","slug":"ngx-log-crit-e3985b","errorCode":"NGX_LOG_CRIT","errorMessage":"aio read \\\"%s\\\" failed","messagePattern":"aio read \\\\\"(.+?)\\\\\" failed","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/os/unix/ngx_linux_aio_read.c","lineNumber":90,"sourceCode":"        return NGX_AGAIN;\n    }\n\n    ngx_log_debug4(NGX_LOG_DEBUG_CORE, file->log, 0,\n                   \"aio complete:%d @%O:%uz %V\",\n                   ev->complete, offset, size, &file->name);\n\n    if (ev->complete) {\n        ev->active = 0;\n        ev->complete = 0;\n\n        if (aio->res >= 0) {\n            ngx_set_errno(0);\n            return aio->res;\n        }\n\n        ngx_set_errno(-aio->res);\n\n        ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno,\n                      \"aio read \\\"%s\\\" failed\", file->name.data);\n\n        return NGX_ERROR;\n    }\n\n    ngx_memzero(&aio->aiocb, sizeof(struct iocb));\n\n    aio->aiocb.aio_data = (uint64_t) (uintptr_t) ev;\n    aio->aiocb.aio_lio_opcode = IOCB_CMD_PREAD;\n    aio->aiocb.aio_fildes = file->fd;\n    aio->aiocb.aio_buf = (uint64_t) (uintptr_t) buf;\n    aio->aiocb.aio_nbytes = size;\n    aio->aiocb.aio_offset = offset;\n    aio->aiocb.aio_flags = IOCB_FLAG_RESFD;\n    aio->aiocb.aio_resfd = ngx_eventfd;\n\n    ev->handler = ngx_file_aio_event_handler;\n","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/nginx/nginx/blob/3f6f7824d4e2eb1ac37dec76683d525ac0ff521c/src/os/unix/ngx_linux_aio_read.c#L72-L108","documentation":"Error \"aio read \\\"%s\\\" failed\" thrown in nginx/nginx.","triggerScenarios":"Thrown at src/os/unix/ngx_linux_aio_read.c:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f6f7824d4e2eb1ac37dec76683d525ac0ff521c","analyzedAt":"2026-08-22T03:09:46.447Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}