Bug #40968
Fix traceback when trying to add a Cloud Sync task
Description
On a systems running FreeNAS-11.1-U6-INTERNAL1 -When adding a Cloudsync Task (BackBlaze in this case) I got the following Traceback error:
POST
Request URL: http://10.231.3.50/admin/tasks/cloudsync/add/
Software Version: FreeNAS-11.1-U6-INTERNAL1 (63af3f037)
Exception Type: ClientException
Exception Value:
'args'
Exception Location: /usr/local/lib/python3.6/site-packages/middlewared/client/client.py in call, line 434
Server time: Tue, 7 Aug 2018 15:54:55 -0400
Traceback
Environment:
Software Version: FreeNAS-11.1-U6-INTERNAL1 (63af3f037)
Request Method: POST
Request URL: http://10.231.3.50/admin/tasks/cloudsync/add/
Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/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
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in wrapper
210. return self._admin.admin_view(view)(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
149. response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.6/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
142. return view(request, *args, **kwargs)
File "./freenasUI/freeadmin/options.py" in add
364. mf.save()
File "./freenasUI/tasks/forms.py" in save
121. self.instance = models.CloudSync.objects.get(pk=c.call('backup.create', cdata))
File "./freenasUI/tasks/forms.py" in save
121. self.instance = models.CloudSync.objects.get(pk=c.call('backup.create', cdata))
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
434. raise ClientException(c.error, c.errno, c.trace, c.extra)
Exception Type: ClientException at /admin/tasks/cloudsync/add/
Exception Value: 'args'
Request information
GET
No GET data
POST
Variable Value
all ''
description 'test'
direction 'PULL'
attributes '{"credential":1,"bucket":"FreeNAS111","folder":"test"}'
path '/mnt/Romulans/sela2'
transfer_mode 'COPY'
minute '00'
hour '*'
daymonth '*'
month '12'
dayweek '7'
__form_id 'dialogForm_cloudsync'
FILES
No FILES data
COOKIES
Variable Value
csrftoken '********'
fntreeSaveStateCookie 'root%2Croot%2F1%2Croot%2F1%2F5%2Croot%2F62%2Croot%2F1%2F6'
sessionid '39qchw8e4vhjdecbznka1vz7t2unyctp'
META
Variable Value
Related issues
History
#1
Updated by Bonnie Follweiler over 2 years ago
- Related to Feature #26131: Add "Auxiliary arguments" field to middleware added
#2
Updated by William Grzybowski over 2 years ago
- Assignee changed from William Grzybowski to Vladimir Vinogradenko
- Target version changed from Backlog to TrueNAS-11.1-U6.1
- Severity changed from New to High
#3
Updated by Dru Lavigne over 2 years ago
- Target version changed from TrueNAS-11.1-U6.1 to 11.1-U6
#4
Updated by Bug Clerk over 2 years ago
- Status changed from Unscreened to In Progress
#5
Updated by Bug Clerk over 2 years ago
- Status changed from In Progress to Ready for Testing
#7
Updated by Dru Lavigne over 2 years ago
- Needs Doc changed from Yes to No
- Needs Merging changed from Yes to No
#8
Updated by Bonnie Follweiler over 2 years ago
- Status changed from Ready for Testing to Passed Testing
Test Passed in FreeNAS-11.1-U6-INTERNAL4
#9
Updated by Dru Lavigne over 2 years ago
- Subject changed from Fix the Traceback when trying to add a Cloudsync task in FN11.1-U6 to Fix traceback when trying to add a Cloud Sync task
- Status changed from Passed Testing to Done
- Needs QA changed from Yes to No