Page 1 of 2

Error code 2 LetsEncrypt

Posted: Sat Jan 21, 2017 3:34 pm
by herojohan
Hi there,

I would like to install a LetsEncrypt SSL to some of my websites.
Only it generates a Error Code 2 when trying to save.

Anyone know a solution?

Re: Error code 2 LetsEncrypt

Posted: Tue Mar 07, 2017 10:33 am
by skurudo

Code: Select all

2	E_INVALID	Object or argument is not valid
https://vestacp.com/docs/api/#return_codes

Re: Error code 2 LetsEncrypt

Posted: Fri Mar 31, 2017 8:21 am
by Daimko
Hi, how to solve this problem ? I meet him too.

Re: Error code 2 LetsEncrypt

Posted: Fri Mar 31, 2017 9:32 am
by skurudo
Please add a little more info.

> Operating System (OS/VERSION):
Type here, e.g. CentOS 6

> VestaCP Version:
Type here, e.g. 0.9.8-17

> Installed Software (what you got with the installer):
Type here, e.g. php-fpm, apache, nginx, mysql

> Steps to Reproduce:
Type here, e.g. install vesta and type cat /etc/issue

> Other Notes:
Anything else? May be logs?

Re: Error code 2 LetsEncrypt

Posted: Thu Apr 27, 2017 11:40 am
by deadbeef
Same problem, but it occurs only for one subdomain - for two others SSL enabled without any problem. If you need logs tell me which ones exactly.

Re: Error code 2 LetsEncrypt

Posted: Thu Apr 27, 2017 3:31 pm
by deadbeef
Forget about it. Just me being dumb =)

Re: Error code 2 LetsEncrypt

Posted: Thu Jun 08, 2017 9:05 pm
by elysiumservers
This type of responses is what I hate about the internet the most.

Listen deadbeef, if you were able to solve it, wouldn't it be MUCH BETTER to SHARE the result of you "being dumb" ?

Because, this is the first thread that comes up when you type "vesta error code 2" on google.

It would be so much better if you would be kind with everyone else and share your findings instead of keeping it to yourself. Now i'm forced to keep searching for an answer because you were fine by fixing it all yourself without sharing it.

Good work !

Re: Error code 2 LetsEncrypt

Posted: Fri Jun 09, 2017 8:02 am
by deadbeef
OK, I mistyped the domain name, so it was unavailable. Really hope that helps =)
But I think you must agree that this kind of "solution" is not something that worths sharing.

Re: Error code 2 LetsEncrypt

Posted: Thu Jun 22, 2017 10:31 pm
by blockmarc
Hi,
Unfortunately having the same error code, but no typo here.
Just installed VestaCP 0.9.8-17 on a new VSP with Debian 8.8.
What else should I check?
Thank you in advance!
Best


Edit:
Hi,
Just found out, that change from Apache to Nginx solves the problem !!!
Best

Re: Error code 2 LetsEncrypt

Posted: Sat Jul 15, 2017 10:49 am
by lostncg
Not only mistake on typo error will cause this error, Vesta will set [email protected] as alias of website by default, please check on your domain DNS management, is this alias was created? If didn't, delete alias from the edit website page or add www as alias in DNS Management of your domain, then check SSL Support checkbox and click to save. Cert may success to create if the error same like the situation I was described.