Certbot error - normal vs root user

The main problem is that my Let's Encrypt certificate expired, and auto-renewal didn't work. The manual certbot approach also didn't work. Uninstalled everything (certbot, Let's Encrypt) but unable to install it again. Can you please help with that issue?

My domain is: VehTracking.com

I ran the a & b commands, which are listed below:
a) root@164:/etc/nginx/sites-available# sudo certbot --nginx -d VehTracking.com -d www.vehtracking.com
b) kjfsbsijfbub@164:~$ sudo certbot --nginx -d vehTracking.com -d www.vehtracking.com -v
c) kjfsbsijfbub@164:~$ certbot --version (success)

It produced this output: "permanently dropping privs did not work: File exists" for both a & b commands. c produces results from the normal user account only. From the root user, the c command throws an error.

My web server is (include version): nginx/1.18.0 (Ubuntu)

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

My hosting provider, if applicable, is: GoDaddy

I can log in to a root shell on my machine (yes or no, or I don't know): I can log in as a root user.

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Putty

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 4.1.1 (normal user ok, but root user it throws an error)

Could you try the solution in this post Sudo certbot --nginx gives error "permanently dropping privs did not work" - #4 by _az

2 Likes

Hi MaxH, I tried it, but it's still giving the same error. Any other suggestions?