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

时间:2014-11-05 15:47:22

标签: fiware-orion fiware

我正在尝试使用命令/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 个答案:

答案 0 :(得分: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