2018-08-18 21:33:26

by Raul Piper

[permalink] [raw]
Subject: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

Hello ,
I have built and BlueZ 5.50 from the source and installed it on
raspberry PI 3 W0, but when I am trying to launch the meshctl tool -
using ./meshctl (from within or out side the mesh directory) i am
getting the below error :

Failed to parse provisioning database file prov_db.json

I checked the online sanity onfthe above json file and it seems correct.



I tried doing the sudo hcitool -lescan - it shows the LE devices and also

bluetoothd -v gives 5.50 which shows my compilation and loading of the
new BlueZ is alteast correct.

I have already installed the c-json lib .

Is this a bug in meshctl?

Please assist !


Thanks in Advance !


2018-08-23 12:55:31

by Steve Brown

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

On Thu, 2018-08-23 at 06:19 +0000, Stotland, Inga wrote:
> Hi Raul,
>
> On Thu, 2018-08-23 at 00:58 +0530, Raul Piper wrote:
> > Hello Inga,
> > On Tue, Aug 21, 2018 at 10:55 PM Stotland, Inga <
> > inga.stotland@intel.
> > com> wrote:
> > >
> > > Hi Raul,
> > >
> > > On Tue, 2018-08-21 at 13:29 +0530, Raul Piper wrote:
> > > > Hello Inga,
> > > >
> > > >
> > > > On Tue, Aug 21, 2018 at 2:37 AM, Stotland, Inga <
> > > > inga.stotland@in
> > > > tel.
> > > > com> wrote:
> > > > > Hi Raul,
> > > > >
> > > > > On Tue, 2018-08-21 at 01:14 +0530, Raul Piper wrote:
> > > > > > Hello Inga,
> > > > > > Attached,
> > > > > > Rgds,
> > > > > > Rp
> > > > > >
> > > > > > On Tue, Aug 21, 2018 at 12:46 AM, Stotland, Inga
> > > > > > <[email protected]> wrote:
> > > > > > > Hi Raul,
> > > > > > >
> > > > > > > On Tue, 2018-08-21 at 00:13 +0530, Raul Piper wrote:
> > > > > > > > Hello Inga,
> > > > > > > > it gives the below logs :
> > > > > > > >
> > > > > > > > pi@raspberrypi:~/blueZ $ meshctl -c mesh
> > > > > > > >
> > > > > > > > Failed to parse local node configuration file
> > > > > > > > mesh/local_node.json
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > pi@raspberrypi:~/blueZ $ meshctl -v
> > > > > > > >
> > > > > > > > meshctl: 5.50
> > > > > > > >
> > > > > > > > i need to do export before executing above commands
> > > > > > > >
> > > > > > > > pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/local/lib
> > > > > > > >
> > > > > > > > pi@raspberrypi:~ $ export LD_LIBRARY_PATH
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > to avoid the below error :
> > > > > > > >
> > > > > > > > pi@raspberrypi:~ $ meshctl -v
> > > > > > > >
> > > > > > > > meshctl: error while loading shared libraries: libjson-
> > > > > > > > c.so.4:
> > > > > > > > cannot
> > > > > > > > open shared object file: No such file or directory
> > > > > > > >
> > > > > > > >
> > > > > > > > can you please assist?
> > > > > > > > or any experimental patch I could use on BlueZ
> > > > > > > >
> > > > > > > > Thanks in advance
> > > > > > > > Best Regards,
> > > > > > > > Rp
> > > > > > > >
> > > > > > > > On Mon, Aug 20, 2018 at 3:06 AM, Stotland, Inga
> > > > > > > > <inga.stotlan
> > > > > > > > d@in
> > > > > > > > tel.
> > > > > > > > com> wrote:
> > > > > > > > > Hi Raul,
> > > > > > > > > On Sun, 2018-08-19 at 03:03 +0530, Raul Piper wrote:
> > > > > > > > > > Hello ,
> > > > > > > > > > I have built and BlueZ 5.50 from the source and
> > > > > > > > > > installed
> > > > > > > > > > it
> > > > > > > > > > on
> > > > > > > > > > raspberry PI 3 W0, but when I am trying to launch
> > > > > > > > > > the
> > > > > > > > > > meshctl
> > > > > > > > > > tool -
> > > > > > > > > > using ./meshctl (from within or out side the mesh
> > > > > > > > > > directory)
> > > > > > > > > > i am
> > > > > > > > > > getting the below error :
> > > > > > > > > >
> > > > > > > > > > Failed to parse provisioning database file
> > > > > > > > > > prov_db.json
> > > > > > > > > >
> > > > > > > > > > I checked the online sanity onfthe above json file
> > > > > > > > > > and it
> > > > > > > > > > seems
> > > > > > > > > > correct.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > I tried doing the sudo hcitool -lescan - it shows
> > > > > > > > > > the
> > > > > > > > > > LE
> > > > > > > > > > devices
> > > > > > > > > > and also
> > > > > > > > > >
> > > > > > > > > > bluetoothd -v gives 5.50 which shows my compilation
> > > > > > > > > > and
> > > > > > > > > > loading
> > > > > > > > > > of the
> > > > > > > > > > new BlueZ is alteast correct.
> > > > > > > > > >
> > > > > > > > > > I have already installed the c-json lib .
> > > > > > > > > >
> > > > > > > > > > Is this a bug in meshctl?
> > > > > > > > > >
> > > > > > > > > > Please assist !
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Thanks in Advance !
> > > > > > > > >
> > > > > > > > > Are you using the default json file? If so, there's a
> > > > > > > > > bug
> > > > > > > > > in
> > > > > > > > > meshctl
> > > > > > > > > for reading from default location (just subimmted a
> > > > > > > > > patch
> > > > > > > > > for
> > > > > > > > > that).
> > > > > > > > >
> > > > > > > > > Meanwhile, try running:
> > > > > > > > > ./meshctl -c mesh
> > > > > > > > >
> > > > > > > > > Regards,
> > > > > > > > > Inga
> > > > > > > > >
> > > > > > >
> > > > > > > I am not an expert on system setup, but could you please
> > > > > > > run
> > > > > > > sudo /sbin/ldconfig -v
> > > > > > >
> > > > > > > Regards,
> > > > > > > Inga
> > > > > >
> > > > > >
> > > > >
> > > > > There is no record of libjson-c in your ldconfig output. So
> > > > > my
> > > > > guess
> > > > > would be that something is to do with the installation of
> > > > > json-
> > > > > c
> > > > > library on rpi.
> > > > >
> > > > > If you had to build the json-c from source and then run make
> > > > > install,
> > > > > you may want to modify the installation path to be something
> > > > > standard
> > > > > on your system from where ldconfig will be able to pick it
> > > > > up.
> > > > > ./configure --prefix=/somewhere/not/usr/local prior to make
> > > > > install
> > > > >
> > > > > Alternatively, you may try to run this command:
> > > > >
> > > > > ldconfig -l /path-to-libjson-c.so.xxx
> > > > >
> > > > > Re-run ldconfig afterwards and see if the libjson-c showed
> > > > > up.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Inga
> > > > >
> > > > > P.S. Just FYI, the standard way to respond to emails on bluez
> > > > > mailing
> > > > > list is to include the body of you reply at the tail of the
> > > > > message.
> > > > >
> > > >
> > > > Sorry for Top posting.
> > > > I reinstalled the blueZ (with --enable-mesh) , installed json-
> > > > c
> > > > from
> > > > the git
> > > > I can see the entry of the libjson-c unlike previously but it
> > > > still
> > > > gives the same error.
> > >
> > > By the same error you mean "error loading shared library" or
> > > "failed to
> > > parse"?
> > >
> > > > Don't we have to link the libjson-c with the BlueZ while
> > > > building
> > > > by
> > > > setting some Linker flags(LD) in the Makefile of the BlueZ.Is
> > > > there
> > > > any such option?
> > > > How will I come to know that it has built successfully with the
> > > > reference to the libjson-c.
> > > > I believe we must have json-c pre-installed before building
> > > > the BlueZ
> > > > and Build setup of BlueZ must know where is the libjson-c.
> > >
> > > Both configure and Makefile.tools reference ljson-c. meshctl
> > > executable
> > > would not be built if libjson-c wasn't found during build time.
> > >
> > > In case you are still experiencing "loading shared library"
> > > error,
> > > my
> > > guess is that the libjson-c location is not on the search path.
> > >
> > > Regards,
> > > Inga
> >
> > The error I meant is below (on executing meshctl -c mesh):
> > "Failed to parse local node configuration file
> > mesh/local_node.json"
> >
> >
> >
> > ldconfig -v | grep json command gives the below logs :
> >
> > ====================
> > ldconfig: Path `/lib/arm-linux-gnueabihf' given more than once
> >
> > ldconfig: Path `/usr/lib/arm-linux-gnueabihf' given more than once
> >
> > libjson-c.so.3 -> libjson-c.so.3.0.1
> >
> > ldconfig: /lib/arm-linux-gnueabihf/ld-2.24.so is the dynamic
> > linker,
> > ignoring
> >
> >
> > libjson-glib-1.0.so.0 -> libjson-glib-1.0.so.0.200.6
> >
> > libfastjson.so.4 -> libfastjson.so.4.0.0
> >
> > libjson-c.so.4 -> libjson-c.so.4.0.0
> >
> >
> >
> >
> > whereis libjson-c.so.4 gives the below logs :
> >
> > ===============================
> >
> > libjson-c.so: /usr/local/lib/libjson-c.so /usr/local/lib/libjson-
> > c.so.4
> >
> > whereis libjson-c.so.4.0.0 gives the below logs :
> >
> > ==============================
> >
> > libjson-c.so.4.0: /usr/local/lib/libjson-c.so.4.0.0
> >
> > I have added the /usr/local/lib to the PATH
> >
> > echo $PATH gives the below logs :
> > ===========================
> > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/l
> > oc
> > al/games:/usr/games:/usr/local/lib:/home/pi/opt/bin
> >
> >
> > what possibly could be wrong?
> > Do you have a set of steps to test the "meshctl -c mesh " command
> > starting from the installation
> > of json-c and BlueZ . I can start fresh .
> >
> > Thanks in advance !
> > Rp
>
>
> It seems that now jscon-c library is loaded (otherwise, you would've
> seen an error "failed to load shared ...")
>
> I just realized that you're on 5.50 release.
> Could you confirm that bluez/mesh directory contains local_node.json
> &
> prov_db.json?
>
> Simply running "./meshctl" from bluez/mesh directory should work.
>
> You can run meshctl from outside mesh directory but then you need to
> provide -c option, i.e. "-c <path_to_json_files>".
>
> Regards,
> Inga
>
>

