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: valuesight.ai
I ran this command: sudo certbot certonly
It produced this output: Challenge failed for domain valuesight.ai
http-01 challenge for valuesight.ai
Cleaning up challenges
Some challenges have failed.
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version): nginx 1.2
The operating system my web server runs on is (include version): Amazon Linux 2
My hosting provider, if applicable, is: Namecheap
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): No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 1.11
Other points of note... even though the domain is new I checked a few different DNS sites and the www.valuesight.ai and valuesight.ai both point to the right IP.
443 and 80 are both open inbound to the server, the website is working now on 80/http
not sure if i know what that means. I ran the command above and selected webroot as one of the options and then enter my webroot path if that's what you mean
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2022/01/05 18:45:45 [warn] 18406#18406: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
2022/01/05 18:45:45 [emerg] 18406#18406: open() "/run/nginx.pid" failed (13: Permission denied)
nginx: configuration file /etc/nginx/nginx.conf test failed
First, the leading . in that name might cause future trouble - should remove the leading period. But not causing this problem.
You are sending the Let's Encrypt challenge requests to your localhost:8000 server. I don't see one of those so I guess that is not served by nginx. I think your best way forward is to add a location like this in your nginx server block for valuesight.ai: