New install, keep running into issues

I just installed today and almost have things going but I can’t get the let’s encrypt cert. I keep getting the following.

Log: Saving debug log to /var/log/letsencrypt/letsencrypt.log You should register before running non-interactively, or provide --agree-tos and --email <email_address> flags. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

I open the log and get the following.

Traceback (most recent call last):
  File "/usr/bin/certbot", line 33, in <module>
    sys.exit(load_entry_point('certbot==1.21.0', 'console_scripts', 'certbot')())
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 15, in main
    return internal_main.main(cli_args)
  File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1574, in main
    return config.func(config, plugins)
  File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1416, in certonly
    le_client = _init_le_client(config, auth, installer)
  File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 763, in _init_le_client
    acc, acme = _determine_account(config)
  File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 678, in _determine_account
    config.email = display_ops.get_email()
  File "/usr/lib/python3/dist-packages/certbot/display/ops.py", line 51, in get_email
    raise errors.MissingCommandlineFlag(msg)
certbot.errors.MissingCommandlineFlag: You should register before running non-interactively, or provide --agree-tos and --email <email_address> flags.
2023-03-20 14:15:14,974:ERROR:certbot._internal.log:You should register before running non-interactively, or provide --agree-tos and --email <email_address> flags.
2023-03-20 14:15:32,343:DEBUG:certbot._internal.main:certbot version: 1.21.0
2023-03-20 14:15:32,343:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2023-03-20 14:15:32,343:DEBUG:certbot._internal.main:Arguments: ['-v']
2023-03-20 14:15:32,343:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2023-03-20 14:15:32,350:DEBUG:certbot._internal.log:Root logging level set at 20
2023-03-20 14:15:32,351:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2023-03-20 14:15:32,352:DEBUG:certbot._internal.plugins.selection:No candidate plugin
2023-03-20 14:15:32,352:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
``'

Certbot should normally be registered during installation. Because you installed today, you can simply re-run the installation script.
If that doesn’t work, first check that your mailinabox data directory is at the default folder /home/user-data/. If that is so, you can use the following command to register certbot.
certbot register --register-unsafely-without-email --agree-tos --config-dir /home/user-data/ssl/lets_encrypt

1 Like

That did the trick, then I could get the cert.

Now I think I have one last hurdle and things will work, I still can’t get to the site using my domain name, the only thing I see that would be an issue is…

It may just be a matter of waiting for the ipv6 glue records to catch up…

So I got this fixed using the solution from here

Right when I thought all would be well, It seems DNS still doesn’t resolve… I still have to use the ip address to get around. And my blog who’s dns info I put in the dashboard isn’t working either… maybe it takes more time?

I was able to send a test email and reply back to it which I did get back.

Ok, I think everything is good now. It’s something to do with DNS on Windows… if I use safari on my phone all pages load just fine.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.