Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Error code: 2 Lets Encrypt Support

General questions about VestaCP
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
plaidshirtakos
Posts: 3
Joined: Fri Dec 29, 2017 1:29 pm

Error code: 2 Lets Encrypt Support
  • Quote

Post by plaidshirtakos » Fri Dec 29, 2017 1:33 pm

I tried to use Lets Encrypt Support under SSL Support section when I added a new domain name on web panel. I got this error message:
Error code: 2
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by ScIT » Fri Dec 29, 2017 3:59 pm

viewtopic.php?t=14685
https://www.google.ch/search?q=vestacp+ ... etsEncrypt
Top

plaidshirtakos
Posts: 3
Joined: Fri Dec 29, 2017 1:29 pm

Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by plaidshirtakos » Fri Dec 29, 2017 9:09 pm

There isn't any exact solution in these topics. Should I change from Apache to Nginx? But why?
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by ScIT » Fri Dec 29, 2017 9:19 pm

I think you didnt understand how vestacp works. Vesta runs default with apache2 and nginx as caching server. So what is your setup? If you use the default installation, be sure you have enabled apache2 and nginx (we use for both the default templates on our side). So as soon as all domains are setup properly, lets encrypt will work out of the box.
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by jimmyeao » Fri Dec 29, 2017 9:22 pm

plaidshirtakos wrote:There isn't any exact solution in these topics. Should I change from Apache to Nginx? But why?
Ditto here - unable to find a satisfactory resolution to this. It appears Vesta can't parse my sapache2.conf - I would restore from a backup, but there isn't a user/conf/sapache2.conf file in the backup, just one listed under each of my domains.
Why the backup structure differs from the server folder structure is beyond me, its less than helpful. Just looking at the apache conf files seems to make Vesta fall over, it really should be more robust in this area.
Top

jimmyeao
Posts: 30
Joined: Fri Nov 27, 2015 2:13 pm

Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by jimmyeao » Fri Dec 29, 2017 10:10 pm

I've finally found a fix that helped me, it comprises of several stages:
If you have an issue with Vesta parsing the apache2.conf or sapache2.conf, create a new user then move one domain to this new use and then back again. this appears to fix the issue with the conf files. The command to move a domain is done from the command line and is

Code: Select all

v-change-domain-owner domain.name user
Once you have done this, go though all your domains that are giving you an issue and remove SSL support. Note, if you try and re-enable it through the webinterface it will fail.
from the command line, for each domain, use the command

Code: Select all

v-add-letsencrypt-domain user domain.name
For some reason this works when the web interface doesnt, and letsencrypt updates now work,

Hope this helps someone!
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by ScIT » Fri Dec 29, 2017 10:12 pm

jimmyeao wrote:I've finally found a fix that helped me, it comprises of several stages:
If you have an issue with Vesta parsing the apache2.conf or sapache2.conf, create a new user then move one domain to this new use and then back again. this appears to fix the issue with the conf files. The command to move a domain is deon from the command line and is

Code: Select all

v-change-domain-owner domain.name user
Once you have done this, go though all your domains that are giving you an issue and remove SSL support. Note, if you try and re-enable it through the webinterface it will fail.
from the command line, for each domain, use the command

Code: Select all

v-add-letsencrypt-domain user domain.name
For some reason this works when the web interface doesnt, and letsencrypt updates now work,

Hope this helps someone!
this sounds like changed template files, maybe a v-rebuild-user username or in vestacp, mark all user then rebuild will help. just an idea.
Top

plaidshirtakos
Posts: 3
Joined: Fri Dec 29, 2017 1:29 pm

Re: Error code: 2 Lets Encrypt Support
  • Quote

Post by plaidshirtakos » Sat Dec 30, 2017 6:02 pm

ScIT wrote:I think you didnt understand how vestacp works. Vesta runs default with apache2 and nginx as caching server. So what is your setup? If you use the default installation, be sure you have enabled apache2 and nginx (we use for both the default templates on our side). So as soon as all domains are setup properly, lets encrypt will work out of the box.
What kind of setup? I just added domains on web panel, process was successful, I can open uploaded website in browser.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password