猎户座上下文代理无法启动

时间:2018-01-01 18:43:12

标签: fiware fiware-orion contextmanager

我一直在使用FIWARE进行学校项目,我以前安装过Orion并且能够将数据发布到Context Broker。我重新启动了系统,因为我对我的设置进行了一些其他更改,Orion从那时起就停止了工作。

我试图从命令行启动Context Broker并启动它。但是它不启动Context Broker。 netstat -tupln命令不显示端口1026正在使用,并且以前已将数据发布到FIWARE的JSON文件不再显示。

[ec2-user@ip-172-31-31-236 config]$ /etc/init.d/contextBroker status
● contextBroker.service - LSB: run contextBroker
   Loaded: loaded (/etc/rc.d/init.d/contextBroker; bad; vendor preset: disabled)
   Active: active (exited) since mån 2018-01-01 15:38:39 UTC; 42min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1829 ExecStart=/etc/rc.d/init.d/contextBroker start (code=exited, status=0/SUCCESS)
   Memory: 0B

jan 01 15:38:37 ip-172-31-31-236.ap-south-1.compute.internal systemd[1]: Starting LSB: run contextBroker...
jan 01 15:38:37 ip-172-31-31-236.ap-south-1.compute.internal contextBroker[1829]: Starting...
jan 01 15:38:37 ip-172-31-31-236.ap-south-1.compute.internal contextBroker[1829]: contextBroker is stopped
jan 01 15:38:37 ip-172-31-31-236.ap-south-1.compute.internal su[1834]: (to orion) root on none
jan 01 15:38:37 ip-172-31-31-236.ap-south-1.compute.internal su[1837]: (to orion) root on none
jan 01 15:38:39 ip-172-31-31-236.ap-south-1.compute.internal contextBroker[1829]: Starting contextBroker...                         [  OK  ]
jan 01 15:38:39 ip-172-31-31-236.ap-south-1.compute.internal systemd[1]: Started LSB: run contextBroker.

[ec2-user@ip-172-31-31-236 config]$ sudo netstat -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      900/sshd            
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      864/master          
tcp6       0      0 :::22                   :::*                    LISTEN      900/sshd            
tcp6       0      0 ::1:25                  :::*                    LISTEN      864/master          
tcp6       0      0 :::8000                 :::*                    LISTEN      2353/docker-proxy   
tcp6       0      0 :::5000                 :::*                    LISTEN      2363/docker-proxy   
udp        0      0 0.0.0.0:68              0.0.0.0:*                           546/dhclient        
udp        0      0 0.0.0.0:44244           0.0.0.0:*                           546/dhclient        
udp        0      0 127.0.0.1:323           0.0.0.0:*                           511/chronyd         
udp6       0      0 :::24106                :::*                                546/dhclient        
udp6       0      0 ::1:323                 :::*                                511/chronyd         
[ec2-user@ip-172-31-31-236 config]$ 

[ec2-user@ip-172-31-31-236 config]$ curl localhost:1026/version
curl: (7) Failed connect to localhost:1026; Connection refused

3 个答案:

答案 0 :(得分:0)

你检查过MongoDB是否正在运行?

您检查过/tmp/contextBroker.log文件的内容吗?

由于

答案 1 :(得分:0)

我有类似的问题。显然,在我的第一次安装中一切正常,但是重新启动计算机后,Orion服务无法启动。

MongoDB正在运行。

[rober@localhost ~]$ systemctl status contextBroker.service
● contextBroker.service - LSB: run contextBroker
   Loaded: loaded (/etc/rc.d/init.d/contextBroker; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since vie 2018-08-03 11:53:20 CEST; 23s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1712 ExecStart=/etc/rc.d/init.d/contextBroker start (code=exited, status=1/FAILURE)

ago 03 11:53:18 localhost.localdomain systemd[1]: Starting LSB: run contextBroker...
ago 03 11:53:18 localhost.localdomain contextBroker[1712]: contextBroker está detenido
ago 03 11:53:18 localhost.localdomain contextBroker[1712]: Starting...
ago 03 11:53:18 localhost.localdomain su[1718]: (to orion) root on none
ago 03 11:53:20 localhost.localdomain contextBroker[1712]: Starting contextBroker...                         cat: /var/run/contextBroker/contextBroker.pid: No existe el fichero o el directorio
ago 03 11:53:20 localhost.localdomain contextBroker[1712]: pidfile not found[FALLÓ]
ago 03 11:53:20 localhost.localdomain systemd[1]: contextBroker.service: control process exited, code=exited status=1
ago 03 11:53:20 localhost.localdomain systemd[1]: Failed to start LSB: run contextBroker.
ago 03 11:53:20 localhost.localdomain systemd[1]: Unit contextBroker.service entered failed state.
ago 03 11:53:20 localhost.localdomain systemd[1]: contextBroker.service failed.

这是日志文件/var/log/contextBroker/contextBroker.log

的内容
time=2018-08-03T09:31:10.021Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:32:30.401Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:33:46.508Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:36:13.636Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:36:31.675Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:37:54.942Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:39:01.179Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:40:11.421Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:47:36.258Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)
time=2018-08-03T09:53:18.581Z | lvl=ERROR | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=contextBroker.cpp[399]:pidFile | msg=PID File (open '/var/run/contextBroker/contextBroker.pid': No such file or directory)

答案 2 :(得分:0)

我在mongo运行时删除并重新安装了contextBroker,然后一切正常