Closed chludwig closed 1 year ago
Finally I solved the problem. It is a bug in certbot. See my post in https://community.letsencrypt.org/t/certbot-dns-plugin-listed-in-certbot-plugins-but-still-not-working/139614
But is there a way in installing this plugin with snap? I've seen that there is already a snapcraft.yaml
file in your project.
you can try the snap published here https://snapcraft.io/certbot-dns-hetzner
Hi @BigMichi1
thank you for the link. Has it been added today or was I blind?
Well, I uninstalled the plugin with pid (python3 -m pip uninstall certbot-dns-hetzner
) and installed it with snap (snap install certbot-dns-hetzner
), what did not work yesterday.
But unfortunately the plugin is neither displayed in the list of plugins certbot plugins
, nor can I use it (I'll get an error).
I ran the other commands to connect certbot with the plugin as described on https://snapcraft.io/certbot-dns-hetzner, but this didn't change anything. Unfortunately it does not work.
So I uninstalled the snap version an reinstalled it with pip. Now I can use the plugin as before. Maybe my system isn't that clean anymore due to too many installs and uninstalls of the same plugin.
i had also issues when there was still a certbot installed in the system so cleaned everything, first removed all snaps related to certbot, then I had to remove everything related to certbot that was found until the command itself results in command not found, then I did a re-login and run the following commands
root@i7-4770 ~ # apt install snapd
root@i7-4770 ~ # snap install --classic certbot
root@i7-4770 ~ # snap set certbot trust-plugin-with-root=ok
root@i7-4770 ~ # snap install certbot-dns-hetzner
root@i7-4770 ~ # snap connect certbot:plugin certbot-dns-hetzner
root@i7-4770 ~ # snap connect certbot-dns-hetzner:certbot-metadata certbot:certbot-metadata
root@i7-4770 ~ # certbot plugins
you can also run snap connections
to get an output similar to
Interface Plug Slot Notes
content[metadata-1] certbot-dns-hetzner:certbot-metadata certbot:certbot-metadata manual
content[certbot-1] certbot:plugin certbot-dns-hetzner:certbot manual
what i tried also during the entire story was installing an additional certbot plugin like certbot-dns-dnsimple
and then i tried the commands to see if I'm using the correct certbot installation
if the following command still shows that the plugin is not found then a different certbot installation is used or the snap installation is broken
certbot certonly --authenticator dns-dnsimple
see also https://github.com/certbot/certbot/issues/8504 why just installing doesn't work as someone would expect
I don't plan to support a snap distribution myself - the yaml for snap in master was merged by a contribution of @jonathansnell - if someone who cares about it proposes fixes for this i will happily include them
I think i will remove the snap configuration in the future and won't be supporting snap
I won't support the snap store - still anyone is free to package it for the store
How can I install this excellent plugin using snap?
I Installed certbot on a fresh Ubuntu 18 installation with
sudo snap install --classic certbot
. Then I tried to install your plugin withsnap install certbot-dns-hetzner
, but it could not be found.So I tried an installation with pip, what seemed to succeed in first place -
certbot plugins
listed dns-hetzner - but when trying to generate a cert I'll get error messages like 'The requested certbot-dns-hetzner plugin does not appear to be installed'.Here is my own answer to my question on how to do the installation on StackOverflow (I was too fast posting it, I was happy to see the plugin in certbot plugins)
So what am I doing wrong?
Here are my Commands I am running without success. Ore are these all wrong?
One other note. Included plugins, like apache are located in
/snap/certbot/784/lib/python3.8/site-packages/
where as the hetzner plugin is placed in/root/.local/lib/python3.8/site-packages/
.I tried to copy the hetzner directories to the snap folder, but it is mounted as read only.