[ERROR] Failed to open log (file ‘/mysqllogs/logs/*****‘, errno 2)

Production:

Mysql Server

Sysptom:

2021-11-18T02:41:00.473687Z 0 [Note] InnoDB: Buffer pool(s) load completed at 211118 10:41:00
mysqld: File '/mysqllogs/logs/****' not found (Errcode: 2 - No such file or directory)
2021-11-18T02:41:00.473953Z 0 [ERROR] Failed to open log (file '/mysqllogs/logs/*****', errno 2)
2021-11-18T02:41:00.473958Z 0 [ERROR] Could not open log file
2021-11-18T02:41:00.473967Z 0 [ERROR] Can't init tc log
2021-11-18T02:41:00.473970Z 0 [ERROR] Aborting

Solution:

Please check your bin logs on the disks.
Probably go to /mysqllogs/logs/, find index file, remove the bin logs entries from the index file don't exist on disk anymore.

Check the binlog.index

# less  binlog.index

Audit the file, will remove the entry at almost cases

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]和\[2\]中提到的错误信息是由于nginx无法打开错误日志文件"/usr/local/nginx/logs/error.log"和访问日志文件"/usr/local/nginx/logs/access.log"所致。这通常是因为这两个文件不存在导致的。解决这个问题的方法是手动创建这两个文件。首先,您需要创建一个名为"logs"的文件夹,可以使用命令"mkdir logs"来创建。然后,使用命令"vim error.log"和"vim access.log"来创建error.log和access.log文件。最后,在sbin目录下启动nginx,这样就可以成功使用nginx了。请注意,这里的路径是根据引用内容中提供的路径来解释的,如果您的路径不同,请相应地进行调整。 #### 引用[.reference_title] - *1* [nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.logfailed (2: ...](https://blog.csdn.net/qq_15267341/article/details/122795659)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Linux 安装nginx出现 nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/...](https://blog.csdn.net/qq_44608983/article/details/116801242)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值