The stock Raspbian kernel is missing the algif_hash module.

Without it, crypto.c:aes_cmac_setup fails.

This will also cause the error message "Failed to parse provisioning
database file mesh/prov_db.json"

I had to build a custom kernel with CONFIG_CRYPTO_USER_API_HASH.

Steve

2018-08-23 06:19:22

by Stotland, Inga

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

SGkgUmF1bCwNCg0KT24gVGh1LCAyMDE4LTA4LTIzIGF0IDAwOjU4ICswNTMwLCBSYXVsIFBpcGVy
IHdyb3RlOg0KPiBIZWxsbyBJbmdhLA0KPiBPbiBUdWUsIEF1ZyAyMSwgMjAxOCBhdCAxMDo1NSBQ
TSBTdG90bGFuZCwgSW5nYSA8aW5nYS5zdG90bGFuZEBpbnRlbC4NCj4gY29tPiB3cm90ZToNCj4g
PiANCj4gPiBIaSBSYXVsLA0KPiA+IA0KPiA+IE9uIFR1ZSwgMjAxOC0wOC0yMSBhdCAx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KPiANCj4gVGhhbmtzIGluIGFkdmFuY2UgIQ0KPiBScA0KDQogDQpJdCBzZWVt
cyB0aGF0IG5vdyBqc2Nvbi1jIGxpYnJhcnkgaXMgbG9hZGVkIChvdGhlcndpc2UsIHlvdSB3b3Vs
ZCd2ZQ0Kc2VlbiBhbiBlcnJvciAiZmFpbGVkIHRvIGxvYWQgc2hhcmVkIC4uLiIpDQoNCkkganVz
dCByZWFsaXplZCB0aGF0IHlvdSdyZSBvbiA1LjUwIHJlbGVhc2UuIA0KQ291bGQgeW91IGNvbmZp
cm0gdGhhdCBibHVlei9tZXNoIGRpcmVjdG9yeSBjb250YWlucyBsb2NhbF9ub2RlLmpzb24gJg0K
cHJvdl9kYi5qc29uPw0KDQpTaW1wbHkgcnVubmluZyAiLi9tZXNoY3RsIiBmcm9tIGJsdWV6L21l
c2ggZGlyZWN0b3J5IHNob3VsZCB3b3JrLg0KDQpZb3UgY2FuIHJ1biBtZXNoY3RsIGZyb20gb3V0
c2lkZSBtZXNoIGRpcmVjdG9yeSBidXQgdGhlbiB5b3UgbmVlZCB0bw0KcHJvdmlkZSAtYyBvcHRp
b24sIGkuZS4gIi1jIDxwYXRoX3RvX2pzb25fZmlsZXM+Ii4NCg0KUmVnYXJkcywNCkluZ2ENCg0K
DQo=

