Error while updating

I’ve found an issue while trying to update to the latest version of OSMC on my Raspberry Pi 3.

Here’s the log error when I try to manually scan for update:

22:30:44.097 T:1247802352 ERROR: Exception in thread Thread-37:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/osmc/OSMCSetting.py”, line 215, in run
subprocess.call([‘sudo’, ‘rm’, self.reset_file])
File “/usr/lib/python2.7/subprocess.py”, line 522, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib/python2.7/subprocess.py”, line 710, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1231, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
22:30:44.100 T:1128264688 WARNING: CPythonInvoker(17): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
22:30:44.280 T:1128264688 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class ‘socket.error’>
Error Contents: (2, ‘No such file or directory’)
Traceback (most recent call last):
File “/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/call_parent.py”, line 18, in
sock.connect(address)
File “/usr/lib/python2.7/socket.py”, line 224, in meth
return getattr(self._sock,name)(*args)
error: (2, ‘No such file or directory’)
–>End of Python script error report<–

Any ideas?

Try reboot and update again.
Also try a dist-upgrade

Over ssh dist-upgrade did the trick.

I tried to manually scan for an update after upgrade using the OSMC addon on kodi and this time didn’t gave any errors.