Fix crashes due to bad VM log files #123

Closed
opened 2021-04-21 17:02:34 -04:00 by JoshuaBoniface · 1 comment
JoshuaBoniface commented 2021-04-21 17:02:34 -04:00 (Migrated from git.bonifacelabs.ca)
>>> Updating state of VM f6e345f8-14b2-4f1c-9bf2-2e02ad7d06d0            
>>> VM state change for "f6e345f8-14b2-4f1c-9bf2-2e02ad7d06d0": start hv2
'utf-8' codec can't decode byte 0xda in position 2887: invalid continuation byte
Traceback (most recent call last):                                       
  File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 340, in _get_children
    result = self._func(children)                            
  File "/usr/share/pvc/pvcnoded/Daemon.py", line 962, in update_domains  
    d_domain[domain] = VMInstance.VMInstance(domain, zk_conn, config, logger, this_node)
  File "/usr/share/pvc/pvcnoded/VMInstance.py", line 143, in __init__            
    self.console_log_instance = VMConsoleWatcherInstance.VMConsoleWatcherInstance(self.domuuid, self.domname, self.zk_conn, self.config, self.logger, self.this_node)
  File "/usr/share/pvc/pvcnoded/VMConsoleWatcherInstance.py", line 47, in __init__                                
    self.logdeque = deque(open(self.logfile), self.console_log_lines)
  File "/usr/lib/python3.7/codecs.py", line 322, in decode                   
    (result, consumed) = self._buffer_decode(data, self.errors, final)          
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 2887: invalid continuation byte
Traceback (most recent call last):                                         
  File "/usr/share/pvc/pvcnoded.py", line 22, in <module>
    import pvcnoded.Daemon  # noqa: F401
  File "/usr/share/pvc/pvcnoded/Daemon.py", line 955, in <module>
    @zk_conn.ChildrenWatch('/domains')
  File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 311, in __call__
    self._get_children()
  File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 37, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 340, in _get_children
    result = self._func(children)
  File "/usr/share/pvc/pvcnoded/Daemon.py", line 962, in update_domains
    d_domain[domain] = VMInstance.VMInstance(domain, zk_conn, config, logger, this_node)
  File "/usr/share/pvc/pvcnoded/VMInstance.py", line 143, in __init__
    self.console_log_instance = VMConsoleWatcherInstance.VMConsoleWatcherInstance(self.domuuid, self.domname, self.zk_conn, self.config, self.logger, self.this_node)
  File "/usr/share/pvc/pvcnoded/VMConsoleWatcherInstance.py", line 47, in __init__
    self.logdeque = deque(open(self.logfile), self.console_log_lines)
  File "/usr/lib/python3.7/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 2887: invalid continuation byte
pvcnoded.service: Main process exited, code=exited, status=1/FAILURE
``` >>> Updating state of VM f6e345f8-14b2-4f1c-9bf2-2e02ad7d06d0 >>> VM state change for "f6e345f8-14b2-4f1c-9bf2-2e02ad7d06d0": start hv2 'utf-8' codec can't decode byte 0xda in position 2887: invalid continuation byte Traceback (most recent call last): File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 340, in _get_children result = self._func(children) File "/usr/share/pvc/pvcnoded/Daemon.py", line 962, in update_domains d_domain[domain] = VMInstance.VMInstance(domain, zk_conn, config, logger, this_node) File "/usr/share/pvc/pvcnoded/VMInstance.py", line 143, in __init__ self.console_log_instance = VMConsoleWatcherInstance.VMConsoleWatcherInstance(self.domuuid, self.domname, self.zk_conn, self.config, self.logger, self.this_node) File "/usr/share/pvc/pvcnoded/VMConsoleWatcherInstance.py", line 47, in __init__ self.logdeque = deque(open(self.logfile), self.console_log_lines) File "/usr/lib/python3.7/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 2887: invalid continuation byte Traceback (most recent call last): File "/usr/share/pvc/pvcnoded.py", line 22, in <module> import pvcnoded.Daemon # noqa: F401 File "/usr/share/pvc/pvcnoded/Daemon.py", line 955, in <module> @zk_conn.ChildrenWatch('/domains') File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 311, in __call__ self._get_children() File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 37, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/kazoo/recipe/watchers.py", line 340, in _get_children result = self._func(children) File "/usr/share/pvc/pvcnoded/Daemon.py", line 962, in update_domains d_domain[domain] = VMInstance.VMInstance(domain, zk_conn, config, logger, this_node) File "/usr/share/pvc/pvcnoded/VMInstance.py", line 143, in __init__ self.console_log_instance = VMConsoleWatcherInstance.VMConsoleWatcherInstance(self.domuuid, self.domname, self.zk_conn, self.config, self.logger, self.this_node) File "/usr/share/pvc/pvcnoded/VMConsoleWatcherInstance.py", line 47, in __init__ self.logdeque = deque(open(self.logfile), self.console_log_lines) File "/usr/lib/python3.7/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 2887: invalid continuation byte pvcnoded.service: Main process exited, code=exited, status=1/FAILURE ```
JoshuaBoniface commented 2021-05-10 01:07:49 -04:00 (Migrated from git.bonifacelabs.ca)

closed via commit 5ceb57e540

closed via commit 5ceb57e54017bc31ccbcf9bbc1729ac1e3ad1ac8
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: parallelvirtualcluster/pvc#123
No description provided.