Backup/Restore of data function confirmed

The Backup/Restore function is confirmed to work…

Seamlessly copy of capture files from one zynth to another . . .

2 Likes

One machine does however have a problem, and I 've not been able to work out quite where this one fails even after many updates and virginal sacrifices. I’m assuming it’s a file name of a file entry that’s none unicode and will load but not display but I’ve not flushed it out yet.

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 1346, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 2626, in wrapper
    return method(self, *args, **kwargs)
  File "/home/pi/zynthian-webconf/lib/system_backup_handler.py", line 57, in get
    self.do_get(None, errors)
  File "/home/pi/zynthian-webconf/lib/system_backup_handler.py", line 105, in do_get
    super().get("backup.html", "Backup / Restore", config, errors)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 2626, in wrapper
    return method(self, *args, **kwargs)
  File "/home/pi/zynthian-webconf/lib/zynthian_config_handler.py", line 106, in get
    self.render("config.html", body=body, config=config, title=title, errors=errors)
  File "/home/pi/zynthian-webconf/lib/zynthian_config_handler.py", line 84, in render
    super().render(tpl, info=info, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 664, in render
    html = self.render_string(template_name, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 771, in render_string
    return t.generate(**namespace)
  File "/usr/local/lib/python3.7/dist-packages/tornado/template.py", line 278, in generate
    return execute()
  File "config_html.generated.py", line 149, in _tt_execute
    _tt_tmp = _tt_modules.Template(body, config=config, title=title, errors=errors)  # config.html:152
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 1429, in render
    rendered = self._active_modules[name].render(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 2736, in render
    **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 2691, in render_string
    return self.handler.render_string(path, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/tornado/web.py", line 771, in render_string
    return t.generate(**namespace)
  File "/usr/local/lib/python3.7/dist-packages/tornado/template.py", line 278, in generate
    return execute()
  File "backup_html.generated.py", line 56, in _tt_execute
    if isinstance(_tt_tmp, _tt_string_types): _tt_tmp = _tt_utf8(_tt_tmp)  # backup.html:45
  File "/usr/local/lib/python3.7/dist-packages/tornado/escape.py", line 205, in utf8
    return value.encode("utf-8")
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 1-2: surrogates not allowed
ERROR:tornado.access:500 GET /sys-backup (192.168.1.22) 310.02ms
^C Shutting down on SIGINT

of course this is the machine with my carefully hewed audio configs on…

surrogates not allowed …?
A judicious changing of dodgy characters in the filenames hasn’t produced a fix …