Page 1 of 1

Error: email is not valid [Solved]

Posted: Thu Jan 29, 2015 3:27 am
by mcsteevie
Firstly, please let me take this opportunity to first say hello!

Basically, I've come across a problem I've never had before and I'm starting to tear my hair out! I'm using a new VPS and I'm having no luck installing Vesta at all. It doesn't matter whether my box is running CentOS, Debian or Ubuntu. I get this every single time (see last line):

Code: Select all

 _|      _|  _|_|_|_|    _|_|_|  _|_|_|_|_|    _|_|     
 _|      _|  _|        _|            _|      _|    _|   
 _|      _|  _|_|_|      _|_|        _|      _|_|_|_|   
   _|  _|    _|              _|      _|      _|    _|   
     _|      _|_|_|_|  _|_|_|        _|      _|    _|   

                                  Vesta Control Panel


Following software will be installed on your system:
   - Nginx frontend web server
   - Apache application web server
   - Bind DNS server
   - Exim mail server
   - Dovecot IMAP and POP3 server
   - MySQL database server
   - Vsftpd FTP server


Do you want to proceed? [y/n]): y
Please enter valid email address: *****@*****.***
Please enter hostname [*****]: *****.*****.***
Error: email *****@*****.*** is not valid
I've added rules in my iptables config to allow ANYTHING to go through so I can't understand what's going on. I've even gone as far as disabling iptables and I still get nothing. Has anyone come across this before and/or does anyone have a solution? Unfortunately, the installation immediately exits and will not allow any further progress.


Thanks,

Steeve

Re: Not getting very far

Posted: Thu Jan 29, 2015 5:08 am
by joem
This should fix the email problem regardless of the os your running

Code: Select all

echo "nameserver 8.8.8.8" > /etc/resolv.conf
If not try running this

Code: Select all

bash vst-install.sh --force

Re: Not getting very far

Posted: Thu Jan 29, 2015 5:24 am
by emardotcom
If you have not setup DNS for your email's domain it will not work. Because the installer check to see if the email's domain is valid. I would recommend using a Gmail, Outlook, Yahoo email to use during setup.

Re: Not getting very far

Posted: Thu Jan 29, 2015 9:33 am
by mcsteevie
Thank you. I wish it was that simple! I have 8.8.8.8 and 8.8.4.4 as nameservers in my resolv.conf file and I've also tried with opendns (208.67.220.220 & 208.67.222.222) just in case. I've also tried with a gmail and outlook account without success. There appears to be no dns issue as I am able to resolve domain names without any problem.

Unfortuantely, using --force also has no effect.

Any ideas? Thanks

Re: Not getting very far

Posted: Thu Jan 29, 2015 11:48 am
by joem
mcsteevie wrote:Thank you. I wish it was that simple! I have 8.8.8.8 and 8.8.4.4 as nameservers in my resolv.conf file and I've also tried with opendns (208.67.220.220 & 208.67.222.222) just in case. I've also tried with a gmail and outlook account without success. There appears to be no dns issue as I am able to resolve domain names without any problem.

Unfortuantely, using --force also has no effect.

Any ideas? Thanks
If you like I can try and install it. Just shoot me a pm with your login details. Also perform an a fresh install of the os you would like to use.

Re: Not getting very far

Posted: Thu Jan 29, 2015 2:24 pm
by mcsteevie
Thanks. I've PM'd over the details.

This is what I'm doing after a fresh install of the OS:

Code: Select all

printf "nameserver 8.8.4.4\nnameserver 8.8.8.8" > /etc/resolv.conf
apt-get remove bind9 bind9* && apt-get remove --purge bind9
apt-get remove apache2 apache2* && apt-get remove --purge apache2*
rm -fr /etc/apache2
apt-get update
iptables -I INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
apt-get install curl
curl -O http://vestacp.com/pub/vst-install.sh
chmod +x vst-install.sh
./vst-install.sh -f
The response I'm getting halfway through the installation is this:

Code: Select all

Error: email **********@gmail.com is not valid
Error: can't create admin user

Re: Not getting very far

Posted: Thu Jan 29, 2015 5:53 pm
by skurudo
mcsteevie wrote: The response I'm getting halfway through the installation is this:

Code: Select all

Error: email **********@gmail.com is not valid
Error: can't create admin user
And you don't have user "admin"?
Check please -> cat /etc/passwd

Re: Not getting very far

Posted: Fri Jan 30, 2015 3:31 am
by mcsteevie
skurudo wrote:
mcsteevie wrote: The response I'm getting halfway through the installation is this:

Code: Select all

Error: email **********@gmail.com is not valid
Error: can't create admin user
And you don't have user "admin"?
Check please -> cat /etc/passwd
Thanks. No, it's not in there so there doesn't appear to be a conflict.

Something is just preventing it from creating the user. Looking at the shell script, I can see that the installer tries to verify the email tld before it creates a user but I can't see how this could fail as all DNS appears to be working fine. I can ping any domain/perform lookups without problems (in this example, I've checked Gmail, Outlook etc.) I've even tried commenting out the code that checks the domain in the installer but it still doesn't create the user.

Re: Not getting very far

Posted: Fri Jan 30, 2015 3:47 am
by mcsteevie
Well, I've just managed to get it up and running! I had a feeling and went with it...

It installed without a problem on a 32-bit OS. Previously, I've only tried installing on 64-bit builds of Debian, Ubuntu and CentOS. I have no idea why that's making a difference at the moment but for some reason it matters!

It's not a big issue for me as I don't have big memory requirements but if anyone else runs into this, I'd be interested to find out. I'll post again if I find out anything else.