anclrii / Storj-Exporter

Prometheus exporter for monitoring Storj storage nodes
GNU General Public License v3.0
59 stars 19 forks source link

"line 39, in sum_sat_daily_keys for day in daily_data_dict[daily_data_key]: TypeError: ‘NoneType’ object is not iterable" when disqualified #41

Closed anclrii closed 3 years ago

anclrii commented 3 years ago

zeddan81 11m I have problem to got storj exporter to start at one of my nodes after update of storj-exporter docker container. The diffrence is that node has been disqualified on one satellite. I got this in my log from the container. Blockquote Traceback (most recent call last): File “./storj-exporter.py”, line 191, in REGISTRY.register(StorjCollector()) File “/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py”, line 26, in register names = self._get_names(collector) File “/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py”, line 66, in _get_names for metric in desc_func(): File “./storj-exporter.py”, line 187, in collect yield from self.add_sat_metrics() File “./storj-exporter.py”, line 119, in add_sat_metrics yield from self.add_extended_sat_metrics(sat) File “./storj-exporter.py”, line 123, in add_extended_sat_metrics self.get_sat_data(sat) File “./storj-exporter.py”, line 33, in get_sat_data sat[‘sat_data’].update(self.sum_sat_daily_keys(sat[‘sat_data’], ‘bandwidthDaily’, [‘repair’,‘audit’,‘usage’], ‘egress’)) File “./storj-exporter.py”, line 39, in sum_sat_daily_keys for day in daily_data_dict[daily_data_key]: TypeError: ‘NoneType’ object is not iterable Traceback (most recent call last): File “./storj-exporter.py”, line 191, in REGISTRY.register(StorjCollector()) File “/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py”, line 26, in register names = self._get_names(collector) File “/usr/local/lib/python3.7/site-packages/prometheus_client/registry.py”, line 66, in _get_names for metric in desc_func(): File “./storj-exporter.py”, line 187, in collect yield from self.add_sat_metrics() File “./storj-exporter.py”, line 119, in add_sat_metrics yield from self.add_extended_sat_metrics(sat) File “./storj-exporter.py”, line 123, in add_extended_sat_metrics self.get_sat_data(sat) File “./storj-exporter.py”, line 33, in get_sat_data sat[‘sat_data’].update(self.sum_sat_daily_keys(sat[‘sat_data’], ‘bandwidthDaily’, [‘repair’,‘audit’,‘usage’], ‘egress’)) File “./storj-exporter.py”, line 39, in sum_sat_daily_keys for day in daily_data_dict[daily_data_key]: TypeError: ‘NoneType’ object is not iterable