Obd.help not running

With my new electric car, I see the odb.help reports an error :

peter26@Volvol V50 $ obd.help
Timeout has occurred
To increase timeout (in seconds): $timeout=60

and the logs don’t look pretty

peter26@Volvol V50 $ minionutil.last_logs
>2-
      return func(self, *args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/obd_conn.py", line 129, in change_protocol
      return self._obd.change_protocol(id, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/obd/obd.py", line 209, in change_protocol
      ret = self.interface.set_protocol(protocol, baudrate=baudrate)
    File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/stn11xx.py", line 253, in set_protocol
      ret = super(STN11XX, self).set_protocol(protocol, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/elm327.py", line 417, in set_protocol
      self._manual_protocol(protocol, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/obd/interfaces/stn11xx.py", line 316, in _manual_protocol
      raise ValueError("Defining of custom baudrate is not supported for ELM327 protocols")
  ValueError: Defining of custom baudrate is not supported for ELM327 protocols
  2018-11-28 21:15:08,710 [salt.minion      :1553][ERROR   ][1180] A command in
  'obd.protocol' had a problem: Defining of custom baudrate is not supported for
  ELM327 protocols
  2018-11-28 21:15:16,037 [obd.interfaces.elm327:746 ][WARNING ][947] No data
  received within timeout of 2 seconds
  2018-11-29 07:20:36,835 [salt.loaded.ext.engines.spm_manager:82  ][ERROR  
  ][794] Failed to trigger last system off event
  Traceback (most recent call last):
    File "/var/cache/salt/minion/extmods/engines/spm_manager.py", line 73, in heartbeat_handler
      boot_time = __salt__["rpi.boot_time"]().get("value", None)
    File "/var/cache/salt/minion/extmods/modules/rpi.py", line 80, in boot_time
      raise salt.exceptions.CommandExecutionError("Unable to parse log line: {:}".format(res))
  CommandExecutionError: Unable to parse log line: Binary file /var/log/syslog
  matches
  2018-11-29 07:20:39,328 [messaging        :174 ][ERROR   ][789] Exception in
  worker thread 'sync_time' while running workflow for message: {'handler':
  'sync_time', 'kwargs': {'force': False}}
  Traceback (most recent call last):
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 167, in do_work
      self._call_hook_for(message, "workflow", message)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 224, in simple_workflow
      found, result = self._call_hook_for(message, "handler", *args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 74, in synchronizer
      return func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/engines/ec2x_manager.py", line 154, in sync_time_handler
      match = network_time_regex.match(res["data"])
  KeyError: 'data'
  2018-11-29 07:20:39,472 [messaging        :178 ][WARNING ][789] Suppressing
  above exception and continues as nothing happened
  2018-11-29 07:20:53,655 [messaging        :174 ][ERROR   ][789] Exception in
  worker thread 'sync_time' while running workflow for message: {'handler':
  'sync_time', 'kwargs': {'force': False}}
  Traceback (most recent call last):
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 167, in do_work
      self._call_hook_for(message, "workflow", message)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 224, in simple_workflow
      found, result = self._call_hook_for(message, "handler", *args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 74, in synchronizer
      return func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/engines/ec2x_manager.py", line 154, in sync_time_handler
      match = network_time_regex.match(res["data"])
  KeyError: 'data'
  2018-11-29 07:20:53,718 [messaging        :178 ][WARNING ][789] Suppressing
  above exception and continues as nothing happened
  2018-11-29 07:21:05,311 [messaging        :644 ][WARNING ][790] No reply
  message with tag 'ec2x/res/424069ce-4f28-4bf2-8af6-8db438660441' received
  within timeout of 30 secs
  2018-11-29 07:21:05,358 [salt.loaded.ext.engines.tracking_manager:142
  ][WARNING ][790] Unable to determine GNSS location: No reply message received
  within timeout of 30 secs - please try again and maybe increase timeout value
  2018-11-29 07:21:50,150 [salt.utils.decorators:613 ][WARNING ][1016] The
  function "module.run" is using its deprecated version and will expire in
  version "Sodium".
  2018-11-29 07:21:50,885 [salt.utils.decorators:613 ][WARNING ][1016] The
  function "module.run" is using its deprecated version and will expire in
  version "Sodium".
  2018-11-29 07:21:50,936 [salt.utils.decorators:613 ][WARNING ][1016] The
  function "module.run" is using its deprecated version and will expire in
  version "Sodium".
  2018-11-29 07:21:50,959 [salt.loaded.ext.module.minionutil:75  ][WARNING
  ][1016] Performing minion restart in 10 second(s) because of reason
  'update_during_startup'
  2018-11-29 07:22:24,809 [salt.utils.parsers:1050][WARNING ][371] Minion
  received a SIGTERM. Exiting.
  2018-11-29 07:23:06,118 [salt.loaded.ext.engines.spm_manager:82  ][ERROR  
  ][1110] Failed to trigger last system off event
  Traceback (most recent call last):
    File "/var/cache/salt/minion/extmods/engines/spm_manager.py", line 73, in heartbeat_handler
      boot_time = __salt__["rpi.boot_time"]().get("value", None)
    File "/var/cache/salt/minion/extmods/modules/rpi.py", line 80, in boot_time
      raise salt.exceptions.CommandExecutionError("Unable to parse log line: {:}".format(res))
  CommandExecutionError: Unable to parse log line: Binary file /var/log/syslog
  matches
  2018-11-29 07:23:23,720 [messaging        :174 ][ERROR   ][1118] Exception in
  worker thread 'readout_5sec' while running workflow for message: {'returner':
  'alternating_value', 'handler': 'query', 'kwargs': {'pid': 2101, 'name':
  'test', 'decoder': 'percent'}}
  Traceback (most recent call last):
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 167, in do_work
      self._call_hook_for(message, "workflow", message)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 250, in extended_workflow
      found, result = self._call_hook_for(message, "handler", *args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 74, in synchronizer
      return func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/engines/obd_manager.py", line 68, in query_handler
      raise Exception("Command may not be supported - set 'force=True' to run it anyway")
  Exception: Command may not be supported - set 'force=True' to run it anyway
  2018-11-29 07:23:23,826 [threading_more   :73  ][ERROR   ][1118] Exception in
  worker thread 'readout_5sec'
  Traceback (most recent call last):
    File "/var/cache/salt/minion/extmods/utils/threading_more.py", line 63, in run
      self.target(self, self.context)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 167, in do_work
      self._call_hook_for(message, "workflow", message)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 250, in extended_workflow
      found, result = self._call_hook_for(message, "handler", *args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 324, in _call_hook_for
      return True, func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/utils/messaging.py", line 74, in synchronizer
      return func(*args, **kwargs)
    File "/var/cache/salt/minion/extmods/engines/obd_manager.py", line 68, in query_handler
      raise Exception("Command may not be supported - set 'force=True' to run it anyway")
  Exception: Command may not be supported - set 'force=True' to run it anyway
  2018-11-29 07:23:58,235 [salt.utils.decorators:613 ][WARNING ][1223] The
  function "module.run" is using its deprecated version and will expire in
  version "Sodium".

As mentioned before, I’ve had problems changing/deleting cars, but the detected can bus was detected as :

6 - ISO n15765-4 (CAN 11/500) 500000

Any ideas ?

Thanks,

Pete

Seems to be working better today for some reason !

Hi Peter

We have sometimes seen that the service running behind the scenes stops responding, in that situation a restart will help - very often actually.
Thank you for the logs, we are continually improving the performance and stability, so it is very helpful.

Best regards
/Malte