背景
- OS 版本 bcLinux 21.10
- cpu 架构 x86_64
- dtp版本 3.0.0
问题
- 安装时配置库没起来:

分析
- 使用root用户,手动用服务起,可以复现:
[root@*** /software/dtp_unzip]$ systemctl start panweidb
Job for panweidb.service failed because the control process exited with error code.
See "systemctl status panweidb.service" and "journalctl -xe" for details.
[root@*** /software/dtp_unzip]$ systemctl status panweidb.service
● panweidb.service - PanWei 2.0
Loaded: loaded (/etc/systemd/system/panweidb.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2024-08-13 14:54:53 CST; 2s ago
Process: 1290984 ExecStart=/dtp/deployment/panweidb/bin/pw_ctl start -D ${ADATA} (code=exited, status=217/USER)
- 使用omm用户,使用 pw_ctl 可以拉起,说明配置库本身是没有问题的;
- 使用
journalctl -xe
或
systemctl status panweidb | journalctl -xe
发现有报错:
8月 13 17:56:44 *** systemd[1079165]: panweidb.service: Failed to determine user credentials: No such process
8月 13 17:56:44 *** systemd[1079165]: panweidb.service: Failed at step USER spawning /dtp/deployment/panweidb/bin/pw_ctl: No such process
kafka 服务与配置库关系不大,也没起来,怀疑和某个具体服务无关。
解决
- 在网上查找上方报错后,尝试以下指令,解决了问题:
systemctl daemon-reexec
原因
怀疑该环境之前有修改 /etc/systemd/system.conf 的动作,但没有重载文件。
关于 systemctl daemon-reexec 指令:
daemon-reexec
Reexecute the systemd manager. This will serialize the manager state, reexecute the process and deserialize the state again. This command is of little use except for
debugging and package upgrades. Sometimes, it might be helpful as a heavy-weight daemon-reload. While the daemon is being reexecuted, all sockets systemd listening on
behalf of user configuration will stay accessible.
只执行 systemctl daemon-reload 不会重载 /etc/systemd/system.conf
其他
在 root 用户下使用 pw_ctl 启动数据库,发现有报错,但这实际是错误的排查方向,因为正常用 root 起也会报这个错误,跟环境变量有关(和正常磐维库一样):
[root@*** /software/dtp_unzip]$ /dtp/deployment/panweidb/bin/pw_ctl start -D /dtp/data/confdb
/dtp/deployment/panweidb/bin/pw_ctl: error while loading shared libraries: libgssapi_krb5_gauss.so.2: cannot open shared object file: No such file or directory
[root@*** /software/dtp_unzip]$ find / -name libgssapi_krb5_gauss.so.2
......
/dtp/deployment/panweidb/lib/libgssapi_krb5_gauss.so.2
最后修改时间:2024-08-16 23:29:10
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




