@jkralik bundle has wrong configuration of cloud_authorization_provider
Wouter van der Beek
@WAvdBeek
e is 65537 (0x010001) starting nats-server starting mongod Try to reconnect to mongodb(localhost:10000) 1 starting oauth-server Try to reconnect to oauth-server(localhost:9088) 1 starting authorization Try to reconnect to authorization service(localhost:9085) 1 starting resource-aggregate Try to reconnect to resource-aggregate(localhost:9083) 1 starting resource-directory Try to reconnect to resource-directory(localhost:9082) 1 starting coap-gateway-unsecure starting coap-gateway-secure starting grpc-gateway Try to reconnect to grpc-gateway(localhost:9084) 1 starting http-gateway Try to reconnect to http-gateway(localhost:9086) 1 starting certificate-authority Try to reconnect to certificate-authority(localhost:9087) 1 starting nginx Open browser at https://192.168.178.85:8443
but only the reconnects are logged.. so it might be ok
Ondrej Tomcik
@ondrejtomcik
@jkralik can he changed it using env variable from test to plgd?
Wouter van der Beek
@WAvdBeek
ok, i just pressed the big red thing which is a device reset button.
something happend on the device: cloud manager status: Failed
but it also says that it installed successfully the PKI certificate chain.
Ondrej Tomcik
@ondrejtomcik
yes. problem is on our end. Already created MR
Build takes pretty long, I will give you new plgd cloud image in 40 mins.
OR even better, contribute with documentation - how to start with secure and unsecure device together with bundle and plgd mobile app! That would be awesome!
let me know if it works you need to reinit your mob app
Wouter van der Beek
@WAvdBeek
i am still debugging the update.. it looks like that plgd is checking the input and somehow this is failing the input check?
Ondrej Tomcik
@ondrejtomcik
Hm. Could you please go to developer console of your browser and check full response for that update request? If there are more information about the error.
Wouter van der Beek
@WAvdBeek
ed to load resource: the server responded with a status of 503 () utils.js:65 Uncaught (in promise) TypeError: t is not a function at ft (utils.js:65) at things-details-page.js:107 at u (runtime.js:63) at Generator._invoke (runtime.js:293) at Generator.throw (runtime.js:118) at r (asyncToGenerator.js:3) at l (asyncToGenerator.js:29)
the 503 is intentional..
not sure yet if this is a plgd problem. trying to debug with devicespy and i also see things that are weird.
Wouter van der Beek
@WAvdBeek
ok, this was not a plgd issue... issue is solved, e.g. update is working nicely from plgd to the device.
i am OoO tomorrow, so i will try the security solution next week.
Ondrej Tomcik
@ondrejtomcik
@WAvdBeek I was able to replicate your issue with update as well - such an error is returned when such a property is not editable - or simply when IoTivity-Lite rejests the request. Enjoy your time off and hear you on Monday.
Kyle Haefner
@khaefner
@ondrejtomcik regarding documentation, Clarke and I are working on an article for embedded, which will be pretty much a user guide on how to do all of this, it should not be a huge lift to update the documentation.
Soneca-ii
@Soneca-ii
Hi, a quick question. If creating an iotivity-lite server with CLOUD=1 ( secure and pki also) and placing the certificate from the PLGD I manage to onboard the device. Is there some workflow that I can do the same with an iotivity-lite server created with CLOUD=0 and configure it during the onboard?
Ondrej Tomcik
@ondrejtomcik
@Soneca-ii do you mean with plgd mobile app? CLOUD=0 has nothing to do with ownership transfer. It enables capability to onboard device to the cloud.
Wouter van der Beek
@WAvdBeek
Hi Ondrej, the onboarding securely to the cloud now works.. I tried it out with a fresh instance of docker & device and it worked seamlessly!
i can now control the device securely from the cloud.
the app can't control the device?
Ondrej Tomcik
@ondrejtomcik
Hey @WAvdBeek No, the application is just transfering the ownership to the authenticated user and setting the coapcloudconf resource. The API of the plgd.mobile supports it, but UI would have to be developed. To have at least easy onboarding we did this simple one button plgd app :)
Wouter van der Beek
@WAvdBeek
Ok thanks, I hoped I missed something. I agree that the app is simple and works correctly and simple for onboarding.
the issue that i have now is that I have to onboard devices that are talking to the cloud proxy, hence I need an OBT that does cloud setup and onboarding.. reading the email of Kishen that does not yet exist. So i will add that code in the iotivity OBT (commandline).
to make this work I need to have the data to onboard the plgd cloud, e.g. what is the security information (I only supplied the unsecure info as work around in the device that talks to the plgd cloud)
Ondrej Tomcik
@ondrejtomcik
@WAvdBeek could you please describe the flow, what needs to be done to onboard devices that are talking to the cloud proxy? How are these devices discovered? Are they onboarded separately or is it enough to onboard cloud proxy itself?
I didn’t track this topic in the OCF, so feel free to point me to some sequence diagram in the KAVI.
Wouter van der Beek
@WAvdBeek
It is CR2599
the cloud proxy (my own code, not yet released) can be onboarded to plgd with plgd app.
the issue is then that the client of the cloud proxy that talks to the OCF devices needs to be configured, hence the plgd app is not doing that.