Migration 2 migrate_to_tsig_sha256 has failed - Update to 2.7.9

Hi @ll,

when running updates via cli system responds it is going to update yunohost from 2.7.7 to 2.7.9

Preparing to unpack …/yunohost_2.7.9_all.deb …
Unpacking yunohost (2.7.9) over (2.7.7) …
Processing triggers for systemd (215-17+deb8u7) …
Setting up yunohost (2.7.9)

even though yunohost -v and the admin UI state this version to already being running:

yunohost:
repo: stable
version: 2.7.9
yunohost-admin:
repo: stable
version: 2.7.7
moulinette:
repo: stable
version: 2.7.7
ssowat:
repo: stable
version: 2.7.7

The update aborts with error message:

Error: Migration 2 migrate_to_tsig_sha256 has failed with exception Migrating the dyndns domain domain.tld to hmac-sha512 failed, rolling back. Error: 500 - Internal Server Error, aborting

Is there a way to amend the above error?

thanks in advance

fnoerd


Hellow,

this might be a temporary error on our infra… If you want, you can try to re-run the migration with yunohost tools migrations migrate from the command line

Hi Aleks,

sadly that command aborts with the same error message as the update:

yunohost tools migrations migrate

Warning: Running migration 2 migrate_to_tsig_sha256...
Warning: Not secure enough key algorithm detected for TSIG signature of domain 'domain.tld', initiating migration to the more secure one hmac-sha512
dnssec-keygen: warning: dns_dnssec_findmatchingkeys: error reading key file K'domain.tld'.+157+26111.private: bad key type
K'domain.tld'.+165+48887
Error:   File "/usr/bin/yunohost", line 219, 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 390, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 495, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/tools.py", line 831, in tools_migrations_migrate
    migration["module"].MyMigration().migrate()
  File "/usr/lib/moulinette/yunohost/data_migrations/0002_migrate_to_tsig_sha256.py", line 67, in migrate
    traceback.print_stack(file=stack)

Error: Migration 2 migrate_to_tsig_sha256 has failed with exception Migrating the dyndns domain 'domain.tld' to hmac-sha512 failed, rolling back. Error: 500 - <h1>Internal Server Error</h1>, aborting

So for the time being i’ll restart patience.service :wink:

fnoerd