Trying to use NPM but getting error

2022-05-25 08:25:46,224:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2022-05-25 08:25:46,224:DEBUG:certbot._internal.main:Arguments: ['--non-interactive', '--quiet', '--config', '/etc/letsencrypt.ini', '--preferred-challenges', 'dns,http', '--disable-hook-validation']
2022-05-25 08:25:46,224:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-05-25 08:25:46,532:DEBUG:certbot._internal.log:Root logging level set at 40
2022-05-25 08:25:46,537:DEBUG:certbot._internal.display.obj:Notifying user: Processing /etc/letsencrypt/renewal/npm-1.conf
2022-05-25 08:25:46,539:ERROR:certbot._internal.renewal:Renewal configuration file /etc/letsencrypt/renewal/npm-1.conf is broken.
2022-05-25 08:25:46,540:ERROR:certbot._internal.renewal:The error was: renewal config file {} is missing a required file reference
Skipping.
2022-05-25 08:25:46,541:DEBUG:certbot._internal.renewal:Traceback was:
Traceback (most recent call last):
  File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 77, in _reconstitute
    renewal_candidate = storage.RenewableCert(full_path, config)
  File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/storage.py", line 485, in __init__
    "file reference".format(self.configfile))
certbot.errors.CertStorageError: renewal config file {} is missing a required file reference

2022-05-25 08:25:46,542:DEBUG:certbot._internal.display.obj:Notifying user: 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2022-05-25 08:25:46,542:DEBUG:certbot._internal.display.obj:Notifying user: No renewals were attempted.
2022-05-25 08:25:46,542:DEBUG:certbot._internal.display.obj:Notifying user: 
Additionally, the following renewal configurations were invalid: 
2022-05-25 08:25:46,543:DEBUG:certbot._internal.display.obj:Notifying user:   /etc/letsencrypt/renewal/npm-1.conf (parsefail)
2022-05-25 08:25:46,543:DEBUG:certbot._internal.display.obj:Notifying user: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2022-05-25 08:25:46,544:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 8, in <module>
    sys.exit(main())
  File "/opt/certbot/lib/python3.7/site-packages/certbot/main.py", line 19, in main
    return internal_main.main(cli_args)
  File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 1715, in main
    return config.func(config, plugins)
  File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 1601, in renew
    renewal.handle_renewal_request(config)
  File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/renewal.py", line 511, in handle_renewal_request
    f"{len(renew_failures)} renew failure(s), {len(parse_failures)} parse failure(s)")
certbot.errors.Error: 0 renew failure(s), 1 parse failure(s)
2022-05-25 08:25:46,545:ERROR:certbot._internal.log:0 renew failure(s), 1 parse failure(s)

the broken config its mentioning is actually empty not sure if something should be in it fresh install

In a fresh install, /etc/letsencrypt/renewal/npm-1.conf does not exist at all.

What project/software package is controlling Certbot here? Or what instructions are you following?

2 Likes

To me, "npm" is known as the horrific application called "Nginx Proxy Manager". My experience from the threads regarding NPM here on the Community is that it's terrible to debug. I try to steer clear as much as I can to be honest.

1 Like

Yeah after doing some reading, i saw that. Trying to switch over to Traefik just havent had time to get around to it.

1 Like

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