Project

General

Profile

Bug #7013

Unable to schedule smart tests

Added by Bernhard Heinz almost 6 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I just installed a fresh copy of FreeNAS 9.3 Beta (updated this morning to FreeNAS-9.3-BETA-201412080618).

When I try to schedule a SMART-Test (Tasks -> S.M.A.R.T. Tests), I get the error message: "Unable to load /api/v1.0/tasks/smarttest/ status:500". If I try to add a SMART-test, I get the error message that a similar test is already scheduled, no matter what test I try to schedule.

My hardware is: HP Z210 workstation, Xeon E3-1270 (3,40 GHz, Quadcore, HT), 16GB ECC-Ram, 4*2TB SATA drives in RAIDZ1.

The system is working like clockwork. SMART doesn't show any problems on the drives and the scrub completed without an error.

Associated revisions

Revision 93872607 (diff)
Added by William Grzybowski almost 6 years ago

Handle * for the SMART Test month field Ticket: #7013

Revision 6454935f (diff)
Added by William Grzybowski almost 6 years ago

Handle * for the SMART Test month field Ticket: #7013 (cherry picked from commit fc088a15c9e4caa1ceeff2c0063a489208d91438)

History

#1 Updated by Jordan Hubbard almost 6 years ago

  • Status changed from Unscreened to Closed: Cannot reproduce

I'm not sure what's going on here. I am able to schedule smart tests without any problem on my test machine. That error message is also from the API, which shouldn't even be invoked as part of this process.

#2 Updated by William Grzybowski almost 6 years ago

  • Assignee set to William Grzybowski
  • Target version changed from 9.3-BETA to Unspecified

As I told, the API is used in the WebUI to show in the datagrid.

#3 Updated by William Grzybowski almost 6 years ago

  • Status changed from Closed: Cannot reproduce to Screened

#4 Updated by William Grzybowski almost 6 years ago

Can you paste the traceback in /var/log/debug.log right after the error is displayed?

#5 Updated by Bernhard Heinz almost 6 years ago

Of course. Here it is:
--------------------------
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] Traceback (most recent call last):
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 234, in dispatch
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] request_type, request, args, **kwargs
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 464, in dispatch
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] response = method(request, **kwargs)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 293, in get_list
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] return super(DojoModelResource, self).get_list(request, **kwargs)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 215, in get_list
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] self.full_dehydrate(bundle) for bundle in bundles
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 862, in full_dehydrate
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] bundle = self.dehydrate(bundle)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/resources.py", line 1330, in dehydrate
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] common_human_fields(bundle)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/resources.py", line 113, in _common_human_fields
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] bundle.data[human] = getattr(bundle.obj, "get
%s" % human)()
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/tasks/models.py", line 606, in get_human_month
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] labels.append(unicode(mchoices[m]))
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] KeyError: u'
'
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] Traceback (most recent call last):
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 201, in wrapper
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] response = callback(request, args, **kwargs)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 432, in dispatch_list
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] return self.dispatch('list', request, **kwargs)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 234, in dispatch
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] request_type, request, *args, **kwargs
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 464, in dispatch
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] response = method(request, **kwargs)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 293, in get_list
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] return super(DojoModelResource, self).get_list(request, **kwargs)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 215, in get_list
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] self.full_dehydrate(bundle) for bundle in bundles
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 862, in full_dehydrate
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] bundle = self.dehydrate(bundle)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/resources.py", line 1330, in dehydrate
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] common_human_fields(bundle)
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/resources.py", line 113, in _common_human_fields
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] bundle.data[human] = getattr(bundle.obj, "get
%s" % human)()
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/tasks/models.py", line 606, in get_human_month
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] labels.append(unicode(mchoices[m]))
Dec 9 19:08:22 jarvis manage.py: [api.utils:12] KeyError: u'
'

#6 Updated by William Grzybowski almost 6 years ago

  • Status changed from Screened to Resolved

Thanks, should be fixed now.

#7 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF