Getting ValueError: invalid literal for int() with base 10: '[|3|4]'

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: devilsan.com

I ran this command:

It produced this output:

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-4" --agree-tos --email "myemail@gmail.com" --domains "*.devilsan.com" --authenticator dns-linode --dns-linode-credentials "/etc/letsencrypt/credentials/credentials-4" --dns-linode-propagation-seconds 9999
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Encountered exception during recovery: ValueError: invalid literal for int() with base 10: '[|3|4]'
An unexpected error occurred:
ValueError: invalid literal for int() with base 10: '[|3|4]'
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.

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

My web server is (include version):

The operating system my web server runs on is (include version): Ubuntu 22.04.1 LTS

My hosting provider, if applicable, is: Linode

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
I am starting to use Nginx Proxy Manager.
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

Hello @vitachaos,

Kindly wait for more knowledgeable Let's Encrypt community volunteers to assist.

Potentially useful information for them are

  1. certbot --version
  2. did you run the command with sudo
  3. attach /var/log/letsencrypt/letsencrypt.log to your response

Supplemental support information.
Using this online tool https://crt.sh/ here is a list of issued certificates crt.sh | devilsan.com, the latest being 2022-12-03.

$ nmap -Pn devilsan.com
Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times will be slower.
Starting Nmap 7.91 ( https://nmap.org ) at 2022-12-03 13:22 PST
Nmap scan report for devilsan.com (178.79.144.52)
Host is up (0.15s latency).
rDNS record for 178.79.144.52: 178-79-144-52.ip.linodeusercontent.com
Not shown: 992 closed ports
PORT     STATE    SERVICE
25/tcp   filtered smtp
80/tcp   open     http
81/tcp   open     hosts2-ns
135/tcp  filtered msrpc
139/tcp  filtered netbios-ssn
443/tcp  open     https
445/tcp  filtered microsoft-ds
9101/tcp open     jetdirect

Nmap done: 1 IP address (1 host up) scanned in 10.03 seconds
$ curl http://devilsan.com/.well-known/acme-challenge/some_test_file
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty</center>
</body>
</html>

$ curl -I http://devilsan.com/.well-known/acme-challenge/some_test_file
HTTP/1.1 301 Moved Permanently
Server: openresty
Date: Sat, 03 Dec 2022 21:34:49 GMT
Content-Type: text/html
Content-Length: 166
Connection: keep-alive
Location: https://devilsan.com/.well-known/acme-challenge/some_test_file
Strict-Transport-Security: max-age=63072000; preload

$ curl -I https://devilsan.com/.well-known/acme-challenge/some_test_file
HTTP/2 404
server: openresty
date: Sat, 03 Dec 2022 21:35:05 GMT
content-type: text/html
content-length: 150
strict-transport-security: max-age=63072000; preload

$ curl https://devilsan.com/.well-known/acme-challenge/some_test_file
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>openresty</center>
</body>
</html>

Especially this :slight_smile:

3 Likes

The issue is that you have probably copied the example from Welcome to certbot-dns-linode’s documentation! — certbot-dns-linode 0 documentation verbatim:

dns_linode_version = [<blank>|3|4]

This is understandably total jargon to a non-programmer. You probably want:

dns_linode_version = 4
7 Likes

I guess one should never just copy/paste examples if you don't understand their meaning :roll_eyes:

3 Likes

No, I basically did not run any command by hand, I mentioned above in op, I am using Nginx Proxy Manager that has built in way to run certbot command.

I replaced the highlighted text with the api token from linode.

Within that "Credentials File Content" textarea, what does it say underneath the dns-linode-key = ... part?

3 Likes

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