[egm@localhost iot]$ sudo ./ini_iotagent.sh log4cplus:ERROR No appenders could be found for logger (main). log4cplus:ERROR Please initialize the log4cplus system properly. INFO - | op=main | file=[139728824694912:main.cc:346] | msg======== IoTAgent StartingWebServer: 0.0.0.0 ======== ERROR - | op=main | file=[139728824694912:main.cc:390] | msg=Not found[tcp_servers] DEBUG - | op=RestHandle | file=[139728824694912:rest_handle.cc:79] | msg=RestHandle constructor INFO - | op=RestHandle | file=[139728824694912:rest_handle.cc:92] | msg=type_store:mongodb DEBUG - | op=RestHandle | file=[139728824694912:rest_handle.cc:97] | msg=Setting function get in cache to find in mongo DEBUG - | op=AdminService | file=[139728824694912:admin_service.cc:81] | msg=iota::AdminService::AdminService INFO - | op=checkIndexes | file=[139728824694912:admin_service.cc:147] | msg=type_store:mongodb DEBUG - | op=checkIndexes | file=[139728824694912:admin_service.cc:149] | msg=Check tables in mongo DEBUG - | op=reconnect | file=[139728824694912:mongo_connection.cc:62] | msg=MongoConnection::reconnect DEBUG - | op=reconnect | file=[139728824694912:mongo_connection.cc:88] | msg=in storage no host defined, using localhost by default DEBUG - | op=reconnect | file=[139728824694912:mongo_connection.cc:116] | msg=in storage no port defined, using 27017 by default DEBUG - | op=reconnect | file=[139728824694912:mongo_connection.cc:135] | msg=in storage no timeout defined, using 0 by default DEBUG - | op=reconnect | file=[139728824694912:mongo_connection.cc:151] | msg=in storage no user defined, mongo without auth DEBUG - | op=reconnect | file=[139728824694912:mongo_connection.cc:159] | msg=in storage no pwd defined, mongo without auth DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=createConnection | file=[139728824694912:mongo_connection.cc:216] | msg=Conex Mongo DBClientConnection 127.0.0.1:27017/iot timeout in seconds:3 DEBUG - | op=remove | file=[139728824694912:alarm.cc:99] | msg= event=END-ALARM code=100 origin= 127.0.0.1:27017 info=MongoConnection OK DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x262fca0 DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x26300a0 DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.DEVICE" } DEBUG - | op=createIndex | file=[139728824694912:collection.cc:662] | msg=iot.DEVICE checkIndex DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.DEVICE", key: { device_id: 1, service: 1, service_path: 1 }, unique: true } DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2630680 DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.DEVICE" } DEBUG - | op=createIndex | file=[139728824694912:collection.cc:662] | msg=iot.DEVICE checkIndex DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.DEVICE", key: { entity_name: 1, entity_type: 1, service: 1, service_path: 1 }, unique: true } DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2630f80 DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2630c10 DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.SERVICE" } DEBUG - | op=createIndex | file=[139728824694912:collection.cc:662] | msg=iot.SERVICE checkIndex DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.SERVICE", key: { service: 1, service_path: 1, resource: 1 }, unique: true } DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x26316d0 DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2631a80 DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.SERVICE_MGMT" } DEBUG - | op=createIndex | file=[139728824694912:collection.cc:662] | msg=iot.SERVICE_MGMT checkIndex DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.SERVICE_MGMT", key: { service: 1, service_path: 1, iotagent: 1, protocol: 1 }, unique: true } DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2631d70 DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2632980 DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.COMMAND" } DEBUG - | op=createIndex | file=[139728824694912:collection.cc:662] | msg=iot.COMMAND checkIndex DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.COMMAND", key: { id: 1, service: 1, service_path: 1 }, unique: true } DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2632780 DEBUG - | op=conn | file=[139728824694912:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x26300a0 DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.PROTOCOL" } DEBUG - | op=createIndex | file=[139728824694912:collection.cc:662] | msg=iot.PROTOCOL checkIndex DEBUG - | op=count | file=[139728824694912:collection.cc:833] | msg=Collection:count bbdd=iot.system.indexes options= query={ ns: "iot.PROTOCOL", key: { protocol: 1 }, unique: true } DEBUG - | op=read_schema | file=[139728824694912:admin_service.cc:111] | msg=No schema path defined, using /etc/iot DEBUG - | op=read_schema | file=[139728824694912:admin_service.cc:111] | msg=No schema path defined, using /etc/iot DEBUG - | op=read_schema | file=[139728824694912:admin_service.cc:111] | msg=No schema path defined, using /etc/iot DEBUG - | op=read_schema | file=[139728824694912:admin_service.cc:111] | msg=No schema path defined, using /etc/iot INFO - Added request handler for HTTP resource: /iot INFO - Loaded static web service for resource (/iot) DEBUG - | op=RestHandle | file=[139728824694912:rest_handle.cc:79] | msg=RestHandle constructor INFO - | op=RestHandle | file=[139728824694912:rest_handle.cc:92] | msg=type_store:mongodb DEBUG - | op=RestHandle | file=[139728824694912:rest_handle.cc:97] | msg=Setting function get in cache to find in mongo DEBUG - | op=NgsiService | file=[139728824694912:ngsi_service.cc:38] | msg=iota::NgsiService::NgsiService INFO - Added request handler for HTTP resource: /iot/ngsi INFO - Loaded static web service for resource (/iot/ngsi) DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot/ngsi DEBUG - | op=main | file=[139728824694912:main.cc:453] | msg=Config file /etc/iot/config.json DEBUG - | op=main | file=[139728824694912:main.cc:474] | msg=Starting___ /iot/kuraResources DEBUG - | op=RestHandle | file=[139728824694912:rest_handle.cc:79] | msg=RestHandle constructor INFO - | op=RestHandle | file=[139728824694912:rest_handle.cc:92] | msg=type_store:mongodb DEBUG - | op=RestHandle | file=[139728824694912:rest_handle.cc:97] | msg=Setting function get in cache to find in mongo DEBUG - | op=CommandHandle | file=[139728824694912:command_handle.cc:92] | msg=iota::CommandHandle::CommandHandle INFO - | op=CommandHandle | file=[139728824694912:command_handle.cc:106] | msg=type_store:mongodb DEBUG - | op=CommandHandle | file=[139728824694912:command_handle.cc:109] | msg=Setting function get in cache to find in mongo iota::esp::MqttService DEBUG - | op=MqttService | file=[139728824694912:MqttService.cc:58] | msg=iota::esp::MqttService Running... INFO - Added request handler for HTTP resource: /iot/kuraResources INFO - Loaded web service plug-in for resource (/iot/kuraResources): MqttService DEBUG - | op=main | file=[139728824694912:main.cc:480] | msg=set_service_option: ConfigFile /etc/iot/MqttService.xml DEBUG - | op=set_option | file=[139728824694912:MqttService.cc:135] | msg=Reading Config File: /etc/iot/MqttService.xml DEBUG - | op=set_option | file=[139728824694912:MqttService.cc:140] | msg=XML READ DEBUG - | op=set_option | file=[139728824694912:MqttService.cc:143] | msg=Sensor File: /etc/iot/sensormqtt.xml DEBUG - | op=initESPLib | file=[139728824694912:MqttService.cc:93] | msg=Loading sensor from file: /etc/iot/sensormqtt.xml 30-07-2015 10:17:12 [DEBUG] : Loading sensor File: /etc/iot/sensormqtt.xml 30-07-2015 10:17:12 [DEBUG] : LIB MQTT initializing.... 30-07-2015 10:17:12 [DEBUG] : LIB MQTT initializing.... DONE 30-07-2015 10:17:12 [DEBUG] : JSON Postprocessor: parsing XML 30-07-2015 10:17:12 [DEBUG] : JSON Postprocessor: parsing XML 30-07-2015 10:17:12 [DEBUG] : IOT output parser found 30-07-2015 10:17:12 [DEBUG] : IoT Output Plugin, parsingCustomElement 30-07-2015 10:17:12 [DEBUG] : Loaded sensor File: /etc/iot/sensormqtt.xml status=1 30-07-2015 10:17:12 [DEBUG] : Acquiring lock previous sensor was: id 0, stored sensors: 0 DEBUG - | op=initESPLib | file=[139728824694912:MqttService.cc:95] | msg=Created Sensor, idSensor : 1 INFO - Set web service option for resource (/iot/kuraResources): ConfigFile=/etc/iot/MqttService.xml DEBUG - | op=main | file=[139728824694912:main.cc:480] | msg=set_service_option: FileName MqttService DEBUG - | op=set_option | file=[139728824694912:MqttService.cc:161] | msg=OPTION: FileName IS UNKNOWN INFO - Set web service option for resource (/iot/kuraResources): FileName=MqttService INFO - Starting server on port 80 DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /devices to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/devices DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /devices/ to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/devices/ DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /services to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/services DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /services/ to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/services/ DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /about to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/about DEBUG - | op=set_timezone_database | file=[139728824694912:admin_service.cc:179] | msg=Load timezone database /etc/iot/date_time_zonespec.csv ERROR - | op=add_oauth_media_filters | file=[139728824694912:admin_service.cc:252] | msg=OAuth for northbound is not configured START PLUGIN MQtt DEBUG - | op=setIotaMqttService | file=[139728824694912:MqttService.cc:120] | msg=ContextBroker Publisher (IotaMqttService) registered for idsensor:1 DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot/kuraResources INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot/kuraResources DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/kuraResources DEBUG - | op=startESP | file=[139728824694912:MqttService.cc:124] | msg=Starting idsensor: 1 30-07-2015 10:17:12 [DEBUG] : InitConditions ...[-1] DONE 30-07-2015 10:17:12 [DEBUG] : InitConditions ...[-1] DONE DEBUG - | op=startESP | file=[139728824694912:MqttService.cc:126] | msg=Sensor idsensor: 1 DONE DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot/ngsi DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot/ngsi INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot/ngsi INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot/ngsi DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /iot/kuraResources/updateContext to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/ngsi/kuraResources/updateContext DEBUG - | op=enable_ngsi_service | file=[139728824694912:command_handle.cc:1708] | msg=default queryContext added DEBUG - | op=add_service | file=[139728824694912:admin_service.cc:1353] | msg=Registering /iot/ngsi DEBUG - | op=register_plugin | file=[139728824694912:rest_handle.cc:168] | msg=No internal stats information in configuration file /iot/ngsi INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:195] | msg=No internal stats information in configuration file /iot/ngsi INFO - | op=register_plugin | file=[139728824694912:rest_handle.cc:208] | msg=No IoTA-Manager configured in /iot/ngsi DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:352] | msg=Add url /iot/kuraResources/queryContext to url base /iot DEBUG - | op=add_url | file=[139728824694912:rest_handle.cc:366] | msg=Added url /iot/ngsi/kuraResources/queryContext INFO - | op=init_services_by_resource | file=[139728824694912:command_handle.cc:270] | msg=Init vector of services names by resource: /iot/kuraResources INFO - | op=get_public_ip | file=[139728824694912:rest_handle.cc:221] | msg=No public ip DEBUG - | op=start | file=[139728824694912:ngsi_service.cc:45] | msg=Start NgsiService INFO - | op=start | file=[139728824694912:ngsi_service.cc:67] | msg=OAuth for northbound is not configured 30-07-2015 10:17:12 [DEBUG] : Run Server Thread 1 30-07-2015 10:17:12 [DEBUG] : ESP_Plugin_Input_MQTT: checking map size : 0 30-07-2015 10:17:12 [DEBUG] : LIB MQTT trying connection to host localhost:1883.... 30-07-2015 10:17:12 [DEBUG] : Run Server Thread 1 30-07-2015 10:17:12 [DEBUG] : ESP_Plugin_Input_MQTT: checking map size : 0 30-07-2015 10:17:12 [DEBUG] : LIB MQTT trying connection to host localhost:1883.... INFO - | op=make_registrations | file=[139728518416128:command_handle.cc:303] | msg=Start thread make_registrations DEBUG - | op=send_all_registrations_from_mongo | file=[139728518416128:command_handle.cc:490] | msg=Sending all register from devices collection DEBUG - | op=conn | file=[139728518416128:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2630680 DEBUG - | op=conn | file=[139728518416128:mongo_connection.cc:261] | msg=MongoConnection::conn returns 0x2630c10 DEBUG - | op=send_all_registrations_from_mongo | file=[139728518416128:command_handle.cc:498] | msg=Resource: /iot/kuraResources DEBUG - | op=find | file=[139728518416128:collection.cc:704] | msg=Collection:find bbdd=iot.SERVICE query={ resource: "/iot/kuraResources" } limit=0 offset=0 options=16 DEBUG - | op=find | file=[139728518416128:collection.cc:718] | msg=before getConnection DEBUG - | op=find | file=[139728518416128:collection.cc:723] | msg=before query ./ini_iotagent.sh: line 2: 4455 Segmentation fault (core dumped) /usr/local/iot/bin/iotagent -i 192.168.2.114 -p 80 -v DEBUG -d /usr/local/iot/lib -c /etc/iot/config.json [egm@localhost iot]$