YunoHost / issues

General issue tracker for the YunoHost project
71 stars 8 forks source link

Errors while pushing DNS records to Gandi #2097

Open SimonMellerin opened 1 year ago

SimonMellerin commented 1 year ago

Describe the bug

Each time I want to push/update new DNS records to Gandi, I have some errors message for some records :

The error message is always the same:

Échec de l'enregistrement create TXT/artichaud.net : list indices must be integers or slices, not str

I don't know if it's a gandi specific bug

Context

To reproduce

  1. You need to have a yunohost with default domain pointing to Gandi
  2. Go to /yunohost/admin/#/domains/your-domain.tld
  3. Click on 'configure DNS'
  4. Click on 'push DNS'
  5. See error

Logs

https://paste.yunohost.org/raw/udaxecerikhttps://paste.yunohost.org/raw/udaxecerik

Thanks, Simon

alexAubin commented 1 year ago

As suggested here https://forum.yunohost.org/t/automatic-dns-fails-to-push-some-values/22428/2, unfortunately the current code doesnt provide enough info to understand where the issue comes from exactly :/

I was suggesting to add more debug info with this trick:

sudo sed -i 's/logger.error(msg)/logger.exception(msg)/g' /usr/lib/python3/dist-packages/yunohost/dns.py
SimonMellerin commented 1 year ago

Thanks for your help debugging this,

Well

I can't reproduce the problem :shrug: .

But I can tell that yesterday was not the first time I experienced this issue. My provider changes my IP time to time, so will see if I can experience it again next time...