Hello i ran Certbot on my windows server with port 80 open.
I get the error: An unexpected error occurred:
pywintypes.error: (3, 'CreateDirectory', 'Impossibile trovare il percorso specificato.') when i run the command: certbot certonly --webroot
This is the log:
2021-11-02 15:26:40,631:DEBUG:certbot._internal.main:certbot version: 1.20.0
2021-11-02 15:26:40,632:DEBUG:certbot._internal.main:Location of certbot entry point: C:\Certbot1\bin\certbot.exe
2021-11-02 15:26:40,632:DEBUG:certbot._internal.main:Arguments: ['--webroot', '-v', '--preconfigured-renewal']
2021-11-02 15:26:40,632:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2021-11-02 15:26:40,689:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "runpy.py", line 197, in _run_module_as_main
File "runpy.py", line 87, in run_code
File "C:\Certbot1\bin\certbot.exe_main.py", line 29, in
sys.exit(main())
File "C:\Certbot1\pkgs\certbot\main.py", line 15, in main
return internal_main.main(cli_args)
File "C:\Certbot1\pkgs\certbot_internal\main.py", line 1558, in main
log.post_arg_parse_setup(config)
File "C:\Certbot1\pkgs\certbot_internal\log.py", line 100, in post_arg_parse_setup
file_handler, file_path = setup_log_file_handler(
File "C:\Certbot1\pkgs\certbot_internal\log.py", line 153, in setup_log_file_handler
util.set_up_core_dir(config.logs_dir, 0o700, config.strict_permissions)
File "C:\Certbot1\pkgs\certbot\util.py", line 177, in set_up_core_dir
make_or_verify_dir(directory, mode, strict)
File "C:\Certbot1\pkgs\certbot\util.py", line 200, in make_or_verify_dir
filesystem.makedirs(directory, mode)
File "C:\Certbot1\pkgs\certbot\compat\filesystem.py", line 285, in makedirs
return os.makedirs(file_path, mode)
File "os.py", line 225, in makedirs
File "C:\Certbot1\pkgs\certbot\compat\filesystem.py", line 318, in mkdir
raise err
File "C:\Certbot1\pkgs\certbot\compat\filesystem.py", line 312, in mkdir
win32file.CreateDirectory(file_path, attributes)
pywintypes.error: (3, 'CreateDirectory', 'Impossibile trovare il percorso specificato.')
2021-11-02 15:26:40,690:ERROR:certbot._internal.log:An unexpected error occurred:
2021-11-02 15:26:40,690:ERROR:certbot._internal.log:pywintypes.error: (3, 'CreateDirectory', 'Impossibile trovare il percorso specificato.')