2016-07-20 6 views
1

내가 ContextBroker의 새 버전을 설치 존재하지 않는 내가 설치 한 다음 1026/버전pidfile '/var/log/contextBroker/contextBroker.pid가'

{ 
"orion" : 
    { 
    "version" : "1.2.1", 
    "uptime" : "0 d, 0 h, 7 m, 58 s", 
    "git_hash" : "af44fd1fbdbbfd28d79ef4f929e871e515b5452e", 
    "compile_time" : "Thu Jun 16 15:46:51 CEST 2016", 
    "compiled_by" : "fermin", 
    "compiled_in" : "centollo" 
    } 
} 

watchdog

error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 

debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=19.5 kB] 
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 
debug : pidfile '/var/log/contextBroker/contextBroker.pid' does not exist 

감시의 작동을 방지 : 파일 /var/log/contextBroker/monitBROKER.log 확인, 나는 다음과 같은 오류가 발생합니다.

수정 방법을 알려주세요.

EDIT 1

이것은합니다 (PID 파일이 만들어 굵은 폴더에) 명령 실행 contextBroker :

는/usr/빈은/contextBroker가 -port 1026 -logDir는/var/log/contextBroker -pidpath는 /var/run/contextBroker/contextBroker.pid -dbhost 로컬 호스트 -db 오리온 -multiservice 나는 그것이해야 PID 파일을 생성하기 위해 수정할 수있는 방법

?

또는 해당 폴더를 가리 키도록 워치 독 구성을 수정해야합니까?

편집 2

내가 fgalan로 표시되는 단계에 따라/contextBroker/

를 실행 폴더의/var /를 가리 키도록 monitBROKER.conf 파일을 수정 감시의 구성을 수정, 내가 만든 " 전체 재설정 ".

info  : Starting Monit 5.14 daemon 
info  : 'ServidorCaptura.guest.domain' Monit 5.14 started 
debug : Socket test failed for [::1]:1026 -- Connection refused 
debug : Socket test failed for [127.0.0.1]:1026 -- Connection refused 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- Connection refused 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=464 B] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       [ OK ] 
debug : 'contextBroker' started 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=1.9 kB] 
info  : 'contextBroker' process is running with pid 1493 
debug : 'contextBroker' zombie check succeeded 
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.3 MB] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=3.1 kB] 
debug : 'contextBroker' process is running with pid 1493 
debug : 'contextBroker' zombie check succeeded 
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.8 MB] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=4.3 kB] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 

debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=9.0 kB] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
... 

또는 먼저 컨텍스트 브로커를 시작하는 경우 : 시작 /etc/init.d/contextBroker는 PID 파일이 생성됩니다 스크립트 감시를 실행하고 자신의 로그를 관찰 처음에 경우

후자의 로그를 관찰 폴더는/var/실행/contextBroker/후 실행 스크립트 감시 및 : 나는 "전체 재설정을"할 게 좋을 것

debug : pidfile '/var/log/contextBroker/monit.pid' does not exist 
info  : Starting Monit 5.14 daemon 
info  : 'ServidorCaptura.guest.domain' Monit 5.14 started 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=664 B] 
debug : 'contextBroker' process is running with pid 2299 
debug : 'contextBroker' zombie check succeeded 
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.3 MB] 
debug : 'contextBroker' cpu usage check skipped (initializing) 
debug : 'contextBroker' cpu usage check skipped (initializing) 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=1.7 kB] 
debug : 'contextBroker' process is running with pid 2299 
debug : 'contextBroker' zombie check succeeded 
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.8 MB] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=2.9 kB] 
debug : 'contextBroker' process is running with pid 2299 
debug : 'contextBroker' zombie check succeeded 
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=5.9 MB] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : Socket test failed for [::1]:1026 -- Connection refused 
debug : Socket test failed for [127.0.0.1]:1026 -- Connection refused 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- Connection refused 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=4.0 kB] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       [ OK ] 
debug : 'contextBroker' started 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=5.5 kB] 
info  : 'contextBroker' process is running with pid 2386 
debug : 'contextBroker' zombie check succeeded 
debug : 'contextBroker' total mem amount check succeeded [current total mem amount=3.3 MB] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : 'contextBroker' cpu usage check succeeded [current cpu usage=0.0%] 
debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=6.7 kB] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' failed to start (exit status 1) -- /etc/init.d/contextBroker: Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 

debug : Socket test failed for [::1]:1026 -- HTTP error: Regular expression doesn't match: No match 
debug : Socket test failed for [127.0.0.1]:1026 -- HTTP error: Regular expression doesn't match: No match 
error : 'localhost' failed protocol test [HTTP] at [localhost]:1026/version [TCP/IP] -- HTTP error: Regular expression doesn't match: No match 
info  : 'localhost' exec: /etc/init.d/contextBroker 
debug : 'monitBROKER.log' file exists 
debug : 'monitBROKER.log' is a regular file or socket 
debug : 'monitBROKER.log' size check succeeded [current size=11.5 kB] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
error : 'contextBroker' process is not running 
info  : 'contextBroker' trying to restart 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
info  : 'contextBroker' start: /etc/init.d/contextBroker 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : Starting... 
contextBroker está parado 
Starting contextBroker...       pidfile not found[FALLÓ] 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
debug : pidfile '/var/run/contextBroker/contextBroker.pid' does not exist 
... 

답변

0

후 다시 시도하십시오.

"전체 재설정"이란 CB가 중지되고 실행중인 모든 이슈가 제거되었는지를 의미합니다. 특히 (루트 또는 sudo는 명령을 사용하는 등) :

  • /etc/init.d/contextBroker stop가 contextBroker가 더 이상 ps ax | grep contextBroker으로 실행되고 있는지 확인하지 마십시오. 프로세스가 계속 남아 있으면 kill 명령 (또는 이전 명령이 작동하지 않는 경우 kill -9)을 사용하여 프로세스를 중지하십시오.
  • 기존 /var/log/contextBroker/contextBroker.pid 파일을 제거하십시오.

편집 : 서비스의 PID 파일을 변경하여/etc/SYSCONFIG/contextBroker에 BROKER_PID_FILE 변수를 편집 한 다음 다시 시작하기 위해.

+0

답변에 추가 된 PID 파일 위치를 변경하는 방법에 대한 정보. – fgalan