Openmediavault fixes

Issue 1

Getting mail with the following:

Subject:  Anacron job 'cron.weekly' on <server name>
Body: /etc/cron.weekly/openmediavault-update-smart-drivedb: mesg: ttyname failed: Inappropriate ioctl for device

Fix:
edit /root/.profile and replace

 
mesg n || true

with

 
test -t 0 && mesg n || true

Source: https://forum.openmediavault.org/index.php/Thread/20966-mesg-ttyname-failed-Inappropriate-ioctl-for-device/?postID=163028#post163028

Issue 2

The end of an apt-get has the following message:

Exception ignored in: .remove at 0x7f7f749447b8>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable
Exception ignored in: .remove at 0x7f7f749447b8>
Traceback (most recent call last):
File "/usr/lib/python3.5/weakref.py", line 117, in remove
TypeError: 'NoneType' object is not callable

Bug in Python

edit /usr/lib/python3.5/weakref.py and replace

def remove(wr, selfref=ref(self)):

with

def remove(wr, selfref=ref(self), _atomic_removal=_remove_dead_weakref):

and replace

_remove_dead_weakref(d, wr.key)

with

_atomic_removal(d, wr.key)

Source:
https://github.com/python/cpython/commit/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6

Source:
https://bugs.python.org/issue29519

0 Comments on “Openmediavault fixes

Leave a Reply

Your email address will not be published. Required fields are marked *

*