2018-08-22 19:28:42

by Raul Piper

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

Hello Inga,
On Tue, Aug 21, 2018 at 10:55 PM Stotland, Inga <[email protected]> wrote:
>
> Hi Raul,
>
> On Tue, 2018-08-21 at 13:29 +0530, Raul Piper wrote:
> > Hello Inga,
> >
> >
> > On Tue, Aug 21, 2018 at 2:37 AM, Stotland, Inga <inga.stotland@intel.
> > com> wrote:
> > > Hi Raul,
> > >
> > > On Tue, 2018-08-21 at 01:14 +0530, Raul Piper wrote:
> > > > Hello Inga,
> > > > Attached,
> > > > Rgds,
> > > > Rp
> > > >
> > > > On Tue, Aug 21, 2018 at 12:46 AM, Stotland, Inga
> > > > <[email protected]> wrote:
> > > > > Hi Raul,
> > > > >
> > > > > On Tue, 2018-08-21 at 00:13 +0530, Raul Piper wrote:
> > > > > > Hello Inga,
> > > > > > it gives the below logs :
> > > > > >
> > > > > > pi@raspberrypi:~/blueZ $ meshctl -c mesh
> > > > > >
> > > > > > Failed to parse local node configuration file
> > > > > > mesh/local_node.json
> > > > > >
> > > > > >
> > > > > >
> > > > > > pi@raspberrypi:~/blueZ $ meshctl -v
> > > > > >
> > > > > > meshctl: 5.50
> > > > > >
> > > > > > i need to do export before executing above commands
> > > > > >
> > > > > > pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/local/lib
> > > > > >
> > > > > > pi@raspberrypi:~ $ export LD_LIBRARY_PATH
> > > > > >
> > > > > >
> > > > > >
> > > > > > to avoid the below error :
> > > > > >
> > > > > > pi@raspberrypi:~ $ meshctl -v
> > > > > >
> > > > > > meshctl: error while loading shared libraries: libjson-
> > > > > > c.so.4:
> > > > > > cannot
> > > > > > open shared object file: No such file or directory
> > > > > >
> > > > > >
> > > > > > can you please assist?
> > > > > > or any experimental patch I could use on BlueZ
> > > > > >
> > > > > > Thanks in advance
> > > > > > Best Regards,
> > > > > > Rp
> > > > > >
> > > > > > On Mon, Aug 20, 2018 at 3:06 AM, Stotland, Inga <inga.stotlan
> > > > > > d@in
> > > > > > tel.
> > > > > > com> wrote:
> > > > > > > Hi Raul,
> > > > > > > On Sun, 2018-08-19 at 03:03 +0530, Raul Piper wrote:
> > > > > > > > Hello ,
> > > > > > > > I have built and BlueZ 5.50 from the source and installed
> > > > > > > > it
> > > > > > > > on
> > > > > > > > raspberry PI 3 W0, but when I am trying to launch the
> > > > > > > > meshctl
> > > > > > > > tool -
> > > > > > > > using ./meshctl (from within or out side the mesh
> > > > > > > > directory)
> > > > > > > > i am
> > > > > > > > getting the below error :
> > > > > > > >
> > > > > > > > Failed to parse provisioning database file prov_db.json
> > > > > > > >
> > > > > > > > I checked the online sanity onfthe above json file and it
> > > > > > > > seems
> > > > > > > > correct.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I tried doing the sudo hcitool -lescan - it shows the LE
> > > > > > > > devices
> > > > > > > > and also
> > > > > > > >
> > > > > > > > bluetoothd -v gives 5.50 which shows my compilation and
> > > > > > > > loading
> > > > > > > > of the
> > > > > > > > new BlueZ is alteast correct.
> > > > > > > >
> > > > > > > > I have already installed the c-json lib .
> > > > > > > >
> > > > > > > > Is this a bug in meshctl?
> > > > > > > >
> > > > > > > > Please assist !
> > > > > > > >
> > > > > > > >
> > > > > > > > Thanks in Advance !
> > > > > > >
> > > > > > > Are you using the default json file? If so, there's a bug
> > > > > > > in
> > > > > > > meshctl
> > > > > > > for reading from default location (just subimmted a patch
> > > > > > > for
> > > > > > > that).
> > > > > > >
> > > > > > > Meanwhile, try running:
> > > > > > > ./meshctl -c mesh
> > > > > > >
> > > > > > > Regards,
> > > > > > > Inga
> > > > > > >
> > > > >
> > > > > I am not an expert on system setup, but could you please run
> > > > > sudo /sbin/ldconfig -v
> > > > >
> > > > > Regards,
> > > > > Inga
> > > >
> > > >
> > >
> > > There is no record of libjson-c in your ldconfig output. So my
> > > guess
> > > would be that something is to do with the installation of json-c
> > > library on rpi.
> > >
> > > If you had to build the json-c from source and then run make
> > > install,
> > > you may want to modify the installation path to be something
> > > standard
> > > on your system from where ldconfig will be able to pick it up.
> > > ./configure --prefix=/somewhere/not/usr/local prior to make install
> > >
> > > Alternatively, you may try to run this command:
> > >
> > > ldconfig -l /path-to-libjson-c.so.xxx
> > >
> > > Re-run ldconfig afterwards and see if the libjson-c showed up.
> > >
> > > Regards,
> > >
> > > Inga
> > >
> > > P.S. Just FYI, the standard way to respond to emails on bluez
> > > mailing
> > > list is to include the body of you reply at the tail of the
> > > message.
> > >
> >
> > Sorry for Top posting.
> > I reinstalled the blueZ (with --enable-mesh) , installed json-c from
> > the git
> > I can see the entry of the libjson-c unlike previously but it still
> > gives the same error.
>
> By the same error you mean "error loading shared library" or "failed to
> parse"?
>
> > Don't we have to link the libjson-c with the BlueZ while building by
> > setting some Linker flags(LD) in the Makefile of the BlueZ.Is there
> > any such option?
> > How will I come to know that it has built successfully with the
> > reference to the libjson-c.
> > I believe we must have json-c pre-installed before building
> > the BlueZ
> > and Build setup of BlueZ must know where is the libjson-c.
>
> Both configure and Makefile.tools reference ljson-c. meshctl executable
> would not be built if libjson-c wasn't found during build time.
>
> In case you are still experiencing "loading shared library" error, my
> guess is that the libjson-c location is not on the search path.
>
> Regards,
> Inga

