Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用容器启动goinception无法暂停gh-ost 执行的语句:time="2024/09/10 06:39:45.261" level=error msg="failed running command: echo throttle | nc -U /tmp/gh-ost.xxxxxxxx.3306.xxxxxx.sock; error=exit status 127" file=session_inception.go func=executeLocalOscPause line=6975 #678

Open
DolphinDong opened this issue Sep 10, 2024 · 0 comments

Comments

@DolphinDong
Copy link

DolphinDong commented Sep 10, 2024

描述

使用容器启动goinception无法暂停gh-ost 执行的语句:

程序正常返回,但是goinception内有一条报错日志:time="2024/09/10 06:39:45.261" level=error msg="failed running command: echo throttle | nc -U /tmp/gh-ost.xxxx.3306.xxxx.xxxxxx.sock; error=exit status 127" file=session_inception.go func=executeLocalOscPause line=6975

貌似容器内缺失gh-ost工具所需要的依赖包,日志并没有打印执行gh-ost二进制返回的输出,无法定位。

重现
模拟重现的步骤

环境

  • 数据库: mysql
  • 版本: mysql:5.7.44

参数

[osc]
# pt-osc参数
osc_on = false
#osc_min_table_size = 16
osc_min_table_size = 0

[ghost]
# gh-ost参数
ghost_allow_on_master = true
ghost_on = true
ghost_exact_rowcount = true
ghost_bin_dir = "/usr/local/bin"
ghost_initially_drop_socket_file = true
ghost_ok_to_drop_table = false
ghost_timestamp_old_table = true 

@DolphinDong DolphinDong changed the title 使用容器启动goinception无法暂停gh-ost 执行的语句:time="2024/09/10 06:39:45.261" level=error msg="failed running command: echo throttle | nc -U /tmp/gh-ost.192.168.66.11.3306.lebo_ops_test.cmdb_statistics_api_request.sock; error=exit status 127" file=session_inception.go func=executeLocalOscPause line=6975 使用容器启动goinception无法暂停gh-ost 执行的语句:time="2024/09/10 06:39:45.261" level=error msg="failed running command: echo throttle | nc -U /tmp/gh-ost.xxxxxxxx.3306.xxxxxx.sock; error=exit status 127" file=session_inception.go func=executeLocalOscPause line=6975 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant