发送实体时 Orion 随机下降
Orion goes down randomly when send entities
我已经在一台新机器上安装了 Orion,使用 yum 软件包并按照管理指南中的说明安装 mongodb。
此外,我已经从 wirecloud 部署了一个 orion 实例,并将我的旧 Orion 实例从 0.21 更新到 0.22。
在所有情况下,Orion 都会随机下降,我不知道为什么。 0.21版本完美运行,但现在非常不稳定
我安装了一个 cron 任务来检查 Orion 是否有 PID 死机,然后重新启动它,但问题是有时我的 Orion 实例会停机 1 分钟。
我这样发送请求:
(curl http://my.orion.instance.es:1026/v1/updateContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
"contextElements": [
{
"type": "Alert",
"isPattern": "false",
"id": "myemail@dot.com",
"attributes": [
{
"name": "alert-type",
"type": "text",
"value": "10020"
},{
"name": "message",
"type": "text",
"value": "Flooding"
},{
"name": "status",
"type": "text",
"value": "100"
},{
"name": "gateway",
"type": "text",
"value": "5"
}
]
}
],
"updateAction": "APPEND"
}
EOF
响应是:
{
"contextResponses": [
{
"contextElement": {
"attributes": [
{
"name": "alert-type",
"type": "text",
"value": ""
},
{
"name": "message",
"type": "text",
"value": ""
},
{
"name": "status",
"type": "text",
"value": ""
},
{
"name": "gateway",
"type": "text",
"value": ""
}
],
"id": "myemail@dot.com",
"isPattern": "false",
"type": "Alert"
},
"statusCode": {
"code": "200",
"reasonPhrase": "OK"
}
}
]
}
此时,Orion 出现故障(如果我发送 UPDATE 或 DELETE 也会发生)。
我有 ngsi2cosmos 运行,并显示这些消息(也许问题出在这里):
INFO in requests_wrappers [/root/ngsi2cosmos/requests_wrappers.py:58]:
--> PUT http://cosmos.lab.fi-ware.org:14000/webhdfs/v1/user/yyyyy/xxx/myemail@dot.com-Alert-status-text.txt?op=create&user.name=yyyyy&data=true
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
INFO in requests_wrappers [/root/ngsi2cosmos/requests_wrappers.py:62]:
<-- 500
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DEBUG in requests_wrappers [/root/ngsi2cosmos/requests_wrappers.py:64]:
<-- {"RemoteException":{"message":"org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create file\/user\/yyyy\/xxx\/myemail@dot.com-Alert-status-text.txt. Name node is in safe mode.","exception":"RemoteException","javaClassName":"org.apache.hadoop.ipc.RemoteException"}}
我该如何解决这个问题?
编辑:
echo 'db.csubs.count()' | mongo orion --quiet
> 176
echo 'db.registrations.count()' | mongo orion --quiet
> 0
运行 contextBroker 在前台:
[root@orion-figlass ~]# service contextBroker stop
Stopping...
contextBroker (pid 5043) is running...
Stopping contextBroker... [ OK ]
[root@orion-figlass ~]#
[root@orion-figlass ~]# contextBroker -fg
INFO@19:47:48 contextBroker.cpp[1411]: Orion Context Broker is running
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 contextBroker.cpp[1191]: Connected to mongo at localhost:orion
INFO@19:47:48 MongoGlobal.cpp[480]: Database Operation Successful ({ conditions.type: "ONTIMEINTERVAL" })
INFO@19:47:48 contextBroker.cpp[1499]: Startup completed
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.81.169:60928/version
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.93.161:48199/version
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.93.161:48199/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.81.161:37559/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:31 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:48:31 rest.cpp[384]: Transaction ended
INFO@19:48:31 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:48:31 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:48:31 rest.cpp[384]: Transaction ended
INFO@19:48:34 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:48:34 rest.cpp[384]: Transaction ended
INFO@19:48:34 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:48:34 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:48:34 rest.cpp[384]: Transaction ended
INFO@19:49:11 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:49:11 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:49:11 rest.cpp[384]: Transaction ended
INFO@19:49:12 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:49:12 rest.cpp[384]: Transaction ended
INFO@19:49:12 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:49:12 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:49:12 rest.cpp[384]: Transaction ended
INFO@19:49:53 rest.cpp[781]: Starting transaction from 130.206.84.11:36938/ngsi10/subscribeContext
INFO@19:49:53 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:49:53 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:49:53 mongoSubscribeContext.cpp[147]: Database Operation Successful (insert { _id: ObjectId('559c2d6142b637df6db61746'), expiration: 1436309393, reference: "http://wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:00-1:22:51:01-1", servicePath: "/#", entities: [ { id: ".*", type: "Alert", isPattern: "true" } ], attrs: [], conditions: [ { type: "ONCHANGE", value: [ "alert-type", "status" ] } ], lastNotification: 1436298593, count: 1, format: "XML" })
INFO@19:49:53 httpRequestSend.cpp[191]: Starting transaction to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:00-1:22:51:01-1
INFO@19:49:53 rest.cpp[384]: Transaction ended
INFO@19:49:53 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:00-1:22:51:01-1
INFO@19:49:53 httpRequestSend.cpp[435]: Transaction ended
INFO@19:50:08 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:50:08 rest.cpp[384]: Transaction ended
INFO@19:50:08 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:50:08 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:50:08 rest.cpp[384]: Transaction ended
INFO@19:50:26 rest.cpp[781]: Starting transaction from 130.206.84.11:36957/ngsi10/subscribeContext
INFO@19:50:26 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:50:26 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:50:26 httpRequestSend.cpp[191]: Starting transaction to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1
INFO@19:50:26 mongoSubscribeContext.cpp[147]: Database Operation Successful (insert { _id: ObjectId('559c2d8242b637df6db61747'), expiration: 1436309426, reference: "http://wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1", servicePath: "/#", entities: [ { id: ".*", type: "Alert", isPattern: "true" } ], attrs: [], conditions: [ { type: "ONCHANGE", value: [ "alert-type", "status" ] } ], lastNotification: 1436298626, count: 1, format: "XML" })
INFO@19:50:26 rest.cpp[384]: Transaction ended
INFO@19:50:27 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1
INFO@19:50:27 httpRequestSend.cpp[435]: Transaction ended
此刻,猎户座坠落:
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.93.161:48199/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.81.161:37559/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:31 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:48:31 rest.cpp[384]: Transaction ended
显示正常运行时间的 /version 的屏幕截图(在此之前,正常运行时间是 5 天,但是当我开始使用混搭时,出现了问题,Orion 宕机了)。
编辑 2:
安装gdb,执行ulimit -c unlimited
运行 contextBroker -fg
现在 shell 显示更详细的错误:
INFO@20:21:06 httpRequestSend.cpp[191]: Starting transaction to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/23:22:00-1:23:22:01-1
INFO@20:21:06 rest.cpp[384]: Transaction ended
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/23:22:00-1:23:22:01-1
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to api.wiim.es:80/api/v1/alert
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
*** longjmp causes uninitialized stack frame ***: contextBroker terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3c5ab02527]
/lib64/libc.so.6[0x3c5ab024b9]
/lib64/libc.so.6(__longjmp_chk+0x33)[0x3c5ab02423]
/usr/lib64/libcurl.so.4[0x3c5e20eb25]
/lib64/libc.so.6[0x3c5aa326a0]
/lib64/libc.so.6(nanosleep+0x2d)[0x3c5aaaca3d]
/lib64/libc.so.6(sleep+0xe0)[0x3c5aaac8b0]
contextBroker(main+0x90a)[0x49e5da]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3c5aa1ed5d]
contextBroker[0x483219]
======= Memory map: ========
00400000-00737000 r-xp 00000000 fc:01 26350 /usr/bin/contextBroker
00937000-00941000 rw-p 00337000 fc:01 26350 /usr/bin/contextBroker
00941000-00989000 rw-p 00000000 00:00 0
0120e000-01271000 rw-p 00000000 00:00 0 [heap]
34e4a00000-34e4a12000 r-xp 00000000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4a12000-34e4c12000 ---p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4c12000-34e4c13000 rw-p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
3899200000-3899203000 r-xp 00000000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899203000-3899402000 ---p 00003000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899402000-3899403000 rw-p 00002000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
389aa00000-389aa14000 r-xp 00000000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389aa14000-389ac14000 ---p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389ac14000-389ac15000 rw-p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
3c5a600000-3c5a620000 r-xp 00000000 fc:01 11913 /lib64/ld-2.12.so
3c5a81f000-3c5a820000 r--p 0001f000 fc:01 11913 /lib64/ld-2.12.so
3c5a820000-3c5a821000 rw-p 00020000 fc:01 11913 /lib64/ld-2.12.so
3c5a821000-3c5a822000 rw-p 00000000 00:00 0
3c5aa00000-3c5ab8a000 r-xp 00000000 fc:01 32217 /lib64/libc-2.12.so
3c5ab8a000-3c5ad8a000 ---p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8a000-3c5ad8e000 r--p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8e000-3c5ad8f000 rw-p 0018e000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8f000-3c5ad94000 rw-p 00000000 00:00 0
3c5ae00000-3c5ae17000 r-xp 00000000 fc:01 32221 /lib64/libpthread-2.12.so
3c5ae17000-3c5b017000 ---p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b017000-3c5b018000 r--p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b018000-3c5b019000 rw-p 00018000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b019000-3c5b01d000 rw-p 00000000 00:00 0
3c5b200000-3c5b202000 r-xp 00000000 fc:01 60370 /lib64/libdl-2.12.so
3c5b202000-3c5b402000 ---p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b402000-3c5b403000 r--p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b403000-3c5b404000 rw-p 00003000 fc:01 60370 /lib64/libdl-2.12.so
3c5b600000-3c5b683000 r-xp 00000000 fc:01 9690 /lib64/libm-2.12.so
3c5b683000-3c5b882000 ---p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5b882000-3c5b883000 r--p 00082000 fc:01 9690 /lib64/libm-2.12.so
3c5b883000-3c5b884000 rw-p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5ba00000-3c5ba07000 r-xp 00000000 fc:01 32222 /lib64/librt-2.12.so
3c5ba07000-3c5bc06000 ---p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5bc06000-3c5bc07000 r--p 00006000 fc:01 32222 /lib64/librt-2.12.so
3c5bc07000-3c5bc08000 rw-p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5be00000-3c5be15000 r-xp 00000000 fc:01 34600 /lib64/libz.so.1.2.3
3c5be15000-3c5c014000 ---p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c014000-3c5c015000 r--p 00014000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c015000-3c5c016000 rw-p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c200000-3c5c213000 r-xp 00000000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c213000-3c5c413000 ---p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c413000-3c5c415000 rw-p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c600000-3c5c61d000 r-xp 00000000 fc:01 61643 /lib64/libselinux.so.1
3c5c61d000-3c5c81c000 ---p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81c000-3c5c81d000 r--p 0001c000 fc:01 61643 /lib64/libselinux.so.1
3c5c81d000-3c5c81e000 rw-p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81e000-3c5c81f000 rw-p 00000000 00:00 0
3c5ca00000-3c5ca49000 r-xp 00000000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ca49000-3c5cc48000 ---p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc48000-3c5cc49000 r--p 00048000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc49000-3c5cc4b000 rw-p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ce00000-3c5ce16000 r-xp 00000000 fc:01 61642 /lib64/libresolv-2.12.so
3c5ce16000-3c5d016000 ---p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d016000-3c5d017000 r--p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d017000-3c5d018000 rw-p 00017000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d018000-3c5d01a000 rw-p 00000000 00:00 0
3c5d200000-3c5d232000 r-xp 00000000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d232000-3c5d431000 ---p 00032000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d431000-3c5d432000 rw-p 00031000 fc:01 32266 /lib64/libidn.so.11.6.1Aborted (core dumped)
第二次跟踪错误(猎户座在此期间下降了两次):
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to api.wiim.es:80/api/v1/alert
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
*** longjmp causes uninitialized stack frame ***: contextBroker terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3c5ab02527]
/lib64/libc.so.6[0x3c5ab024b9]
/lib64/libc.so.6(__longjmp_chk+0x33)[0x3c5ab02423]
/usr/lib64/libcurl.so.4[0x3c5e20eb25]
/lib64/libc.so.6[0x3c5aa326a0]
/lib64/libc.so.6(nanosleep+0x2d)[0x3c5aaaca3d]
/lib64/libc.so.6(sleep+0xe0)[0x3c5aaac8b0]
contextBroker(main+0x90a)[0x49e5da]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3c5aa1ed5d]
contextBroker[0x483219]
======= Memory map: ========
00400000-00737000 r-xp 00000000 fc:01 26350 /usr/bin/contextBroker
00937000-00941000 rw-p 00337000 fc:01 26350 /usr/bin/contextBroker
00941000-00989000 rw-p 00000000 00:00 0
0120e000-01271000 rw-p 00000000 00:00 0 [heap]
34e4a00000-34e4a12000 r-xp 00000000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4a12000-34e4c12000 ---p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4c12000-34e4c13000 rw-p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
3899200000-3899203000 r-xp 00000000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899203000-3899402000 ---p 00003000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899402000-3899403000 rw-p 00002000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
389aa00000-389aa14000 r-xp 00000000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389aa14000-389ac14000 ---p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389ac14000-389ac15000 rw-p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
3c5a600000-3c5a620000 r-xp 00000000 fc:01 11913 /lib64/ld-2.12.so
3c5a81f000-3c5a820000 r--p 0001f000 fc:01 11913 /lib64/ld-2.12.so
3c5a820000-3c5a821000 rw-p 00020000 fc:01 11913 /lib64/ld-2.12.so
3c5a821000-3c5a822000 rw-p 00000000 00:00 0
3c5aa00000-3c5ab8a000 r-xp 00000000 fc:01 32217 /lib64/libc-2.12.so
3c5ab8a000-3c5ad8a000 ---p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8a000-3c5ad8e000 r--p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8e000-3c5ad8f000 rw-p 0018e000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8f000-3c5ad94000 rw-p 00000000 00:00 0
3c5ae00000-3c5ae17000 r-xp 00000000 fc:01 32221 /lib64/libpthread-2.12.so
3c5ae17000-3c5b017000 ---p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b017000-3c5b018000 r--p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b018000-3c5b019000 rw-p 00018000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b019000-3c5b01d000 rw-p 00000000 00:00 0
3c5b200000-3c5b202000 r-xp 00000000 fc:01 60370 /lib64/libdl-2.12.so
3c5b202000-3c5b402000 ---p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b402000-3c5b403000 r--p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b403000-3c5b404000 rw-p 00003000 fc:01 60370 /lib64/libdl-2.12.so
3c5b600000-3c5b683000 r-xp 00000000 fc:01 9690 /lib64/libm-2.12.so
3c5b683000-3c5b882000 ---p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5b882000-3c5b883000 r--p 00082000 fc:01 9690 /lib64/libm-2.12.so
3c5b883000-3c5b884000 rw-p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5ba00000-3c5ba07000 r-xp 00000000 fc:01 32222 /lib64/librt-2.12.so
3c5ba07000-3c5bc06000 ---p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5bc06000-3c5bc07000 r--p 00006000 fc:01 32222 /lib64/librt-2.12.so
3c5bc07000-3c5bc08000 rw-p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5be00000-3c5be15000 r-xp 00000000 fc:01 34600 /lib64/libz.so.1.2.3
3c5be15000-3c5c014000 ---p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c014000-3c5c015000 r--p 00014000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c015000-3c5c016000 rw-p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c200000-3c5c213000 r-xp 00000000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c213000-3c5c413000 ---p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c413000-3c5c415000 rw-p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c600000-3c5c61d000 r-xp 00000000 fc:01 61643 /lib64/libselinux.so.1
3c5c61d000-3c5c81c000 ---p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81c000-3c5c81d000 r--p 0001c000 fc:01 61643 /lib64/libselinux.so.1
3c5c81d000-3c5c81e000 rw-p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81e000-3c5c81f000 rw-p 00000000 00:00 0
3c5ca00000-3c5ca49000 r-xp 00000000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ca49000-3c5cc48000 ---p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc48000-3c5cc49000 r--p 00048000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc49000-3c5cc4b000 rw-p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ce00000-3c5ce16000 r-xp 00000000 fc:01 61642 /lib64/libresolv-2.12.so
3c5ce16000-3c5d016000 ---p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d016000-3c5d017000 r--p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d017000-3c5d018000 rw-p 00017000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d018000-3c5d01a000 rw-p 00000000 00:00 0
3c5d200000-3c5d232000 r-xp 00000000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d232000-3c5d431000 ---p 00032000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d431000-3c5d432000 rw-p 00031000 fc:01 32266 /lib64/libidn.so.11.6.1Aborted (core dumped)
这个问题的原因是this issue that has been already solved in the developed branch, also related with this 。修复将随 Orion 0.23.0 版本一起提供。
作为临时解决方法,您可以在订阅的 reference
字段中使用 IP 而不是主机名。
我已经在一台新机器上安装了 Orion,使用 yum 软件包并按照管理指南中的说明安装 mongodb。
此外,我已经从 wirecloud 部署了一个 orion 实例,并将我的旧 Orion 实例从 0.21 更新到 0.22。
在所有情况下,Orion 都会随机下降,我不知道为什么。 0.21版本完美运行,但现在非常不稳定
我安装了一个 cron 任务来检查 Orion 是否有 PID 死机,然后重新启动它,但问题是有时我的 Orion 实例会停机 1 分钟。
我这样发送请求:
(curl http://my.orion.instance.es:1026/v1/updateContext -s -S --header 'Content-Type: application/json' --header 'Accept: application/json' -d @- | python -mjson.tool) <<EOF
{
"contextElements": [
{
"type": "Alert",
"isPattern": "false",
"id": "myemail@dot.com",
"attributes": [
{
"name": "alert-type",
"type": "text",
"value": "10020"
},{
"name": "message",
"type": "text",
"value": "Flooding"
},{
"name": "status",
"type": "text",
"value": "100"
},{
"name": "gateway",
"type": "text",
"value": "5"
}
]
}
],
"updateAction": "APPEND"
}
EOF
响应是:
{
"contextResponses": [
{
"contextElement": {
"attributes": [
{
"name": "alert-type",
"type": "text",
"value": ""
},
{
"name": "message",
"type": "text",
"value": ""
},
{
"name": "status",
"type": "text",
"value": ""
},
{
"name": "gateway",
"type": "text",
"value": ""
}
],
"id": "myemail@dot.com",
"isPattern": "false",
"type": "Alert"
},
"statusCode": {
"code": "200",
"reasonPhrase": "OK"
}
}
]
}
此时,Orion 出现故障(如果我发送 UPDATE 或 DELETE 也会发生)。
我有 ngsi2cosmos 运行,并显示这些消息(也许问题出在这里):
INFO in requests_wrappers [/root/ngsi2cosmos/requests_wrappers.py:58]:
--> PUT http://cosmos.lab.fi-ware.org:14000/webhdfs/v1/user/yyyyy/xxx/myemail@dot.com-Alert-status-text.txt?op=create&user.name=yyyyy&data=true
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
INFO in requests_wrappers [/root/ngsi2cosmos/requests_wrappers.py:62]:
<-- 500
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DEBUG in requests_wrappers [/root/ngsi2cosmos/requests_wrappers.py:64]:
<-- {"RemoteException":{"message":"org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create file\/user\/yyyy\/xxx\/myemail@dot.com-Alert-status-text.txt. Name node is in safe mode.","exception":"RemoteException","javaClassName":"org.apache.hadoop.ipc.RemoteException"}}
我该如何解决这个问题?
编辑:
echo 'db.csubs.count()' | mongo orion --quiet
> 176
echo 'db.registrations.count()' | mongo orion --quiet
> 0
运行 contextBroker 在前台:
[root@orion-figlass ~]# service contextBroker stop
Stopping...
contextBroker (pid 5043) is running...
Stopping contextBroker... [ OK ]
[root@orion-figlass ~]#
[root@orion-figlass ~]# contextBroker -fg
INFO@19:47:48 contextBroker.cpp[1411]: Orion Context Broker is running
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 mongoConnectionPool.cpp[184]: Successful connection to database
INFO@19:47:48 contextBroker.cpp[1191]: Connected to mongo at localhost:orion
INFO@19:47:48 MongoGlobal.cpp[480]: Database Operation Successful ({ conditions.type: "ONTIMEINTERVAL" })
INFO@19:47:48 contextBroker.cpp[1499]: Startup completed
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.81.169:60928/version
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.93.161:48199/version
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.93.161:48199/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.81.161:37559/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:31 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:48:31 rest.cpp[384]: Transaction ended
INFO@19:48:31 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:48:31 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:48:31 rest.cpp[384]: Transaction ended
INFO@19:48:34 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:48:34 rest.cpp[384]: Transaction ended
INFO@19:48:34 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:48:34 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:48:34 rest.cpp[384]: Transaction ended
INFO@19:49:11 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:49:11 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:49:11 rest.cpp[384]: Transaction ended
INFO@19:49:12 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:49:12 rest.cpp[384]: Transaction ended
INFO@19:49:12 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:49:12 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:49:12 rest.cpp[384]: Transaction ended
INFO@19:49:53 rest.cpp[781]: Starting transaction from 130.206.84.11:36938/ngsi10/subscribeContext
INFO@19:49:53 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:49:53 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:49:53 mongoSubscribeContext.cpp[147]: Database Operation Successful (insert { _id: ObjectId('559c2d6142b637df6db61746'), expiration: 1436309393, reference: "http://wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:00-1:22:51:01-1", servicePath: "/#", entities: [ { id: ".*", type: "Alert", isPattern: "true" } ], attrs: [], conditions: [ { type: "ONCHANGE", value: [ "alert-type", "status" ] } ], lastNotification: 1436298593, count: 1, format: "XML" })
INFO@19:49:53 httpRequestSend.cpp[191]: Starting transaction to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:00-1:22:51:01-1
INFO@19:49:53 rest.cpp[384]: Transaction ended
INFO@19:49:53 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:00-1:22:51:01-1
INFO@19:49:53 httpRequestSend.cpp[435]: Transaction ended
INFO@19:50:08 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:50:08 rest.cpp[384]: Transaction ended
INFO@19:50:08 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/favicon.ico
WARNING@19:50:08 badRequest.cpp[52]: Bad Input (service '/favicon.ico' not found)
INFO@19:50:08 rest.cpp[384]: Transaction ended
INFO@19:50:26 rest.cpp[781]: Starting transaction from 130.206.84.11:36957/ngsi10/subscribeContext
INFO@19:50:26 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:50:26 MongoGlobal.cpp[1095]: Database Operation Successful ({ query: { $or: [ { _id.id: /.*/, _id.type: "Alert" } ], _id.servicePath: { $in: [ null, /^$/, /^/.*/ ] } }, orderby: { creDate: 1 } })
INFO@19:50:26 httpRequestSend.cpp[191]: Starting transaction to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1
INFO@19:50:26 mongoSubscribeContext.cpp[147]: Database Operation Successful (insert { _id: ObjectId('559c2d8242b637df6db61747'), expiration: 1436309426, reference: "http://wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1", servicePath: "/#", entities: [ { id: ".*", type: "Alert", isPattern: "true" } ], attrs: [], conditions: [ { type: "ONCHANGE", value: [ "alert-type", "status" ] } ], lastNotification: 1436298626, count: 1, format: "XML" })
INFO@19:50:26 rest.cpp[384]: Transaction ended
INFO@19:50:27 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1
INFO@19:50:27 httpRequestSend.cpp[435]: Transaction ended
此刻,猎户座坠落:
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.93.161:48199/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:28 rest.cpp[781]: Starting transaction from 66.249.81.161:37559/favicon.ico
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[347]: Bad Input (no valid 'Accept-format' found)
WARNING@19:48:28 rest.cpp[827]: Bad Input (invalid mime-type in Accept http-header)
WARNING@19:48:28 rest.cpp[836]: Bad Input (error in URI parameters)
INFO@19:48:28 rest.cpp[384]: Transaction ended
INFO@19:48:31 rest.cpp[781]: Starting transaction from 188.76.231.187:18019/version
INFO@19:48:31 rest.cpp[384]: Transaction ended
显示正常运行时间的 /version 的屏幕截图(在此之前,正常运行时间是 5 天,但是当我开始使用混搭时,出现了问题,Orion 宕机了)。
编辑 2:
安装gdb,执行ulimit -c unlimited 运行 contextBroker -fg 现在 shell 显示更详细的错误:
INFO@20:21:06 httpRequestSend.cpp[191]: Starting transaction to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/23:22:00-1:23:22:01-1
INFO@20:21:06 rest.cpp[384]: Transaction ended
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/22:51:34-1:22:51:34-1
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to wirecloud.ld.testbed.fi-ware.eu:3000/callbacks/23:22:00-1:23:22:01-1
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to api.wiim.es:80/api/v1/alert
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
*** longjmp causes uninitialized stack frame ***: contextBroker terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3c5ab02527]
/lib64/libc.so.6[0x3c5ab024b9]
/lib64/libc.so.6(__longjmp_chk+0x33)[0x3c5ab02423]
/usr/lib64/libcurl.so.4[0x3c5e20eb25]
/lib64/libc.so.6[0x3c5aa326a0]
/lib64/libc.so.6(nanosleep+0x2d)[0x3c5aaaca3d]
/lib64/libc.so.6(sleep+0xe0)[0x3c5aaac8b0]
contextBroker(main+0x90a)[0x49e5da]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3c5aa1ed5d]
contextBroker[0x483219]
======= Memory map: ========
00400000-00737000 r-xp 00000000 fc:01 26350 /usr/bin/contextBroker
00937000-00941000 rw-p 00337000 fc:01 26350 /usr/bin/contextBroker
00941000-00989000 rw-p 00000000 00:00 0
0120e000-01271000 rw-p 00000000 00:00 0 [heap]
34e4a00000-34e4a12000 r-xp 00000000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4a12000-34e4c12000 ---p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4c12000-34e4c13000 rw-p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
3899200000-3899203000 r-xp 00000000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899203000-3899402000 ---p 00003000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899402000-3899403000 rw-p 00002000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
389aa00000-389aa14000 r-xp 00000000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389aa14000-389ac14000 ---p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389ac14000-389ac15000 rw-p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
3c5a600000-3c5a620000 r-xp 00000000 fc:01 11913 /lib64/ld-2.12.so
3c5a81f000-3c5a820000 r--p 0001f000 fc:01 11913 /lib64/ld-2.12.so
3c5a820000-3c5a821000 rw-p 00020000 fc:01 11913 /lib64/ld-2.12.so
3c5a821000-3c5a822000 rw-p 00000000 00:00 0
3c5aa00000-3c5ab8a000 r-xp 00000000 fc:01 32217 /lib64/libc-2.12.so
3c5ab8a000-3c5ad8a000 ---p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8a000-3c5ad8e000 r--p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8e000-3c5ad8f000 rw-p 0018e000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8f000-3c5ad94000 rw-p 00000000 00:00 0
3c5ae00000-3c5ae17000 r-xp 00000000 fc:01 32221 /lib64/libpthread-2.12.so
3c5ae17000-3c5b017000 ---p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b017000-3c5b018000 r--p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b018000-3c5b019000 rw-p 00018000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b019000-3c5b01d000 rw-p 00000000 00:00 0
3c5b200000-3c5b202000 r-xp 00000000 fc:01 60370 /lib64/libdl-2.12.so
3c5b202000-3c5b402000 ---p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b402000-3c5b403000 r--p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b403000-3c5b404000 rw-p 00003000 fc:01 60370 /lib64/libdl-2.12.so
3c5b600000-3c5b683000 r-xp 00000000 fc:01 9690 /lib64/libm-2.12.so
3c5b683000-3c5b882000 ---p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5b882000-3c5b883000 r--p 00082000 fc:01 9690 /lib64/libm-2.12.so
3c5b883000-3c5b884000 rw-p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5ba00000-3c5ba07000 r-xp 00000000 fc:01 32222 /lib64/librt-2.12.so
3c5ba07000-3c5bc06000 ---p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5bc06000-3c5bc07000 r--p 00006000 fc:01 32222 /lib64/librt-2.12.so
3c5bc07000-3c5bc08000 rw-p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5be00000-3c5be15000 r-xp 00000000 fc:01 34600 /lib64/libz.so.1.2.3
3c5be15000-3c5c014000 ---p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c014000-3c5c015000 r--p 00014000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c015000-3c5c016000 rw-p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c200000-3c5c213000 r-xp 00000000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c213000-3c5c413000 ---p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c413000-3c5c415000 rw-p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c600000-3c5c61d000 r-xp 00000000 fc:01 61643 /lib64/libselinux.so.1
3c5c61d000-3c5c81c000 ---p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81c000-3c5c81d000 r--p 0001c000 fc:01 61643 /lib64/libselinux.so.1
3c5c81d000-3c5c81e000 rw-p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81e000-3c5c81f000 rw-p 00000000 00:00 0
3c5ca00000-3c5ca49000 r-xp 00000000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ca49000-3c5cc48000 ---p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc48000-3c5cc49000 r--p 00048000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc49000-3c5cc4b000 rw-p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ce00000-3c5ce16000 r-xp 00000000 fc:01 61642 /lib64/libresolv-2.12.so
3c5ce16000-3c5d016000 ---p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d016000-3c5d017000 r--p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d017000-3c5d018000 rw-p 00017000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d018000-3c5d01a000 rw-p 00000000 00:00 0
3c5d200000-3c5d232000 r-xp 00000000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d232000-3c5d431000 ---p 00032000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d431000-3c5d432000 rw-p 00031000 fc:01 32266 /lib64/libidn.so.11.6.1Aborted (core dumped)
第二次跟踪错误(猎户座在此期间下降了两次):
INFO@20:21:06 httpRequestSend.cpp[424]: Notification Successfully Sent to api.wiim.es:80/api/v1/alert
INFO@20:21:06 httpRequestSend.cpp[435]: Transaction ended
*** longjmp causes uninitialized stack frame ***: contextBroker terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3c5ab02527]
/lib64/libc.so.6[0x3c5ab024b9]
/lib64/libc.so.6(__longjmp_chk+0x33)[0x3c5ab02423]
/usr/lib64/libcurl.so.4[0x3c5e20eb25]
/lib64/libc.so.6[0x3c5aa326a0]
/lib64/libc.so.6(nanosleep+0x2d)[0x3c5aaaca3d]
/lib64/libc.so.6(sleep+0xe0)[0x3c5aaac8b0]
contextBroker(main+0x90a)[0x49e5da]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3c5aa1ed5d]
contextBroker[0x483219]
======= Memory map: ========
00400000-00737000 r-xp 00000000 fc:01 26350 /usr/bin/contextBroker
00937000-00941000 rw-p 00337000 fc:01 26350 /usr/bin/contextBroker
00941000-00989000 rw-p 00000000 00:00 0
0120e000-01271000 rw-p 00000000 00:00 0 [heap]
34e4a00000-34e4a12000 r-xp 00000000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4a12000-34e4c12000 ---p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
34e4c12000-34e4c13000 rw-p 00012000 fc:01 53961 /usr/lib64/libmicrohttpd.so.10.16.1
3899200000-3899203000 r-xp 00000000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899203000-3899402000 ---p 00003000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
3899402000-3899403000 rw-p 00002000 fc:01 55423 /usr/lib64/libboost_system-mt.so.5
389aa00000-389aa14000 r-xp 00000000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389aa14000-389ac14000 ---p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
389ac14000-389ac15000 rw-p 00014000 fc:01 55424 /usr/lib64/libboost_filesystem-mt.so.5
3c5a600000-3c5a620000 r-xp 00000000 fc:01 11913 /lib64/ld-2.12.so
3c5a81f000-3c5a820000 r--p 0001f000 fc:01 11913 /lib64/ld-2.12.so
3c5a820000-3c5a821000 rw-p 00020000 fc:01 11913 /lib64/ld-2.12.so
3c5a821000-3c5a822000 rw-p 00000000 00:00 0
3c5aa00000-3c5ab8a000 r-xp 00000000 fc:01 32217 /lib64/libc-2.12.so
3c5ab8a000-3c5ad8a000 ---p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8a000-3c5ad8e000 r--p 0018a000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8e000-3c5ad8f000 rw-p 0018e000 fc:01 32217 /lib64/libc-2.12.so
3c5ad8f000-3c5ad94000 rw-p 00000000 00:00 0
3c5ae00000-3c5ae17000 r-xp 00000000 fc:01 32221 /lib64/libpthread-2.12.so
3c5ae17000-3c5b017000 ---p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b017000-3c5b018000 r--p 00017000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b018000-3c5b019000 rw-p 00018000 fc:01 32221 /lib64/libpthread-2.12.so
3c5b019000-3c5b01d000 rw-p 00000000 00:00 0
3c5b200000-3c5b202000 r-xp 00000000 fc:01 60370 /lib64/libdl-2.12.so
3c5b202000-3c5b402000 ---p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b402000-3c5b403000 r--p 00002000 fc:01 60370 /lib64/libdl-2.12.so
3c5b403000-3c5b404000 rw-p 00003000 fc:01 60370 /lib64/libdl-2.12.so
3c5b600000-3c5b683000 r-xp 00000000 fc:01 9690 /lib64/libm-2.12.so
3c5b683000-3c5b882000 ---p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5b882000-3c5b883000 r--p 00082000 fc:01 9690 /lib64/libm-2.12.so
3c5b883000-3c5b884000 rw-p 00083000 fc:01 9690 /lib64/libm-2.12.so
3c5ba00000-3c5ba07000 r-xp 00000000 fc:01 32222 /lib64/librt-2.12.so
3c5ba07000-3c5bc06000 ---p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5bc06000-3c5bc07000 r--p 00006000 fc:01 32222 /lib64/librt-2.12.so
3c5bc07000-3c5bc08000 rw-p 00007000 fc:01 32222 /lib64/librt-2.12.so
3c5be00000-3c5be15000 r-xp 00000000 fc:01 34600 /lib64/libz.so.1.2.3
3c5be15000-3c5c014000 ---p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c014000-3c5c015000 r--p 00014000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c015000-3c5c016000 rw-p 00015000 fc:01 34600 /lib64/libz.so.1.2.3
3c5c200000-3c5c213000 r-xp 00000000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c213000-3c5c413000 ---p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c413000-3c5c415000 rw-p 00013000 fc:01 9703 /usr/lib64/libboost_thread-mt.so.5
3c5c600000-3c5c61d000 r-xp 00000000 fc:01 61643 /lib64/libselinux.so.1
3c5c61d000-3c5c81c000 ---p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81c000-3c5c81d000 r--p 0001c000 fc:01 61643 /lib64/libselinux.so.1
3c5c81d000-3c5c81e000 rw-p 0001d000 fc:01 61643 /lib64/libselinux.so.1
3c5c81e000-3c5c81f000 rw-p 00000000 00:00 0
3c5ca00000-3c5ca49000 r-xp 00000000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ca49000-3c5cc48000 ---p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc48000-3c5cc49000 r--p 00048000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5cc49000-3c5cc4b000 rw-p 00049000 fc:01 61732 /lib64/libldap-2.4.so.2.5.6
3c5ce00000-3c5ce16000 r-xp 00000000 fc:01 61642 /lib64/libresolv-2.12.so
3c5ce16000-3c5d016000 ---p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d016000-3c5d017000 r--p 00016000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d017000-3c5d018000 rw-p 00017000 fc:01 61642 /lib64/libresolv-2.12.so
3c5d018000-3c5d01a000 rw-p 00000000 00:00 0
3c5d200000-3c5d232000 r-xp 00000000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d232000-3c5d431000 ---p 00032000 fc:01 32266 /lib64/libidn.so.11.6.1
3c5d431000-3c5d432000 rw-p 00031000 fc:01 32266 /lib64/libidn.so.11.6.1Aborted (core dumped)
这个问题的原因是this issue that has been already solved in the developed branch, also related with this
作为临时解决方法,您可以在订阅的 reference
字段中使用 IP 而不是主机名。