The error I meant is below (on executing meshctl -c mesh):
"Failed to parse local node configuration file mesh/local_node.json"



ldconfig -v | grep json command gives the below logs :

====================
ldconfig: Path `/lib/arm-linux-gnueabihf' given more than once

ldconfig: Path `/usr/lib/arm-linux-gnueabihf' given more than once

libjson-c.so.3 -> libjson-c.so.3.0.1

ldconfig: /lib/arm-linux-gnueabihf/ld-2.24.so is the dynamic linker, ignoring


libjson-glib-1.0.so.0 -> libjson-glib-1.0.so.0.200.6

libfastjson.so.4 -> libfastjson.so.4.0.0

libjson-c.so.4 -> libjson-c.so.4.0.0




whereis libjson-c.so.4 gives the below logs :

===============================

libjson-c.so: /usr/local/lib/libjson-c.so /usr/local/lib/libjson-c.so.4

whereis libjson-c.so.4.0.0 gives the below logs :

==============================

libjson-c.so.4.0: /usr/local/lib/libjson-c.so.4.0.0

I have added the /usr/local/lib to the PATH

echo $PATH gives the below logs :
===========================
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/lib:/home/pi/opt/bin


what possibly could be wrong?
Do you have a set of steps to test the "meshctl -c mesh " command
starting from the installation
of json-c and BlueZ . I can start fresh .

Thanks in advance !
Rp

2018-08-21 17:25:09

by Stotland, Inga

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

SGkgUmF1bCwNCg0KT24gVHVlLCAyMDE4LTA4LTIxIGF0IDEzOjI5ICswNTMwLCB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ioning database file prov_db.json : BlueZ,Meshctl V5.50

Hello Inga,


On Tue, Aug 21, 2018 at 2:37 AM, Stotland, Inga <[email protected]> wrote:
> Hi Raul,
>
> On Tue, 2018-08-21 at 01:14 +0530, Raul Piper wrote:
>> Hello Inga,
>> Attached,
>> Rgds,
>> Rp
>>
>> On Tue, Aug 21, 2018 at 12:46 AM, Stotland, Inga
>> <[email protected]> wrote:
>> > Hi Raul,
>> >
>> > On Tue, 2018-08-21 at 00:13 +0530, Raul Piper wrote:
>> > > Hello Inga,
>> > > it gives the below logs :
>> > >
>> > > pi@raspberrypi:~/blueZ $ meshctl -c mesh
>> > >
>> > > Failed to parse local node configuration file
>> > > mesh/local_node.json
>> > >
>> > >
>> > >
>> > > pi@raspberrypi:~/blueZ $ meshctl -v
>> > >
>> > > meshctl: 5.50
>> > >
>> > > i need to do export before executing above commands
>> > >
>> > > pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/local/lib
>> > >
>> > > pi@raspberrypi:~ $ export LD_LIBRARY_PATH
>> > >
>> > >
>> > >
>> > > to avoid the below error :
>> > >
>> > > pi@raspberrypi:~ $ meshctl -v
>> > >
>> > > meshctl: error while loading shared libraries: libjson-c.so.4:
>> > > cannot
>> > > open shared object file: No such file or directory
>> > >
>> > >
>> > > can you please assist?
>> > > or any experimental patch I could use on BlueZ
>> > >
>> > > Thanks in advance
>> > > Best Regards,
>> > > Rp
>> > >
>> > > On Mon, Aug 20, 2018 at 3:06 AM, Stotland, Inga <inga.stotland@in
>> > > tel.
>> > > com> wrote:
>> > > > Hi Raul,
>> > > > On Sun, 2018-08-19 at 03:03 +0530, Raul Piper wrote:
>> > > > > Hello ,
>> > > > > I have built and BlueZ 5.50 from the source and installed it
>> > > > > on
>> > > > > raspberry PI 3 W0, but when I am trying to launch the meshctl
>> > > > > tool -
>> > > > > using ./meshctl (from within or out side the mesh directory)
>> > > > > i am
>> > > > > getting the below error :
>> > > > >
>> > > > > Failed to parse provisioning database file prov_db.json
>> > > > >
>> > > > > I checked the online sanity onfthe above json file and it
>> > > > > seems
>> > > > > correct.
>> > > > >
>> > > > >
>> > > > >
>> > > > > I tried doing the sudo hcitool -lescan - it shows the LE
>> > > > > devices
>> > > > > and also
>> > > > >
>> > > > > bluetoothd -v gives 5.50 which shows my compilation and
>> > > > > loading
>> > > > > of the
>> > > > > new BlueZ is alteast correct.
>> > > > >
>> > > > > I have already installed the c-json lib .
>> > > > >
>> > > > > Is this a bug in meshctl?
>> > > > >
>> > > > > Please assist !
>> > > > >
>> > > > >
>> > > > > Thanks in Advance !
>> > > >
>> > > > Are you using the default json file? If so, there's a bug in
>> > > > meshctl
>> > > > for reading from default location (just subimmted a patch for
>> > > > that).
>> > > >
>> > > > Meanwhile, try running:
>> > > > ./meshctl -c mesh
>> > > >
>> > > > Regards,
>> > > > Inga
>> > > >
>> >
>> > I am not an expert on system setup, but could you please run
>> > sudo /sbin/ldconfig -v
>> >
>> > Regards,
>> > Inga
>>
>>
>
> There is no record of libjson-c in your ldconfig output. So my guess
> would be that something is to do with the installation of json-c
> library on rpi.
>
> If you had to build the json-c from source and then run make install,
> you may want to modify the installation path to be something standard
> on your system from where ldconfig will be able to pick it up.
> ./configure --prefix=/somewhere/not/usr/local prior to make install
>
> Alternatively, you may try to run this command:
>
> ldconfig -l /path-to-libjson-c.so.xxx
>
> Re-run ldconfig afterwards and see if the libjson-c showed up.
>
> Regards,
>
> Inga
>
> P.S. Just FYI, the standard way to respond to emails on bluez mailing
> list is to include the body of you reply at the tail of the message.
>

