fiware orion - Pidfile not found when try to start the Contextbroker as system service -


i got problem when try upgrade standalone instance new version, easy solved creating pid file manually. @ time installing new version 0.14.0, i've made know, clean install , "step" not worked. maybe new updates should available yum update command.

[root@~]# /etc/init.d/contextbroker start starting... contextbroker stopped starting contextbroker...                         cat: /var/log/contextbroker/contextbroker.pid: no such file or directory pidfile not found                                          [failed] 

when run in fg(contextbroker -fg) works fine, thats way 'm using it.

that's curl localhost:1026/version output:

<orion>   <version>0.14.0</version>   <uptime>0 d, 0 h, 1 m, 59 s</uptime>   <git_hash>5e3d210e4b15fa9ebbfa07c93dd41f8b41697d0e</git_hash>   <compile_time>nodate</compile_time>   <compiled_by>fermin</compiled_by>   <compiled_in>centollo</compiled_in> </orion> 

addictionaly md5 checksum output:

[root@~]# md5sum /usr/bin/contextbroker d3f24c4670a9d25a22c8877c3cdcc2b4  /usr/bin/contextbroker 

how can solve that?

it seems if reason (e.g. in updates) pid file doesn't exist or content not aligned actual pid of process running in memory, /etc/init.d/contextbroker service script may fail stop broker.

thus, can apply following procedure:

  1. check there existing contextbroker process running.
  2. that process doesn't stop after /etc/init.d/contextbroker stop or /etc/init.d/contextbroker restart
  3. get pid of process (hint: use ps ax | grep contextbroker), killon pid

after killing process, /etc/init.d/contextbroker start should work again.

thanks massimiliano nigrelli @ team debuging issue.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -