【环境信息】
NAME="openEuler"
VERSION="22.03 (LTS-SP3)"
ID="openEuler"
VERSION_ID="22.03"
PRETTY_NAME="openEuler 22.03 (LTS-SP3)"
ANSI_COLOR="0;31"
软件信息:
obs-server-2.10.15-7.oe2203sp3
【问题复现步骤】
dnf install -y mariadb-server obs-api obs-server postgresql-libs
mv /etc/my.cnf /etc/my.bak
systemctl start mariadb
echo 'create database api_production;' | mysql
systemctl start obssrcserver
sed -i 's/^OBS_API_AUTOSETUP=.*/OBS_API_AUTOSETUP="yes"/g' /etc/sysconfig/obs-server
systemctl start obsapisetup
systemctl status obsapisetup
【预期结果】
服务启动后,状态正常,没有异常信息
【实际结果】
服务启动后,有异常报错
Hi zhangpanting, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Others, and any of the maintainers: @small_leek , @jimmy_hero , @mdche , @王歌
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
错误信息:
/usr/lib/obs/server/functions.setup-appliance.sh: line 683: sign: command not found
Failed to get unit file state for signd.service: No such file or directory
原因分析:obsapisetup.service服务启动成功,状态正常,日志中有以上两条信息。分析可知缺少的signd.service和sign由obs-sign提供,openeuler未引入该包。
上游地址:https://github.com/openSUSE/obs-sign
1.obsapisetup.service为obs-server基础服务,obsapisetup.service启动成功后,其他上层服务才能正常启动,obs-server中其他上层服务都正常,故obsapisetup.service基本功能正常
2.obs-server官方spec文件中标记obs-signd为弱依赖,非必要依赖。
地址:https://github.com/openSUSE/open-build-service/blob/master/dist/obs-server.spec 206行
Recommends: obs-signd
综上,不建议引入obs-signd软件包。
同意开发观点,该问题单取消
登录 后才可以发表评论