We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Update letsencrypt script breaks the server configuration.
-
- Posts: 3
- Joined: Mon Jun 19, 2017 9:08 am
Update letsencrypt script breaks the server configuration.
After installing letsencrypt certificates on my domains in the Vestapanel, I noticed that that the server periodically breaks down.
I checked the configs:
and
and they are broken after each start of the script
by the cron.
The breakdown of the sapache2.conf is to remove the string
in the configuration of one of the my domains.
The failure of nginx.conf occurs because of the duplication string of one of my domains like:
How to fix the letsencrypt auto-update script of the vestapanel?
I checked the configs:
Code: Select all
/home/admin/conf/web/sapache2.conf
Code: Select all
/home/admin/conf/web/snginx.conf
Code: Select all
/usr/local/vesta/bin/v-update-letsencrypt-desl
The breakdown of the sapache2.conf is to remove the string
Code: Select all
<VirtualHost 185.25.117. ***: 8443>
The failure of nginx.conf occurs because of the duplication string of one of my domains like:
Code: Select all
server {
server {
Re: Update letsencrypt script breaks the server configuration.
Try to rebuild your user (v-rebuild-user) normaly, this can happen when the user configs are not up to date.
-
- Posts: 3
- Joined: Mon Jun 19, 2017 9:08 am
Re: Update letsencrypt script breaks the server configuration.
ScIT wrote:Try to rebuild your user (v-rebuild-user) normaly, this can happen when the user configs are not up to date.
Entered into the console.
Code: Select all
v-rebuild-user admin
I had to restore configurations from backups.
I have some subdomains configured, for example api.mydomain.com on source dir /home/admin/web/mydomain.com/api/ .
And I introduced these changes directly into the configs generated by vestapanel.
Therefore, I think that if Vesta does not know how to do a soft overwrite of my configurations, it's a bad idea to execute the command that you advised.
Re: Update letsencrypt script breaks the server configuration.
so it seems that you have a bigger problem with your configuration files. you should be able to run this command without any interrupt on your sites. So maybe check exactly what is incorrect in the configs, also you should not run any website under the admin user, it's better to create a new/own one.discripter wrote: After that my configs and sites are broken!
I had to restore configurations from backups.
Also a direct change to the config files is in my point of view not good. If you want to add subdomains, just do this within the feature of vestacp (web -> domain aliases). If you need other functions, create a own template inside of the vestacp web template dir.
-
- Posts: 3
- Joined: Mon Jun 19, 2017 9:08 am
Re: Update letsencrypt script breaks the server configuration.
ScIT wrote: If you need other functions, create a own template inside of the vestacp web template dir.
How can I do this?
Re: Update letsencrypt script breaks the server configuration.
Go to /usr/local/vesta/data/templates/web/apache2 OR nginx, copy a template and modify it.