Execute "sudo certbot --apache" and Get An unexpected error occurred: EOFError

I have installed certbot classic on my CentOS Linux 7.7.1908 by following steps in Certbot Instructions | Certbot

When I ran command: sudo certbot --apache

It produced this output: Get An unexpected error occurred: EOFError

Here is the Log message:
2022-04-01 17:30:10,471:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/1888/bin/certbot", line 8, in
sys.exit(main())

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/_internal/main.py", line 1715, in main
return config.func(config, plugins)

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/_internal/main.py", line 1419, in run
domains, certname = _find_domains_or_certname(config, installer)

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/_internal/main.py", line 503, in _find_domains_or_certname
domains = display_ops.choose_names(installer, question)

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/display/ops.py", line 133, in choose_names
code, names = _filter_names(names, question)

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/display/ops.py", line 185, in _filter_names
code, names = display_util.checklist(

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/display/util.py", line 169, in checklist
return obj.get_display().checklist(message, tags, default=default, cli_flag=cli_flag,

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/_internal/display/obj.py", line 233, in checklist
code, ans = self.input("Select the appropriate numbers separated "

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/_internal/display/obj.py", line 158, in input
ans = util.input_with_timeout(message)

File "/var/lib/snapd/snap/certbot/1888/lib/python3.8/site-packages/certbot/_internal/display/util.py", line 67, in input_with_timeout
raise EOFError

EOFError
2022-04-01 17:30:10,472:ERROR:certbot._internal.log:An unexpected error occurred:
2022-04-01 17:30:10,472:ERROR:certbot._internal.log:EOFError

Did you run this in a real SSH terminal, or some kind of web-based console?

2 Likes

Sorry that I am green in it.
Is AWS a SSH terminal?

If you are using console.aws.amazon.com to access your AWS stuff and it lets you type commands while in the browser, that would be a web-based console. It's still an SSH client but it's not quite the same as running an ssh client on your own machine.

2 Likes

The de facto SSH client is "PuTTY".
[but there are plenty of others]

1 Like

Windows actually includes OpenSSH now.

2 Likes

Sorry that I haven't reply for a few day.
Today I found that the cert of my domain is updated from 2/4/2022

I didn't check it after I try to ran command: sudo certbot --apache
Maybe EOFError isn't affect the cert update.

I will monitor and see it can renew or not.
Thank you everyone which reply my post and try to help.

Leo

1 Like

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