【环境信息】
cat /etc/openEuler-latest
openeulerversion=openEuler-20.03-LTS-SP3
compiletime=2021-11-22-21-37-44
gccversion=7.3.0-20210628.42.oe1
kernelversion=4.19.194-2106.1.0.0088.oe1
openjdkversion=1.8.0.312.b07-5.oe1
【问题复现步骤】
具体操作步骤
setenforce 0
dnf install -y mariadb-server obs-api obs-server
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
setenforce 1
出现概率(是否必现,概率性错误):必现
【预期结果】
obsapisetup服务启动成功
【实际结果】
obsapisetup服务启动失败,导致以下服务启动失败
obs-delayedjob-queue-consistency_check
obs-delayedjob-queue-default
obs-delayedjob-queue-project_log_rotate
obs-delayedjob-queue-releasetracking
obsredis
obs-delayedjob-queue-staging
obs-delayedjob-queue-issuetracking
obsapisetup
obs-sphinx
obs-clockwork
obsnotifyforward
obs-delayedjob-queue-mailers
Hi wenjunryou, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: Others, and any of the maintainers: @jimmy_hero, @small_leek.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
问题分析:
经分析,部分服务启动时存在脚本、配置文件权限等问题,启动脚本以及安装依赖需要适配openeuler
修改方案:
obs-server依赖obs-bundled-gems,修复obs-bundled-gems脚本可执行权限,修改依赖mariadb为mariadb-server
obs-server修复obsapisetup服务启动脚本,修复配置文件/srv/www/obs/api/config/production.sphinx.conf属主为apache
注意obsapisetup服务类型为oneshot,主进程退出systemd认为服务完成。
[验收环境]
cat /etc/openEuler-latest
openeulerversion=openEuler-20.03-LTS-SP3
compiletime=2021-12-02-15-53-51
gccversion=7.3.0-20211123.43.oe1
kernelversion=4.19.90-2111.7.0.0125.oe1
openjdkversion=1.8.0.312.b07-5.oe1
[验收结果]
问题已修复,问题单回归通过
登录 后才可以发表评论