首页 文章

上下文代理未启动:“su:user orion不存在”

提问于
浏览
1

我正在尝试使用命令/etc/init.d/contextBroker部署contextBroker,我收到以下错误:

Starting...
contextBroker is stopped
Starting contextBroker...                         su: user orion does not exist
cat: /var/log/contextBroker/contextBroker.pid: No such file or directory
pidfile not found                                          [FAILED]

使用以下命令,我可以启动contextBroker:

/ usr / bin / contextBroker -port 10026 -logDir / var / log / contextBroker -pidpath /var/log/contextBroker/contextBroker.pid -dbhost localhost -db orion

这可能是问题的原因?

1 回答

  • 1

    在0.16.0中修复了Orion RPM中的一个错误,导致在更新RPM包时删除了"orion"用户 . "orion"用户是/etc/init.d/contextBroker脚本默认使用的用户,因此导致错误消息 su: user orion does not exist .

    请注意,虽然错误已在0.16.0中修复,但从0.15.0(例如)更新到0.16.0将会有问题,因为正在更新的版本(0.15.0)仍然是“错误” . 从0.16.0更新到任何更新版本(例如即将推出的0.17.0)应该没有问题 .

    幸运的是,这个问题有一个简单的解决方案:不是更新软件包,而是将其删除并重新安装,通常使用:

    yum remove contextBroker
    yum install contextBroker
    

相关问题