IoT-framework icon indicating copy to clipboard operation
IoT-framework copied to clipboard

devicehive-iot-framework snap fails to install if no enocean modem is avaialble

Open demon-xxi opened this issue 10 years ago • 1 comments

EnOcean service fails on start if no enocean device is installed on the gateway. Unfortunately snaps installation fails if any of the services fail to tart on install. Need to refactor eocean service to wait for device and ideally gracefully handle device reconnect.

demon-xxi avatar Dec 08 '15 18:12 demon-xxi

The latest version installs on RPi2 and I even got it one working with my service visible in AllJoyn explorer but does not start anymore. Also I see errors related to nvram creation:

Dec  9 20:08:12 localhost ubuntu-core-launcher[764]: 2015/12/09 20:08:12 ABOUT: map[DeviceId:"ab11ac945e6d46fabaae9da381efef80" DefaultLanguage:"en" ModelNumber:"example" Manufacturer:"DeviceHive" Description:"DeviceHive Alljoyn Hello Device" AppName:"Hello" SupportUrl:"devicehive.com" DeviceName:"Hello" SupportedLanguages:["en"] SoftwareVersion:"1.0" DateOfManufacture:"2015-10-28" HardwareVersion:"1.0" AppId:@ay [0xab, 0x11, 0xac, 0x94, 0x5e, 0x6d, 0x46, 0xfa, 0xba, 0xae, 0x9d, 0xa3, 0x81, 0xef, 0xef, 0x80]]
Dec  9 20:08:12 localhost ubuntu-core-launcher[764]: 000.000 aj_target_nvram.c:86 _AJ_LoadNVFromFile(): LoadNVFromFile() failed. status=AJ_ERR_FAILURE
Dec  9 20:08:12 localhost kernel: [  121.643673] audit: type=1400 audit(1449691692.828:15): apparmor="DENIED" operation="mknod" profile="devicehive-alljoyn_devicehive-alljoyn_IHSRQVcdPTea" name="/apps/devicehive-alljoyn/IHSRQVcdPTea/ajtcl.nvram" pid=821 comm="devicehive-allj" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
Dec  9 20:08:12 localhost kernel: [  121.643908] audit: type=1400 audit(1449691692.828:16): apparmor="DENIED" operation="mknod" profile="devicehive-alljoyn_devicehive-alljoyn_IHSRQVcdPTea" name="/apps/devicehive-alljoyn/IHSRQVcdPTea/ajtcl.nvram" pid=821 comm="devicehive-allj" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
Dec  9 20:08:12 localhost ubuntu-core-launcher[764]: 000.001 aj_target_nvram.c:100 _AJ_StoreNVToFile(): StoreNVToFile() failed. status=AJ_ERR_FAILURE
Dec  9 20:08:12 localhost kernel: [  121.646484] audit: type=1400 audit(1449691692.832:17): apparmor="DENIED" operation="mknod" profile="devicehive-alljoyn_devicehive-alljoyn_IHSRQVcdPTea" name="/apps/devicehive-alljoyn/IHSRQVcdPTea/ajtcl.nvram" pid=821 comm="devicehive-allj" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
Dec  9 20:08:12 localhost kernel: [  121.646707] audit: type=1400 audit(1449691692.832:18): apparmor="DENIED" operation="mknod" profile="devicehive-alljoyn_devicehive-alljoyn_IHSRQVcdPTea" name="/apps/devicehive-alljoyn/IHSRQVcdPTea/ajtcl.nvram" pid=821 comm="devicehive-allj" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
Dec  9 20:08:12 localhost ubuntu-core-launcher[764]: 000.001 aj_target_nvram.c:100 _AJ_StoreNVToFile(): StoreNVToFile() failed. status=AJ_ERR_FAILURE
Dec  9 20:08:12 localhost ubuntu-core-launcher[764]: 000.003 aj_target_nvram.c:100 _AJ_StoreNVToFile(): StoreNVToFile() failed. status=AJ_ERR_FAILURE
Dec  9 20:08:12 localhost ubuntu-core-launcher[764]: 000.004 aj_target_nvram.c:100 _AJ_StoreNVToFile(): StoreNVToFile() failed. status=AJ_ERR_FAILURE

demon-xxi avatar Dec 09 '15 20:12 demon-xxi