Storj-Dashboard-Client
Storj-Dashboard-Client copied to clipboard
Error: config_file is not defined in send_storj_reports.py
After installing the latest version of Storj-Dashboard-Client, reports are no longer being sent due to the following error:
Sending report for node storj-farmer
{'server_uuid': '<redacted>', 'report_uuid': 'c9c747d7-acec-44e7-9f93-5a6923537a29', 'node_name': 'storj-farmer', 'current_size': 438974711883, 'node_capacity': 1000000000000.0, 'version': '0.3.8
', 'storj_node_id': '<redacted>'}
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/storjreports/send_storj_reports.py", line 114, in send_report
json_config = json.loads(regexed_config)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.6/multiprocessing/pool.py", line 47, in starmapstar
return list(itertools.starmap(args[0], args[1]))
File "/usr/lib/python3.6/site-packages/storjreports/send_storj_reports.py", line 116, in send_report
print('Unable to decode JSON file: ' + config_file.name)
NameError: name 'config_file' is not defined
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/send_storj_reports", line 11, in <module>
load_entry_point('storjdash==0.3.8', 'console_scripts', 'send_storj_reports')()
File "/usr/lib/python3.6/site-packages/storjreports/__init__.py", line 5, in run_reports
send_storj_reports.main()
File "/usr/lib/python3.6/site-packages/storjreports/send_storj_reports.py", line 176, in main
examine_configs(settings['configs_directory'])
File "/usr/lib/python3.6/site-packages/storjreports/send_storj_reports.py", line 41, in examine_configs
results = pool.starmap(send_report, mp_args)
File "/usr/lib/python3.6/multiprocessing/pool.py", line 268, in starmap
return self._map_async(func, iterable, starmapstar, chunksize).get()
File "/usr/lib/python3.6/multiprocessing/pool.py", line 608, in get
raise self._value
NameError: name 'config_file' is not defined