Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Error when cron started the last scrub, what's going on?

Status
Not open for further replies.

ovizii

Senior Member
Joined
Jun 30, 2014
Messages
432
I got this via email from my freenas and have no clue what it means. The scrub got started and is running though.

Subject:
Cron <root@freenas> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/local/libexec/nas/scrub -t 35 tank

Message:
Exception in thread WebSocketClient:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/
threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/site-packages/ws4py/websocket.py", line 427, in run
if not self.once():
File "/usr/local/lib/python2.7/site-packages/ws4py/websocket.py", line 305, in once
if not self.process(b):
File "/usr/local/lib/python2.7/site-packages/ws4py/websocket.py", line 377, in process
self.received_message(s.message)
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 32, in received_message
self.protocol.on_message(message.data.decode('utf8'))
File "/usr/local/lib/python2.7/site-packages/middlewared/client/protocol.py", line 26, in on_message
self.app.on_message(message)
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 38, in on_message
self.client._recv(message)
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py", line 100, in _recv
self._connected.set()
AttributeError: 'Client' object has no attribute '_connected'

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 83, in __init__
raise ClientException('Failed connection handshake')
middlewared.client.client.ClientException: Failed connection handshake
starting scrub of pool 'tank'
 
D

dlavigne

Guest
You shouldn't be getting a traceback. Please create a bug report at bugs.freenas.org that includes the full text of the traceback and post the issue number here.
 

rogerh

Neophyte Sage
Joined
Apr 18, 2014
Messages
1,086
I got a somewhat similar but different traceback sent to me by email. The scrub wasn't due as it was only four days since the previous one and as can be seen the frequency specified is every 6 days. I don't suppose it matters if it doesn't recur, but does it look like a different bug or related to the one above?

Code:
Subject:  Cron <root@mojave> /usr/local/libexec/nas/scrub -t 6 freenas-boot


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 21, in connect
  rv = super(WSClient, self).connect()
 File "/usr/local/lib/python2.7/site-packages/ws4py/client/__init__.py", line 216, in connect
  bytes = self.sock.recv(128)
socket.timeout: timed out


Is this a different bug, does anyone think? I don't suppose it is important if it doesn't happen again.
 
Status
Not open for further replies.
Top