Page 1 of 1

v-add-database-host mysql 'command not found'

Posted: Tue May 20, 2014 2:37 pm
by RichBos
Hi, we have three Vesta instances and are adding our remote database cluster to them, on two it is all good but on the third we get 'command not found' from v-add-database-host mysql (etc)....

Any ideas what may be the issue and how we might resolve it? We can create databases locally through the control panel.

Many thanks

Best regards

RichBos

Re: v-add-database-host mysql 'command not found'

Posted: Tue May 20, 2014 5:43 pm
by RichBos
Hi, just to update on this. Oddly the problem has now appeared on the second box also, the first box we created is still ok.

If you change into the directory at /usr/local/vesta/bin/ and run 'sudo ./v-list-database-hosts' then the command works, other than that it says 'command not found'. So, something to do with the $PATH has changed? Might that be it?
The thing is I can't see how as all we have done is update (apt-get update && apt-get upgrade -y), nothing else, and that we have also done on all three boxes.
Very confusing, they are all running Ubuntu 12.04 (if that's relevant?).

We can still run the commands manually from inside the DIR but that's not how it's meant to be no? It would be nice to get the ability back to properly use them from anywhere.

Richard.

Re: v-add-database-host mysql 'command not found'

Posted: Tue May 20, 2014 5:52 pm
by RichBos
Hi, sorry, I've worked this out so thought I would update.

It is because I invoked sudo -s on x2 of the instances (which resets the env path securely to defaults), that was on x2 EC2s, the first box is a Digital Ocean droplet which uses root ssh so no need for sudo -s (and hence no reset).

Glad I worked it out :-) Hope this helps anyone else using AWS EC2s.

Richard.

Re: v-add-database-host mysql 'command not found'

Posted: Fri May 23, 2014 8:20 pm
by imperio

Code: Select all

v-add-database-host
you should working under root for this command or you can to specify the full path to the executable script

Code: Select all

/usr/local/vesta/bin/