In attempting to start NUT UPS i receive the following traceback. I am not sure why it is occurring.
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/smart_manager/views/nut_service.py", line 41, in post
self._switch_nut(command, self._get_config(service))
File "/opt/rockstor/src/rockstor/smart_manager/views/base_service.py", line 40, in _get_config
return json.loads(service.config)
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer
@djevo1 As I am currently working on the NUT config code and have managed to reproduce your error. At least in my reproduction there is also a more user friendly header message that reads:
Houston, we've had a problem.
Failed to start NUT-UPS service due to a system error. Check the service is configured correctly via it's spanner icon.
It is the expected outcome of attempting to enable the service prior to configuring it.
Does this reflect your experience or had you already entered a configuration, if so it would be useful to see what configuration lead to the same message so that we might ‘trouble shoot’ it?