We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
WHMCS Module changing admin password
WHMCS Module changing admin password
Hello Team,
I have noticed lately that when my WHMCS module runs automatically to suspend an account it changes my admin password for vesta. I use the admin account for the module in whmcs and I can successfully suspend an account but then i have to go back in a reset the admin password to run unsuspend. Below are from the module logs
suspendaccount - https://###.##########.us:8083/api/user=admin&password=########&hash=&cmd=v-suspend-user&arg1=learn - ok
unsuspendaccount - https://###.##########.us:8083/api/user=admin&password=########&hash=&cmd=v-unsuspend-user&arg1=learn - Error: authentication failed
What can I do to fix this, or is this a bug?
I am using WHMCS Version: 6.1.1
Vesta
core package
Version:0.9.8 (amd64)
Release:15
Ubuntu
Ubuntu 14.04 (x86_64)
I have noticed lately that when my WHMCS module runs automatically to suspend an account it changes my admin password for vesta. I use the admin account for the module in whmcs and I can successfully suspend an account but then i have to go back in a reset the admin password to run unsuspend. Below are from the module logs
suspendaccount - https://###.##########.us:8083/api/user=admin&password=########&hash=&cmd=v-suspend-user&arg1=learn - ok
unsuspendaccount - https://###.##########.us:8083/api/user=admin&password=########&hash=&cmd=v-unsuspend-user&arg1=learn - Error: authentication failed
What can I do to fix this, or is this a bug?
I am using WHMCS Version: 6.1.1
Vesta
core package
Version:0.9.8 (amd64)
Release:15
Ubuntu
Ubuntu 14.04 (x86_64)
Last edited by strato on Sun Nov 08, 2015 4:26 pm, edited 2 times in total.
Re: WHMCS Module changing admin password
Here is the log file from /var/log/vesta/system.log
##########@###:~# tail -f /var/log/vesta/system.log
2015-11-08 10:03:25 v-suspend-web-domain account account.com no
2015-11-08 10:03:25 v-suspend-web-domains account
2015-11-08 10:03:26 v-suspend-dns-domain account account.com no
2015-11-08 10:03:25 v-suspend-dns-domains account
2015-11-08 10:03:26 v-suspend-mail-domain account account.com
2015-11-08 10:03:26 v-suspend-mail-domains account
2015-11-08 10:03:26 v-suspend-database account account_press
2015-11-08 10:03:26 v-suspend-databases account
2015-11-08 10:03:26 v-suspend-cron-jobs account
2015-11-08 10:03:16 v-suspend-user account
2015-11-08 10:04:45 v-change-user-password admin ****** <---- This is when I had to reset the admin password via the portal, not part of the automation!
2015-11-08 10:05:11 v-unsuspend-web-domain account account.com no
2015-11-08 10:05:11 v-unsuspend-web-domains account
2015-11-08 10:05:12 v-unsuspend-dns-domain account account.com no
2015-11-08 10:05:12 v-unsuspend-dns-domains account
2015-11-08 10:05:12 v-unsuspend-mail-domain account account.com
2015-11-08 10:05:12 v-unsuspend-mail-domains account
2015-11-08 10:05:12 v-unsuspend-database account account_press
2015-11-08 10:05:12 v-unsuspend-databases account
2015-11-08 10:05:12 v-unsuspend-cron-jobs account
2015-11-08 10:04:55 v-unsuspend-user account
##########@###:~# tail -f /var/log/vesta/system.log
2015-11-08 10:03:25 v-suspend-web-domain account account.com no
2015-11-08 10:03:25 v-suspend-web-domains account
2015-11-08 10:03:26 v-suspend-dns-domain account account.com no
2015-11-08 10:03:25 v-suspend-dns-domains account
2015-11-08 10:03:26 v-suspend-mail-domain account account.com
2015-11-08 10:03:26 v-suspend-mail-domains account
2015-11-08 10:03:26 v-suspend-database account account_press
2015-11-08 10:03:26 v-suspend-databases account
2015-11-08 10:03:26 v-suspend-cron-jobs account
2015-11-08 10:03:16 v-suspend-user account
2015-11-08 10:04:45 v-change-user-password admin ****** <---- This is when I had to reset the admin password via the portal, not part of the automation!
2015-11-08 10:05:11 v-unsuspend-web-domain account account.com no
2015-11-08 10:05:11 v-unsuspend-web-domains account
2015-11-08 10:05:12 v-unsuspend-dns-domain account account.com no
2015-11-08 10:05:12 v-unsuspend-dns-domains account
2015-11-08 10:05:12 v-unsuspend-mail-domain account account.com
2015-11-08 10:05:12 v-unsuspend-mail-domains account
2015-11-08 10:05:12 v-unsuspend-database account account_press
2015-11-08 10:05:12 v-unsuspend-databases account
2015-11-08 10:05:12 v-unsuspend-cron-jobs account
2015-11-08 10:04:55 v-unsuspend-user account
Re: WHMCS Module changing admin password
Has no one ever run across this?
Re: WHMCS Module changing admin password
Mark as solved!
So after doing some digging in WHMCS, I forgot to add the new vestacp host as whitelisted for api access. After doing that yesterday, not knowing it fixed the issue, I decided today to try and watch the vesta/system.log and also watch the var/log/auth.log and ran a suspend and unsuspend without issues.
So after doing some digging in WHMCS, I forgot to add the new vestacp host as whitelisted for api access. After doing that yesterday, not knowing it fixed the issue, I decided today to try and watch the vesta/system.log and also watch the var/log/auth.log and ran a suspend and unsuspend without issues.