scrub cronjob errors from client.py

Status
Not open for further replies.

freenarb

Cadet
Joined
Feb 11, 2015
Messages
9
This just started after a recent upgrade - I am getting these errors in an email with Subject "Cron <root@hostname> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/local/libexec/nas/scrub -t 14 poolname"

Traceback (most recent call last):
File "/usr/local/bin/midclt", line 9, in <module>
load_entry_point('middlewared==0.0.0', 'console_scripts', 'midclt')()
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 211, in main
with Client(uri=args.uri) as c:
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 78, in __init__
self._ws.connect()
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 22, in connect
self.sock.settimeout(None)
AttributeError: 'NoneType' object has no attribute 'settimeout'

on FreeBSD hostname.local 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+47645f1(9.10.2-STABLE): Mon Dec 19 08:30:01 UTC 2016 root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64 amd64
 

jag131990

Explorer
Joined
Dec 2, 2016
Messages
68
I think I've had the same thing. Here is my email. This update to freenas actually broke my python in my Sab jails and ultimately nzbtomedia scripts.

To fix my issues I had to pkg update my python etc.

Email log below.
Code:
Traceback (most recent call last):
  File "/usr/local/bin/midclt", line 9, in <module>
	load_entry_point('middlewared==0.0.0', 'console_scripts', 'midclt')()
  File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 211, in main
	with Client(uri=args.uri) as c:
  File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 78, in __init__
	self._ws.connect()
  File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 22, in connect
	self.sock.settimeout(None)
AttributeError: 'NoneType' object has no attribute 'settimeout'
 
Status
Not open for further replies.
Top