V-update-host-certificate : line 27: /func/main.sh: No such file or directory

Hello,

I have search on Google if this question has already aborded. I have this message when I try to launch this command line:

sudo /usr/local/hestia/bin/v-update-host-certificate admin hostname.domain.com
/usr/local/hestia/bin/v-update-host-certificate: line 27: /func/main.sh: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 28: /func/ip.sh: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 29: /conf/hestia.conf: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 36: check_args: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 37: is_format_valid: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 38: is_system_enabled: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 39: is_system_enabled: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 40: is_object_valid: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 41: is_object_unsuspended: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 42: is_object_valid: command not found
/usr/local/hestia/bin/v-update-host-certificate: line 43: is_object_unsuspended: command not found
cp: cannot create regular file '/ssl/certificate.crt': No such file or directory
cp: cannot create regular file '/ssl/certificate.key': No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 77: /conf/hestia.conf: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 81: /v-restart-web: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 82: /v-restart-proxy: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 90: /v-restart-service: No such file or directory
/usr/local/hestia/bin/v-update-host-certificate: line 97: log_event: command not found

Any idea to solve my little problem? The sever is up to date, and had rebooted this evening.

Thanks and have a nice day!

Add

if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
    . /etc/profile.d/hestia.sh
fi

in /root/.bashrc

1 Like

Thank you, it work perfectly

In fact, the command apply, but there is no effect in admin panel. The certifcate is dated from 13 novembre, despite my v-update-host-certificate admin hostname.domain.com

I just want to renew the SSL certificate (because I have a warn:
[Wed Dec 09 12:38:03.491596 2020] [ssl:warn] [pid 89623:tid 140487770913856] AH01909: 163.114.110.82:443:0 server certificate does NOT include an ID which matches the server name but I have solved the problem)

How can I do? Thanks.

Check the docs? :slight_smile:

Hi ScIT :slight_smile:

I have to uncheck : “Utilisez Lets Encrypt […] certificat SSL” then apply the command v-add-letsencrypt-host and the certificate has been renewed.

But I have alway the warn: “[Wed Dec 09 14:03:39.684739 2020] [ssl:warn] [pid 126909:tid 139868557188160] AH01909: 163.x.x.x:443:0 server certificate does NOT include an ID which matches the server name”

The ServerName is specified in /home/admin/conf/web/localhost.domain.com/apache2.conf and /home/admin/conf/web/localhost.domain.com/apache2.ssl.conf and I have add it too to 000-default.conf

Hum… I have activated SSL only for the host… And I have this warn anyway.

An Idea?

Have a look here:

I forgot to tell that I had followed this post too. I can not find a solution.

The server is on a Ubuntu 20.04

I continue to search somethings and complete here if I have the solution, sure.