Project

General

Profile

Bug #17825

Call timeout generating token

Added by William Grzybowski over 3 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Important
Assignee:
William Grzybowski
Category:
Middleware
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

This happens if the middleware is not running or crashed for whatever reason. This, however, should not be fatal to the UI at this point.

Traceback (most recent call last):
+ 1 non-project frame
2
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py", line 156 in process_view [args] [locals]
return login_required(view_func)(request, *view_args, **view_kwargs)
+ 2 non-project frames
5
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py", line 228 in adminInterface [args] [locals]
middleware_token = c.call('auth.generate_token')
6
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/site.py", line 228 in adminInterface [args] [locals]
middleware_token = c.call('auth.generate_token')
+ 1 non-project frame
7
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py" line 133 in call [args] [locals]
raise Exception("Call timeout")

Rollbar #34: https://rollbar.com/iXsystems/freenas-9/items/34/

Associated revisions

Revision 1b8aae60 (diff)
Added by William Grzybowski over 3 years ago

fix(gui): report is case token could not be generated, but not fatal Ticket: #17825

Revision 3e4fc6c2 (diff)
Added by William Grzybowski over 3 years ago

fix(middlewared): use CallTimeout exception Ticket: #17825

Revision 1a8990c7 (diff)
Added by William Grzybowski over 3 years ago

fix(gui): report as exception as well Ticket: #17825

History

#1 Updated by William Grzybowski over 3 years ago

  • Status changed from Fix In Progress to 19

Will merge after middlewared.

#2 Updated by William Grzybowski about 3 years ago

  • Status changed from 19 to Needs Developer Review

#3 Updated by William Grzybowski about 3 years ago

  • Assignee changed from William Grzybowski to Josh Paetzel

#4 Updated by Josh Paetzel about 3 years ago

  • Status changed from Needs Developer Review to Reviewed
  • Assignee changed from Josh Paetzel to William Grzybowski

#5 Updated by Vaibhav Chauhan about 3 years ago

  • Status changed from Reviewed to Ready For Release

#6 Updated by Anton Wax about 3 years ago

Dear Folks, may I ask for the release, i have this error at the moment, too, just slightly different
it is connected to Domain Controller Save Settings:

Environment:

Software Version: FreeNAS-9.10-MASTER-201701150408 (e1fcbf6)
Request Method: POST
Request URL: http://192.168.1.168/admin/services/domaincontroller/edit/1/

Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner
39. response = get_response(request)
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
159. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
208. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
57. response = view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/site.py" in inner
145. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in edit
566. mf.save()
File "./freenasUI/services/forms.py" in save
2011. notifier().restart("domaincontroller")
File "./freenasUI/middleware/notifier.py" in restart
261. return c.call('service.restart', what, {'onetime': False})
File "./freenasUI/middleware/notifier.py" in restart
261. return c.call('service.restart', what, {'onetime': False})
File "/usr/local/lib/python2.7/site-packages/middlewared/client/client.py" in call
156. raise CallTimeout("Call timeout")

Exception Type: CallTimeout at /admin/services/domaincontroller/edit/1/
Exception Value: Call timeout

How may I restart Middleware if there is any way?

#7 Updated by Dru Lavigne about 2 years ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF