Unable to upload single config or connectivity file to local DB
Hello,
I would like to upload a connectivity file and the config files of a quad module to the localDB.
In order to do this, I use the following command : ./localdb/bin/localdbtool-upload --tag MHT comp /home/itkpix/ModuleQC/Yarr/CERNPixQ49_Lcc_on/20UPGM22110565/20UPGM22110565_L2_warm.json
When doing so, I get the following error found below. From the error I take that it looks for a serial number, but these are both not written in the connectivity file or config file.
My question is twofold: Is the command I'm using the right one to upload these type of files to the LDB? And how can I mitigate or solve the error message below?
Many thanks, Milou
[10:31:12] INFO Main Function. localdbtool-upload:770
[10:31:12:889][ info ][ Local DB ]: ------------------------------
INFO ------------------------------ localdbtool-upload:699
[10:31:12:890][ info ][ Local DB ]: user tags = ['MHT']
INFO user tags = ['MHT'] localdbtool-upload:815
[10:31:12:892][ info ][ Local DB ]: Function: Register component data from specified connectivity file
INFO Function: Register component data from specified connectivity file localdbtool-upload:830
[10:31:12:894][ info ][ Local DB ]: loadbtool-upload.uploadComp
INFO loadbtool-upload.uploadComp localdbtool-upload:632
[10:31:12:896][ info ][ Local DB ]: Register Component Data.
INFO Register Component Data. localdbtool-upload:633
[10:31:12:897][ info ][ Local DB ]: Component Config File: /home/itkpix/ModuleQC/Yarr/CERNPixQ49_Lcc_on/20UPGM22110565/20UPGM22110565_L2_warm.json
INFO Component Config File: localdbtool-upload:634
/home/itkpix/ModuleQC/Yarr/CERNPixQ49_Lcc_on/20UPGM22110565/20UPGM22110565_L2_warm.json
[10:31:12:900][ info ][ Local DB ]: -> Setting user config: /home/itkpix/.yarr/localdb/user.json
INFO -> Setting user config: /home/itkpix/.yarr/localdb/user.json common.py:122
[10:31:12:902][ info ][ Local DB ]: -> Setting site config: /home/itkpix/.yarr/localdb/pcatlidmod03_site.json
INFO -> Setting site config: /home/itkpix/.yarr/localdb/pcatlidmod03_site.json common.py:140
[10:31:12:904][ info ][ Local DB ]: -> Setting database config: /home/itkpix/.yarr/localdb/pcatlidmod03_database.json (default)
INFO -> Setting database config: /home/itkpix/.yarr/localdb/pcatlidmod03_database.json (default) common.py:96
[10:31:12:906][ info ][ Local DB ]: Checking connection to DB Server: mongodb://pcatlidps18.cern.ch:27017/localdb ...
INFO Checking connection to DB Server: mongodb://pcatlidps18.cern.ch:27017/localdb ... localdb.py:103
[10:31:12:915][ info ][ Local DB ]: ---> Good connection!
INFO ---> Good connection! localdb.py:168
[10:31:12:929][ error ][ Local DB ]: Found an empty field in json file.
ERROR Found an empty field in json file. register.py:275
[10:31:12:930][ error ][ Local DB ]: file: connectivity.chips.0 key: serialNumber
ERROR file: connectivity.chips.0 key: serialNumber register.py:276
Traceback (most recent call last):
File "./localdb/bin/localdbtool-upload", line 833, in main
data.uploadComp(command[1])
File "./localdb/bin/localdbtool-upload", line 641, in uploadComp
self.checkConnCfg(i_path)
File "/home/itkpix/NewInstallation/Yarr/localdb/bin/../lib/localdb-tools/modules/register.py", line 1405, in checkConnCfg
self._check_empty(chip_conn, 'serialNumber', 'connectivity.chips.{}'.format(i))
File "/home/itkpix/NewInstallation/Yarr/localdb/bin/../lib/localdb-tools/modules/register.py", line 277, in _check_empty
raise RegisterError
register.RegisterError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./localdb/bin/localdbtool-upload", line 887, in <module>
if name == 'main': main()
File "./localdb/bin/localdbtool-upload", line 843, in main
logger.error( str(e) )
UnboundLocalError: local variable 'e' referenced before assignment