oceanbase / obdiag

obdiag (OceanBase Diagnostic Tool) is designed to help OceanBase users quickly gather necessary information and analyze the root cause of the problem.
https://www.oceanbase.com/docs/obdiag-cn
Mulan Permissive Software License, Version 2
138 stars 32 forks source link

[Bug]: obdiag 1.6.2 在方德linux系统中转deb包失败 #127

Closed Teingi closed 7 months ago

Teingi commented 7 months ago

Describe the bug

转包命令

apt-get update
apt-get install alien -y
alien --scripts --to-deb  oceanbase-diagnostic-tool*.rpm #转为deb包
dpkg -i oceanbase-diagnostic-tool*.deb
source /usr/local/oceanbase-diagnostic-tool/init.sh

结果:

image

Environment

image

Fast reproduce steps

转包命令

apt-get update
apt-get install alien -y
alien --scripts --to-deb  oceanbase-diagnostic-tool*.rpm #转为deb包
dpkg -i oceanbase-diagnostic-tool*.deb
source /usr/local/oceanbase-diagnostic-tool/init.sh

Expected behavior

No response

Actual behavior

No response

Additional context

No response

Teingi commented 7 months ago

image

找了一台方德的操作系统测试发现是可以的

Teingi commented 7 months ago

最终排查为alien的问题,用户环境的alien包为8.95.4版本存在文件类型未识别问题,导致在复制阶段认为init.sh文件为文件夹进行了递归查找,原生debain机器可以使用新版本的alien,下载地址可以参考:https://mirrors.aliyun.com/ubuntu/pool/main/a/alien/?spm=a2c6h.25603864.0.0.407372d0hTx5G6