Sorry for Top posting.
I reinstalled the blueZ (with --enable-mesh) , installed json-c from the git
I can see the entry of the libjson-c unlike previously but it still
gives the same error.
Don't we have to link the libjson-c with the BlueZ while building by
setting some Linker flags(LD) in the Makefile of the BlueZ.Is there
any such option?
How will I come to know that it has built successfully with the
reference to the libjson-c.
I believe we must have json-c pre-installed before building the BlueZ
and Build setup of BlueZ must know where is the libjson-c.

Rgards,
Rp

2018-08-20 21:07:50

by Stotland, Inga

[permalink] [raw]
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biBtYWtlIGluc3RhbGwsDQp5b3UgbWF5
IHdhbnQgdG8gbW9kaWZ5IHRoZSBpbnN0YWxsYXRpb24gcGF0aCB0byBiZSBzb21ldGhpbmcgc3Rh
bmRhcmQNCm9uIHlvdXIgc3lzdGVtIGZyb20gd2hlcmUgbGRjb25maWcgd2lsbCBiZSBhYmxlIHRv
IHBpY2sgaXQgdXAuDQouL2NvbmZpZ3VyZSAtLXByZWZpeD0vc29tZXdoZXJlL25vdC91c3IvbG9j
YWwgcHJpb3IgdG8gbWFrZSBpbnN0YWxsDQoNCkFsdGVybmF0aXZlbHksIHlvdSBtYXkgdHJ5IHRv
IHJ1biB0aGlzIGNvbW1hbmQ6DQogDQogbGRjb25maWcgLWwgL3BhdGgtdG8tbGlianNvbi1jLnNv
Lnh4eA0KDQpSZS1ydW4gbGRjb25maWcgYWZ0ZXJ3YXJkcyBhbmQgc2VlIGlmIHRoZSBsaWJqc29u
LWMgc2hvd2VkIHVwLg0KDQpSZWdhcmRzLA0KDQpJbmdhDQoNClAuUy4gSnVzdCBGWUksIHRoZSBz
dGFuZGFyZCB3YXkgdG8gcmVzcG9uZCB0byBlbWFpbHMgb24gYmx1ZXogbWFpbGluZw0KbGlzdCBp
cyB0byBpbmNsdWRlIHRoZSBib2R5IG9mIHlvdSByZXBseSBhdCB0aGUgdGFpbCBvZiB0aGUgbWVz
c2FnZS4NCg0K

