DNS problems on one server after migration

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.6
How are you able to access your server: The webadmin
SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: none

Describe your issue

After running the migration to debian 12 I have some DNS problem, and after running the command to update the dyndns I have the issues bellow

Share relevant logs or error messages

sudo yunohost dyndns update --force
[sudo] password di mydomain: 
Info: Updated needed, going on...
Info: L'operazione 'Aggiorna l'IP associato con il tuo sottodominio YunoHost "mydomain'' non puĂČ essere completata. Per ottenere aiuto, per favore condividi il registro completo dell'operazione utilizzando il comando 'yunohost log share 20241106-183724-dyndns_update-mydomain'
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
          ^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 115, in cli
    ).run(args, output_as=output_as, timeout=timeout)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 498, in run
    ret = self.actionsmap.process(args, timeout=timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 561, in process
    return func(**arguments)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 480, in func_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/dyndns.py", line 381, in dyndns_update
    dyndns_update(domain, force=force, dry_run=dry_run)
  File "/usr/lib/python3/dist-packages/yunohost/log.py", line 480, in func_wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/dyndns.py", line 473, in dyndns_update
    for category in dns_conf.keys():
RuntimeError: dictionary changed size during iteration

args:
  domain: maindomain.tld
  dry_run: false
  force: true
ended_at: 2024-11-06 18:37:25.236714
error: dictionary changed size during iteration
interface: cli
operation: dyndns_update
parent: null
related_to:
- - domain
  - maindomain.tld
- - domain
  - maindomain.tld
started_at: 2024-11-06 18:37:24.348264
success: false
yunohost_version: 12.0.6

============

2024-11-06 19:37:24,351: INFO - Updated needed, going on...
2024-11-06 19:37:24,463: DEBUG - Reusing IPv4 from cache: xx.xxx.xx.xx
2024-11-06 19:37:24,463: DEBUG - Reusing IPv6 from cache: None
2024-11-06 19:37:24,918: DEBUG - Formating result in 'export' mode
2024-11-06 19:37:24,931: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./50-metronome"  7>&1']'
2024-11-06 19:37:24,934: DEBUG - ++ basename ./50-metronome
2024-11-06 19:37:24,934: DEBUG - ++ cut -d- -f2
2024-11-06 19:37:24,935: DEBUG - ++ yunohost app setting metronome domain
2024-11-06 19:37:25,134: DEBUG - + domain=maindomain.tld
2024-11-06 19:37:25,134: DEBUG - + [[ maindomain.tld != \x\x\x\x\.\y\n\h\.\f\r ]]
2024-11-06 19:37:25,134: DEBUG - + cat

anyone? @tituspijean @Aleks

I thing I have die exact same problem: https://paste.yunohost.org/raw/uxixawufuc

I have just tried several times to install Yunohost on a newly installed Debian12-vps. The initial diagnosis said that the DNS entries of my Yunohost donain are not correct. My attempt to fix this with “yunohost dyndns update --force” ended in the following message:

Blockquote
root@81049-58710:~# yunohost dyndns update --force
Info: Updated needed, going on

Error: The peer didn’t know the key we used
Info: The operation ‘Update the IP associated with your YunoHost subdomain ‘rehkids.ynh.fr’’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20241113-071524-dyndns_update-rehkids.ynh.fr’ to get help
Error: Could not update IP address to DynDNS

1 Like

Y a t’il quelque chose qu’on puisse faire pour rĂ©soudre ce problĂšme? J’ai le mĂȘme problĂšme pour mon serveur, aucun moyen de renouveler l’adresse externe mĂȘme erreur:

RuntimeError: dictionary changed size during iteration

Ca ne change pas que ce soit de la cli ou de la page admin.

Is there a way to fix this issue? I have the same problem on my server, nothing works to update the external IP address.

I always get this error:

RuntimeError: dictionary changed size during iteration

It doesn’t matter if it’s from cli or from the Web Admin interface

1 Like