Cannot create full backup

Hi there!

My YunoHost server

Hardware: Old laptop or computer
YunoHost version: 3.6.5.3
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

$ sudo yunohost --version
yunohost: 
  repo: stable
  version: 3.6.5.3
yunohost-admin: 
  repo: stable
  version: 3.6.5.1
moulinette: 
  repo: stable
  version: 3.6.4.1
ssowat: 
  repo: stable
  version: 3.6.4

Description of my issue

When I run this command in order to make a full backup of my Yunohost:

$ LANG=en sudo yunohost backup create

I get this error message:

Warning: /etc/yunohost/hooks.d/backup/17-data_home: line 7: /usr/share/yunohost/helpers.d/filesystem: No such file or directory
Error: Script execution failed: /etc/yunohost/hooks.d/backup/17-data_home
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 214, in <module>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 136, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 425, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 523, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/backup.py", line 2086, in backup_create
    backup_manager.collect_files()
  File "/usr/lib/moulinette/yunohost/backup.py", line 511, in collect_files
    self._collect_system_files()
  File "/usr/lib/moulinette/yunohost/backup.py", line 609, in _collect_system_files
    for hook, infos in ret.items()
  File "/usr/lib/moulinette/yunohost/backup.py", line 610, in <dictcomp>
    if any(result["state"] == "failed" for result in infos.values())}
AttributeError: 'builtin_function_or_method' object has no attribute 'items'

Help would be much appreciated. I’d be glad to provide more information.

Thanks!
Florent

I think you can delete this file:
/etc/yunohost/hooks.d/backup/17-data_home

This change has been integrated in official source code

Try to run your command after, but i think it’s not the origin of your issue.

This has also started happening to me and only with Full Backup attempts. Automated pre-update backups of apps still seem to work and I can manually fire off a per app backup but not the entire system which was previously working flawlessly.

If you are interested in my logs @ljf I am happy to send whatever you would like

Could you try to backup each parts separately and if it failed send us a log:

LANG=en sudo yunohost backup create --system data_home
LANG=en sudo yunohost backup create --system data_mail
LANG=en sudo yunohost backup create --system conf_ldap
LANG=en sudo yunohost backup create --system conf_ssh
LANG=en sudo yunohost backup create --system conf_ynh_mysql
LANG=en sudo yunohost backup create --system conf_ssowat
LANG=en sudo yunohost backup create --system conf_ynh_firewall
LANG=en sudo yunohost backup create --system conf_ynh_certs
LANG=en sudo yunohost backup create --system conf_xmpp
LANG=en sudo yunohost backup create --system conf_nginx
LANG=en sudo yunohost backup create --system conf_cron
LANG=en sudo yunohost backup create --system conf_ynh_currenthost
LANG=en sudo yunohost backup create --apps XXX
LANG=en sudo yunohost backup create --apps YYY

Just tried yesterday. It works fine. Thanks a lot :slight_smile: !

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.