Project

General

Profile

Bug #7626

Error 500 when trying to display periodic snapshots

Added by Marc Schaller over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
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

When displaying the periodic snapshot tasks tab, the datagrid appears empty and the only error message that is displayed is:
Unable to load /api/v1.0/storage/task/ status: 500

The HTTP response is the following JSON:
{"error_message": "Sorry, this request could not be processed. Please try again later."}

I can also paste you the content of /var/log/debug.log:
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] Traceback (most recent call last):
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 234, in dispatch
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] request_type, request, *args, **kwargs
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 464, in dispatch
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] response = method(request, **kwargs)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 293, in get_list
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] return super(DojoModelResource, self).get_list(request, **kwargs)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 215, in get_list
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] self.full_dehydrate(bundle) for bundle in bundles
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 862, in full_dehydrate
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] bundle = self.dehydrate(bundle)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/resources.py", line 1000, in dehydrate
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] 'days': days,
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] ValueError: unsupported format character 'j' (0x6a) at index 11
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] Traceback (most recent call last):
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 201, in wrapper
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] response = callback(request, *args, **kwargs)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 432, in dispatch_list
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] return self.dispatch('list', request, **kwargs)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 234, in dispatch
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] request_type, request, *args, **kwargs
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 464, in dispatch
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] response = method(request, **kwargs)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 293, in get_list
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] return super(DojoModelResource, self).get_list(request, **kwargs)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/utils.py", line 215, in get_list
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] self.full_dehydrate(bundle) for bundle in bundles
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/lib/python2.7/site-packages/tastypie/resources.py", line 862, in full_dehydrate
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] bundle = self.dehydrate(bundle)
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] File "/usr/local/www/freenasUI/../freenasUI/api/resources.py", line 1000, in dehydrate
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] 'days': days,
Jan 22 19:51:54 jotunheim manage.py: [api.utils:12] ValueError: unsupported format character 'j' (0x6a) at index 11

The periodic snapshots are taken, only the API seems to fail.

I encountered this issue when I upgraded from 9.2.X to 9.3-STABLE. Believing it was the result of a faulty upgrade, I reinstalled from scratch but still got the error. I'm currently on the latest release, FreeNAS-9.3-STABLE-201501212031.

resources.py (98.5 KB) resources.py Marc Schaller, 01/23/2015 05:18 AM
Screenshot.PNG (20.5 KB) Screenshot.PNG Marc Schaller, 01/23/2015 05:22 AM
2038

Associated revisions

Revision 597a3f89 (diff)
Added by William Grzybowski over 5 years ago

python-format is not correctly set, check for % in string Ticket: #7626

Revision bf12c283 (diff)
Added by William Grzybowski over 5 years ago

python-format is not correctly set, check for % in string Ticket: #7626 (cherry picked from commit 597a3f89d1aed394cbb64eb12d0bfb2f02e18870)

History

#1 Updated by Josh Paetzel over 5 years ago

  • Category set to Middleware
  • Status changed from Unscreened to Screened
  • Assignee set to William Grzybowski
  • Target version set to Unspecified

#2 Updated by William Grzybowski over 5 years ago

Can you post a screenshot with all the details of your periodic snapshot?

#3 Updated by William Grzybowski over 5 years ago

Also, can you attach the file /usr/local/www/freenasUI/api/resources.py from your install?

#4 Updated by Marc Schaller over 5 years ago

2038

Here is the resources.py from my install.

Regarding the periodic snapshot, it occurs with anything I set up. Here is a screenshot, but I doubt it helps...

(yep it's French!)

Thank you for your support.

#5 Updated by Marc Schaller over 5 years ago

Small precision: I have several periodic snapshots set up (but cannot view / edit them), the error occurred as soon as the first one was saved.
Some were recursive, some weren't.

#6 Updated by William Grzybowski over 5 years ago

What is the error you get when you try to edit them?

#7 Updated by William Grzybowski over 5 years ago

Oh nevermind, you cant view them to edit, thats why.

#8 Updated by Marc Schaller over 5 years ago

Exactly ;)

#9 Updated by William Grzybowski over 5 years ago

Oh, I know why.

Your translation is screwed. I mean the UI translation for your language. Change it back to English and try again.

#10 Updated by Marc Schaller over 5 years ago

Holy cow you're right! It's working flawlessly in English.

I have no problem with my FreeNAS being in English, so it's all good for me. Do you plan to correct the translation? I sure could help.

Thank you!

#11 Updated by William Grzybowski over 5 years ago

Well, I plan to fix the tool to ignore the translations when they are incorrect like this.

#12 Updated by Marc Schaller over 5 years ago

Roger that. Keep up the good work :)

#13 Updated by William Grzybowski over 5 years ago

What is your language, by the way? French?

#14 Updated by Marc Schaller over 5 years ago

Yep, plain old French.

#15 Updated by William Grzybowski over 5 years ago

  • Status changed from Screened to Ready For Release

#16 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#17 Updated by Marc Schaller over 5 years ago

This is indeed resolved. Thanks guys!

#18 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