CLI Scripts Are No Longer Working

Post Reply
gn7
Posts: 11
Joined: Wed Jul 13, 2022 4:51 am

CLI Scripts Are No Longer Working
I have a server with several sites that are running perfectly fine, and have for several years. I can manage things with the MyVesta GUI, but I noticed that now, whenever I try a CLI script it fails, whereas these scripts all ran fine on sames server last year. (Debian 11, pure nginx, no apache)
For example, logged in as root on terminal, I run:
sudo /usr/local/vesta/bin/v-clone-website somesite.com someothersite --TO_DATABASE_NAME='aUserName_somesite' --TO_DATABASE_USERNAME='aUserName_somesite' --TO_DATABASE_PASSWORD='newPassword123'
But it gives me error:
/usr/local/vesta/bin/v-search-domain-owner: line 19: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-search-domain-owner: line 26: check_args: command not found
grep: /data/users/*/*.conf: No such file or directory
Error: domain somesite.com does not exists
(Note that the site DOES exist, and is can be manipulated from the myVesta GUI. I tried the script to clone other sites also, but always got the same error). The script worked fine last year.
OR
If I try:
/usr/local/vesta/bin/v-change-domain-owner "somesite.com" "aUserName"
(The new user name already exists on the server)
But I get LOTs of errors:
/usr/local/vesta/bin/v-change-domain-owner: line 17: /func/ip.sh: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 18: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 19: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 26: check_args: command not found
/usr/local/vesta/bin/v-change-domain-owner: line 27: is_format_valid: command not found
/usr/local/vesta/bin/v-change-domain-owner: line 28: is_object_valid: command not found
/usr/local/vesta/bin/v-change-domain-owner: line 29: is_object_unsuspended: command not found
/usr/local/vesta/bin/v-change-domain-owner: line 30: /v-search-domain-owner: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 32: check_result: command not found
/usr/local/vesta/bin/v-change-domain-owner: line 39: is_object_unsuspended: command not found
grep: /data/users//web.conf: No such file or directory
grep: /data/users//dns.conf: No such file or directory
grep: /data/users//mail.conf: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 178: /v-update-user-counters: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 179: /v-update-user-counters: No such file or directory
/usr/local/vesta/bin/v-change-domain-owner: line 187: log_event: command not found
-
Similar problems happen with other CLI scripts, which can't be found. Yet all the scripts are still there, untouched on my server at: /usr/local/vesta/bin/
Thanks in advance for any ideas.
(I also updated all and rebooted the server, but nothing improved.)
——
Post Reply