-
Notifications
You must be signed in to change notification settings - Fork 28
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
[Question]: observer安装目录和运行目录不在同一目录导致Diagnostic执行报错 #325
Comments
~/.obdiag/config.yml 中observer 的home_path应该是WorkingDirectory |
When i set home_path: /data/observer, running obdiag throw exception: '/data/observer/bin/observer: No such file or directory'. |
这个部署方式是你们自己写的部署方式吗,非官方文档标准的部署方式 |
安装目录和运行目录,不在同一个磁盘目录是一个常规需求,不应该绑定pid在ob_install_dir目录。能否home_path拆分成两个变量,install_dir、work_dir,默认这两个变量都是一样,但是允许用户指定。 官方文档: pid源码: def get_observer_pid(ssh_client, ob_install_dir, stdio=None): |
good idea |
纳入2.4.0 迭代 |
Description
OceanBase Diagnostic Tool: 2.2.0
systemctl observer config:
[Unit]
Description=observer
[Service]
Type=forking
WorkingDirectory=/data/observer
ExecStart=/home/op1/oceanbase/bin/observer
Restart=on-failure
RestartSec=5
StartLimitInterval=0
User=op1
Group=op1
Environment="LD_LIBRARY_PATH=/home/op1/oceanbase/lib"
[Install]
WantedBy=multi-user.target
Due to WorkingDirectory=/data/observer, the pid file path is /data/observer/run/observer.pid
When i set home_path: /home/op1/oceanbase, running obdiag throw exception: 'cat: /home/op1/oceanbase/run/observer.pid: No such file or directory'.
When i set home_path: /data/observer, running obdiag throw exception: '/data/observer/bin/observer: No such file or directory'.
The text was updated successfully, but these errors were encountered: