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 Debian/Ubuntu
  • Search

[SOLVED] ubuntu 14.04 amd64 fresh install trouble

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
13 posts
  • 1
  • 2
  • Next
maphioso
Posts: 19
Joined: Mon Sep 14, 2015 12:36 pm

[SOLVED] ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by maphioso » Wed Jan 20, 2016 6:20 pm

hi,
i usually use vesta on debian vps but i'm not feel good with systemd
so, for now [waiting for devuan.org stable], i switched to ubuntu 14.04 lts
[until 2018 without systemd i hope]
now... today i take a fresh hetzner vps with minimal ubuntu 14.04 lts and i
ssh into it curl the vst-install.sh file and execute it with parameters and i have a lot of errors.
[vestacp doesn't work good: i can't replace a backup from another vestacp and other things]

i paste here only the part with errors
if you want i past it all

Code: Select all

# bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi no --quota no --hostname THEFQDNNAME --email MYEMAIL --password SUPERSTRONGPASSWORD
[enter]

blablabla all ok with repo, fetch something blabla
first error after mysql packages:
SpoilerShow
Setting up mysql-client-core-5.5 (5.5.46-0ubuntu0.14.04.2) ...
Setting up mysql-client-5.5 (5.5.46-0ubuntu0.14.04.2) ...
Setting up mysql-server-core-5.5 (5.5.46-0ubuntu0.14.04.2) ...
Setting up mysql-server-5.5 (5.5.46-0ubuntu0.14.04.2) ...
invoke-rc.d: policy-rc.d denied execution of stop.
invoke-rc.d: policy-rc.d denied execution of start.
BLABLA a lot of packages ALL OK
Setting up unzip (6.0-9ubuntu1.5) ...
Setting up vesta (0.9.8-15) ...
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
Setting up vesta-nginx (0.9.8-15) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up vesta-php (0.9.8-15) ...
BLABLA PACKAGES OK
Setting up phpmyadmin (4:4.0.10-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf

Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version

Creating config file /etc/phpmyadmin/config-db.php with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: phpmyadmin configure: noninteractive fail.
dbconfig-common: phpmyadmin configure: ignoring errors from here forwards
populating database via sql... done.
dbconfig-common: flushing administrative password
Setting up roundcube-mysql (0.9.5-4) ...
Setting up roundcube-core (0.9.5-4) ...
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf

Creating config file /etc/dbconfig-common/roundcube.conf with new version

Creating config file /etc/roundcube/debian-db.php with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: roundcube configure: noninteractive fail.
dbconfig-common: roundcube configure: ignoring errors from here forwards
populating database via sql... done.
dbconfig-common: flushing administrative password
reating config file /etc/roundcube/main.inc.php with new version
apache2_invoke: Enable configuration roundcube.conf
invoke-rc.d: policy-rc.d denied execution of reload.
invoke-rc.d: policy-rc.d denied execution of reload.
Setting up roundcube-plugins (0.9.5-4) ...
Setting up rrdtool (1.4.7-2ubuntu5) ...
Setting up vsftpd (3.0.2-1ubuntu2.14.04.1) ...
invoke-rc.d: policy-rc.d denied execution of start.

then vesta script download the custom config files for web/mail services and all ok
but when apache is confifgurated:

Module ruid2 already enabled
System start/stop links for /etc/init.d/apache2 already exist.
* Starting web server apache2 *
sed: -e expression #1, char 43: unknown option to `s'
sed: -e expression #1, char 43: unknown option to `s'
sed: -e expression #1, char 43: unknown option to `s'

then install vsftpd and do this error
update-rc.d: /etc/init.d/vsftpd: file does not exist
vesta looks to work good [for example the web panel] but if i want to do something
like make/restore a backup or remove a db, adding a user or something... i have error.

now i'm downloading a ubuntu 14 vagrant box to understand if the problem is the minimal image by hetzner.

i installed vestacp on a lot of debian server [not with this installer with arguments parsed in line, but the second last]
and until now no problem.

thank to all and if you need more information ask about that.
Last edited by maphioso on Thu Jan 21, 2016 7:11 pm, edited 2 times in total.
Top

BBuchanan1013
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by BBuchanan1013 » Wed Jan 20, 2016 6:57 pm

you need to become root on Ubuntu (this is a security thing with Ubuntu). The easy way to do what needs to be done:

Code: Select all

sudo command
or if you really want to become root;

Code: Select all

sudo -i
Top

maphioso
Posts: 19
Joined: Mon Sep 14, 2015 12:36 pm

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by maphioso » Wed Jan 20, 2016 8:04 pm

obviously i'm root.
[if you aren't you can't apt-get install packages and much other ... ]
Top

maphioso
Posts: 19
Joined: Mon Sep 14, 2015 12:36 pm

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by maphioso » Wed Jan 20, 2016 10:20 pm

i try with a fresh vagrant vm [vagrant init ubuntu/trusty64]
and i have the same errors.



regards.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by skurudo » Thu Jan 21, 2016 2:20 pm

Hmm... install with those options go just well.
(VMWare virtual machine, Ubuntu 14.04 x64)

but I'm used sudo ^_^
Top

maphioso
Posts: 19
Joined: Mon Sep 14, 2015 12:36 pm

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by maphioso » Thu Jan 21, 2016 3:08 pm

so... if i have a new vps with only root user i curl the install and launch it...
i have to launch it with sudo before the command???????

well....
i do a try now.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by imperio » Thu Jan 21, 2016 3:44 pm

i have to launch it with sudo before the command???????
You can using root without sudo
Top

maphioso
Posts: 19
Joined: Mon Sep 14, 2015 12:36 pm

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by maphioso » Thu Jan 21, 2016 4:03 pm

i finish now to install a fresh new vps with sudo before the bash vst-install.sh with parameters.

so... i'm root and i'm use sudo too.
[i was root yesterday too, btw]

well.... :(

Code: Select all

root@host ~ # sudo bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi no --quota no --hostname FQDN --email MAIL --password PASS
SpoilerShow
Setting up mysql-server-core-5.5 (5.5.46-0ubuntu0.14.04.2) ...
Setting up mysql-server-5.5 (5.5.46-0ubuntu0.14.04.2) ...
invoke-rc.d: policy-rc.d denied execution of stop.
invoke-rc.d: policy-rc.d denied execution of start.

Adding new user `bind' (UID 107) with group `bind' ...
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
#
invoke-rc.d: policy-rc.d denied execution of start.

Creating generic self-signed certificate: /etc/dovecot/dovecot.pem
This certificate will expire in 10 years.
(replace with hand-crafted or authorized one if needed).
invoke-rc.d: policy-rc.d denied execution of start.
Setting up exim4-config (4.82-3ubuntu2) ...

update-alternatives: using /usr/bin/mogrify.im6 to provide /usr/bin/mogrify (mogrify) in auto mode
Setting up javascript-common (11) ...
apache2_invoke: Enable configuration javascript-common
invoke-rc.d: policy-rc.d denied execution of reload.
Setting up libapache2-mod-fcgid (1:2.3.9-1) ...
apache2_invoke: Enable module fcgid
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up mlock (8:2007f~dfsg-2)

SpoilerShow
Setting up unzip (6.0-9ubuntu1.5) ...
Setting up vesta (0.9.8-15) ...
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 20: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-add-user-notification: line 27: check_args: command not found
/usr/local/vesta/bin/v-add-user-notification: line 28: validate_format: command not found
/usr/local/vesta/bin/v-add-user-notification: line 29: is_object_valid: command not found
grep: /user.conf: No such file or directory
sed: can't read /user.conf: No such file or directory
Setting up vesta-nginx (0.9.8-15) ...
invoke-rc.d: policy-rc.d denied execution of start.
Setting up vesta-php (0.9.8-15) ...
and
SpoilerShow
Setting up phpmyadmin (4:4.0.10-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf

Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version

Creating config file /etc/phpmyadmin/config-db.php with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: phpmyadmin configure: noninteractive fail.
dbconfig-common: phpmyadmin configure: ignoring errors from here forwards
populating database via sql... done.
dbconfig-common: flushing administrative password
Setting up roundcube-mysql (0.9.5-4) ...
Setting up roundcube-core (0.9.5-4) ...
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf

Creating config file /etc/dbconfig-common/roundcube.conf with new version

Creating config file /etc/roundcube/debian-db.php with new version
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
unable to connect to mysql server.
error encountered creating user:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
dbconfig-common: roundcube configure: noninteractive fail.
dbconfig-common: roundcube configure: ignoring errors from here forwards
and
SpoilerShow
2016-01-21 16:47:06 (24.1 MB/s) - ‘/etc/vsftpd.conf’ saved [493/493]

update-rc.d: /etc/init.d/vsftpd: file does not exist
vsftpd start/running, process 20292
:(
i don't know what happening and why do this error....
i try with a debian wheezy and all ok
i have 8 vps debian wheezy with vestacp and no problem. never.
i have 2 vps with sftp plugin and file manager too. debian too.
no problem.

this is happening on ubuntu 14.04

i can create a script log and share with you if you want to "see with your eyes"
because i understand that this is unbelieavable... i'm going crazy with that.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by imperio » Thu Jan 21, 2016 5:14 pm

Please reinstall OS and send us access to your server
We will check this problem on your server
Top

maphioso
Posts: 19
Joined: Mon Sep 14, 2015 12:36 pm

Re: ubuntu 14.04 amd64 fresh install trouble
  • Quote

Post by maphioso » Thu Jan 21, 2016 5:58 pm

ok... i see you on that....

like you i do upgrade/dist-upgrade first and then vst-install

have you launched the script with argument or without ? just to know ...
Top


Post Reply
  • Print view

13 posts
  • 1
  • 2
  • Next

Return to “Debian/Ubuntu”



  • 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