After upgrade python from webadmin, automatic DNS stopped working

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.24
How are you able to access your server: Direct access via physical keyboard/screen
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I upgraded python from webadmin

Describe your issue

since the upgrade this morning, automatic DNS does not work anymore.
I get this error:
Failed to authenticate on registrar’s API. Most probably the credentials are incorrect? (Error: ‘Client’ object has no attribute ‘provider’)

Share relevant logs or error messages

I see python3-lexicon in the log
Should I revert and how ?
Perhaps :
sudo pip3 install ‘dns-lexicon<4’ --force-reinstall

This was updated:

  • python3-jinja2 from 3.1.2-1+deb12u2 to 3.1.2-1+deb12u3
  • python3-lexicon from 3.11.7-1 to 3.21.1-1
  • python3-pkg-resources from 66.1.1-1+deb12u1 to 66.1.1-1+deb12u2
  • python3-setuptools from 66.1.1-1+deb12u1 to 66.1.1-1+deb12u2
  • python3-zipp from 1.0.0-6 to 1.0.0-6+deb12u1

And I found that is definitely the cause.
How can I roll back safely?

Can you explain what’s the registrar you’re using ?

The registrar is OVH .
Christian

Same problem here, also with OVH, I don’t know if the last update (12.1.25) fixed it already, I saw there was something related to it.

It’s clearly the python upgrade that causes the problem.
I’ll wait for a solution but would think rolling back the update would solve the problem.
If someone could describe the steps to rollback that would be nice.

By the way, I have two servers and both failed automatic update of DNS after the python upgrade.

Christian

FYI,
I just saw an update of yunohost package but after updating the problem is still there on both servers.

1 Like

SOLUTION, for now.

from terminal
check your version

sudo apt-cache policy python3-lexicon

downgrade

sudo apt-get install python3-lexicon=3.11.7-1 --allow-downgrades

restart services

sudo systemctl restart yunohost-api

to prevent future upgrades: optional

sudo apt-mark hold python3-lexicon

I did both of my servers and automatic DNS works again.
This is on the last, very last version of yunohost! 12.1.24 or 12.1.25

I’m not using prevent future upgrades now and will wait until developers give us news.

Christian

1 Like

I couldn’t make mine to work again yet, even after downgrading that python package.
I’m gonna check the full process

Did you restart yunohost ?
Perhaps do a full reboot ?
Check your python package to make sure the downgrade did work.

I would love to see an answer from the developers regarding this issue.
It’s not urgent though,

Christian

thanks, it’s working again!
I didn’t think about a full reboot (don’t know why, basic thought), I just restarted ddclient, which wasn’t enough.

I wish I could know when it’s safe to update :smiling_face_with_tear: