Try ERPNext Buy Support Partners Foundation Foundation Members

Unable to install SSL (lets-encrypt)

Hi there, I am trying to install let-encrypt for my site using the below command.
sudo -H bench setup lets-encrypt [site-name]

It fails with ‘sudo: bench: command not found’. As it was on Ubuntu 18v, I tried removing the -H on the command above which still failed.

I am running this as frappe user from frappe bench directory. Can anyone help me resolve this please? Thanks.

This may help Setup production problem

Thanks. I used sudo env “PATH=$PATH” before the bench command and it worked as expected.