2018-08-20 19:44:51

by Raul Piper

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

Hello Inga,
Attached,
Rgds,
Rp

On Tue, Aug 21, 2018 at 12:46 AM, Stotland, Inga
<[email protected]> wrote:
> Hi Raul,
>
> On Tue, 2018-08-21 at 00:13 +0530, Raul Piper wrote:
>> Hello Inga,
>> it gives the below logs :
>>
>> pi@raspberrypi:~/blueZ $ meshctl -c mesh
>>
>> Failed to parse local node configuration file mesh/local_node.json
>>
>>
>>
>> pi@raspberrypi:~/blueZ $ meshctl -v
>>
>> meshctl: 5.50
>>
>> i need to do export before executing above commands
>>
>> pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/local/lib
>>
>> pi@raspberrypi:~ $ export LD_LIBRARY_PATH
>>
>>
>>
>> to avoid the below error :
>>
>> pi@raspberrypi:~ $ meshctl -v
>>
>> meshctl: error while loading shared libraries: libjson-c.so.4: cannot
>> open shared object file: No such file or directory
>>
>>
>> can you please assist?
>> or any experimental patch I could use on BlueZ
>>
>> Thanks in advance
>> Best Regards,
>> Rp
>>
>> On Mon, Aug 20, 2018 at 3:06 AM, Stotland, Inga <inga.stotland@intel.
>> com> wrote:
>> > Hi Raul,
>> > On Sun, 2018-08-19 at 03:03 +0530, Raul Piper wrote:
>> > > Hello ,
>> > > I have built and BlueZ 5.50 from the source and installed it on
>> > > raspberry PI 3 W0, but when I am trying to launch the meshctl
>> > > tool -
>> > > using ./meshctl (from within or out side the mesh directory) i am
>> > > getting the below error :
>> > >
>> > > Failed to parse provisioning database file prov_db.json
>> > >
>> > > I checked the online sanity onfthe above json file and it seems
>> > > correct.
>> > >
>> > >
>> > >
>> > > I tried doing the sudo hcitool -lescan - it shows the LE devices
>> > > and also
>> > >
>> > > bluetoothd -v gives 5.50 which shows my compilation and loading
>> > > of the
>> > > new BlueZ is alteast correct.
>> > >
>> > > I have already installed the c-json lib .
>> > >
>> > > Is this a bug in meshctl?
>> > >
>> > > Please assist !
>> > >
>> > >
>> > > Thanks in Advance !
>> >
>> > Are you using the default json file? If so, there's a bug in
>> > meshctl
>> > for reading from default location (just subimmted a patch for
>> > that).
>> >
>> > Meanwhile, try running:
>> > ./meshctl -c mesh
>> >
>> > Regards,
>> > Inga
>> >
>>
>
> I am not an expert on system setup, but could you please run
> sudo /sbin/ldconfig -v
>
> Regards,
> Inga


Attachments:
log (34.07 kB)

2018-08-20 19:16:47

by Stotland, Inga

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

SGkgUmF1bCwNCg0KT24gVHVl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Agd2hpY2ggc2hvd3MgbXkgY29tcGlsYXRpb24g
YW5kIGxvYWRpbmcNCj4gPiA+IG9mIHRoZQ0KPiA+ID4gbmV3IEJsdWVaIGlzIGFsdGVhc3QgY29y
cmVjdC4NCj4gPiA+IA0KPiA+ID4gSSBoYXZlIGFscmVhZHkgaW5zdGFsbGVkIHRoZSBjLWpzb24g
bGliIC4NCj4gPiA+IA0KPiA+ID4gSXMgdGhpcyBhIGJ1ZyBpbiBtZXNoY3RsPw0KPiA+ID4gDQo+
ID4gPiBQbGVhc2UgYXNzaXN0ICENCj4gPiA+IA0KPiA+ID4gDQo+ID4gPiBUaGFua3MgaW4gQWR2
YW5jZSAhDQo+ID4gDQo+ID4gQXJlIHlvdSB1c2luZyB0aGUgZGVmYXVsdCBqc29uIGZpbGU/IElm
IHNvLCB0aGVyZSdzIGEgYnVnIGluDQo+ID4gbWVzaGN0bA0KPiA+IGZvciByZWFkaW5nIGZyb20g
ZGVmYXVsdCBsb2NhdGlvbiAoanVzdCBzdWJpbW10ZWQgYSBwYXRjaCBmb3INCj4gPiB0aGF0KS4N
Cj4gPiANCj4gPiBNZWFud2hpbGUsIHRyeSBydW5uaW5nOg0KPiA+ICAuL21lc2hjdGwgLWMgbWVz
aA0KPiA+IA0KPiA+IFJlZ2FyZHMsDQo+ID4gSW5nYQ0KPiA+IA0KPiANCg0KSSBhbSBub3QgYW4g
ZXhwZXJ0IG9uIHN5c3RlbSBzZXR1cCwgYnV0IGNvdWxkIHlvdSBwbGVhc2UgcnVuDQpzdWRvIC9z
YmluL2xkY29uZmlnIC12DQoNClJlZ2FyZHMsDQpJbmdhDQo=

2018-08-20 18:43:05

by Raul Piper

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

Hello Inga,
it gives the below logs :

pi@raspberrypi:~/blueZ $ meshctl -c mesh

Failed to parse local node configuration file mesh/local_node.json



pi@raspberrypi:~/blueZ $ meshctl -v

meshctl: 5.50

i need to do export before executing above commands

pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/local/lib

pi@raspberrypi:~ $ export LD_LIBRARY_PATH



to avoid the below error :

pi@raspberrypi:~ $ meshctl -v

meshctl: error while loading shared libraries: libjson-c.so.4: cannot
open shared object file: No such file or directory


can you please assist?
or any experimental patch I could use on BlueZ

Thanks in advance
Best Regards,
Rp

On Mon, Aug 20, 2018 at 3:06 AM, Stotland, Inga <[email protected]> wrote:
> Hi Raul,
> On Sun, 2018-08-19 at 03:03 +0530, Raul Piper wrote:
>> Hello ,
>> I have built and BlueZ 5.50 from the source and installed it on
>> raspberry PI 3 W0, but when I am trying to launch the meshctl tool -
>> using ./meshctl (from within or out side the mesh directory) i am
>> getting the below error :
>>
>> Failed to parse provisioning database file prov_db.json
>>
>> I checked the online sanity onfthe above json file and it seems correct.
>>
>>
>>
>> I tried doing the sudo hcitool -lescan - it shows the LE devices and also
>>
>> bluetoothd -v gives 5.50 which shows my compilation and loading of the
>> new BlueZ is alteast correct.
>>
>> I have already installed the c-json lib .
>>
>> Is this a bug in meshctl?
>>
>> Please assist !
>>
>>
>> Thanks in Advance !
>
> Are you using the default json file? If so, there's a bug in meshctl
> for reading from default location (just subimmted a patch for that).
>
> Meanwhile, try running:
> ./meshctl -c mesh
>
> Regards,
> Inga
>

2018-08-19 21:36:52

by Stotland, Inga

[permalink] [raw]
Subject: Re: Failed to parse provisioning database file prov_db.json : BlueZ,Meshctl V5.50

SGkgUmF1bCwNCk9uIFN1biwgMjAxOC0wOC0xOSBhdCAwMzowMyArMDUzMCwgUmF1bCBQaXBlciB3
cm90ZToNCj4gSGVsbG8gLA0KPiBJIGhhdmUgYnVpbHQgYW5kIEJsdWVaIDUuNTAgZnJvbSB0aGUg
c291cmNlIGFuZCBpbnN0YWxsZWQgaXQgb24NCj4gcmFzcGJlcnJ5IFBJIDMgVzAsIGJ1dCB3aGVu
IEkgYW0gdHJ5aW5nIHRvIGxhdW5jaCB0aGUgbWVzaGN0bCB0b29sIC0NCj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