Snapshot list fails with error "Invalid block tag: 'endif'"

Status
Not open for further replies.

angnysa

Cadet
Joined
Aug 26, 2014
Messages
2
Hi,

I'm a beginner to Freenas, and the snapshot list fails on me since I've started making snapshots :


Request Method: GET
Request URL: https://192.168.0.98/storage/snapshots/?dojo.preventCache=1409093936681
Software Version: FreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0)
Exception Type: TemplateSyntaxError
Exception Value: Invalid block tag: 'endif'
Exception Location: /usr/local/lib/python2.7/site-packages/django/template/base.py in invalid_block_tag, line 332
Server time: Tue, 26 Aug 2014 18:58:56 -0400


Traceback :
Code:
Environment:

Software Version: FreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0)
Request Method: GET
Request URL: https://192.168.0.98/storage/snapshots/?dojo.preventCache=1409093936681


Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  107.                     response = middleware_method(request, callback, callback_args, callback_kwargs)
File "/usr/local/www/freenasUI/../freenasUI/freeadmin/middleware.py" in process_view
  158.         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
  22.                 return view_func(request, *args, **kwargs)
File "/usr/local/www/freenasUI/../freenasUI/storage/views.py" in snapshots
  135.     return render(request, 'storage/snapshots.html')
File "/usr/local/lib/python2.7/site-packages/django/shortcuts/__init__.py" in render
  53.     return HttpResponse(loader.render_to_string(*args, **kwargs),
File "/usr/local/lib/python2.7/site-packages/django/template/loader.py" in render_to_string
  162.         t = get_template(template_name)
File "/usr/local/lib/python2.7/site-packages/django/template/loader.py" in get_template
  138.     template, origin = find_template(template_name)
File "/usr/local/lib/python2.7/site-packages/django/template/loader.py" in find_template
  127.             source, display_name = loader(name, dirs)
File "/usr/local/lib/python2.7/site-packages/django/template/loader.py" in __call__
  43.         return self.load_template(template_name, template_dirs)
File "/usr/local/lib/python2.7/site-packages/django/template/loader.py" in load_template
  49.             template = get_template_from_string(source, origin, template_name)
File "/usr/local/lib/python2.7/site-packages/django/template/loader.py" in get_template_from_string
  149.     return Template(source, origin, name)
File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in __init__
  125.         self.nodelist = compile_string(template_string, origin)
File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in compile_string
  153.     return parser.parse()
File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in parse
  276.                     self.invalid_block_tag(token, command, parse_until)
File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in invalid_block_tag
  332.         raise self.error(token, "Invalid block tag: '%s'" % command)

Exception Type: TemplateSyntaxError at /storage/snapshots/
Exception Value: Invalid block tag: 'endif'


Request information
Code:
GET
Variable Value
dojo.preventCache u'1409093936681'
POST
No POST data

FILES
No FILES data

COOKIES
Variable Value
csrftoken 'xxx'
sessionid 'xxx'
fntreeSaveStateCookie 'root'
META
Variable Value
wsgi.multiprocess False
HTTP_REFERER 'https://192.168.0.98/'
REDIRECT_STATUS '200'
SERVER_SOFTWARE 'nginx/1.4.4'
SCRIPT_NAME u''
REQUEST_METHOD 'GET'
PATH_INFO u'/storage/snapshots/'
SERVER_PROTOCOL 'HTTP/1.1'
QUERY_STRING 'dojo.preventCache=1409093936681'
CONTENT_LENGTH ''
HTTP_USER_AGENT 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0'
HTTP_CONNECTION 'keep-alive'
HTTP_COOKIE 'csrftoken=xxx; sessionid=xxx; fntreeSaveStateCookie=root'
SERVER_NAME 'localhost'
REMOTE_PORT '52372'
wsgi.url_scheme 'https'
SERVER_PORT '443'
SERVER_ADDR '192.168.0.98'
DOCUMENT_ROOT '/usr/local/etc/nginx/html'
HTTP_X_REQUESTED_WITH 'XMLHttpRequest'
DOCUMENT_URI '/storage/snapshots/'
wsgi.input <flup.server.fcgi_base.InputStream object at 0x81d896650>
HTTP_DNT '1'
HTTP_HOST '192.168.0.98'
HTTPS 'on'
wsgi.multithread True
HTTP_CONTENT_TYPE 'application/x-www-form-urlencoded'
REQUEST_URI '/storage/snapshots/?dojo.preventCache=1409093936681'
HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
wsgi.version (1, 0)
GATEWAY_INTERFACE 'CGI/1.1'
wsgi.run_once False
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x8118584d0>
REMOTE_ADDR '192.168.0.5'
HTTP_ACCEPT_LANGUAGE 'en-US,en;q=0.5'
CONTENT_TYPE 'application/x-www-form-urlencoded'
CSRF_COOKIE u'xxx'
HTTP_ACCEPT_ENCODING 'gzip, deflate'


Where could this be coming from ?
 
D

dlavigne

Guest
You shouldn't be getting a traceback. Please create a bug report at bugs.freenas.org that includes the full traceback and post the issue number here.
 
Status
Not open for further replies.
Top