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.
Can't start http, nginx, dns after failed user delete
Can't start http, nginx, dns after failed user delete
I made the mistake of deleting a user from the command line using userdel -r username
I should have used v-delete-user
I then tried to correctly delete the user using v-delete-user and I got errors like this:
Since then, I cannot start httpd, nginx or dns.
Can anyone please tell me if there's a way to fix my mistake and restore the server?
Thank you.
I should have used v-delete-user
I then tried to correctly delete the user using v-delete-user and I got errors like this:
Code: Select all
chown: invalid user: ‘username:username’
chown: invalid group: ‘root:username’
/usr/local/vesta/func/domain.sh: line 176: /home/username/conf/web/httpd.conf: No such file or directory
chown: invalid group: ‘root:username’
chmod: cannot access ‘/home/username/conf/web/httpd.conf’: No such file or directory
/usr/local/vesta/func/domain.sh: line 176: /home/username/conf/web/nginx.conf: No such file or directory
chown: invalid group: ‘root:username’
chmod: cannot access ‘/home/username/conf/web/nginx.conf’: No such file or directory
Error: httpd restart failed
Can anyone please tell me if there's a way to fix my mistake and restore the server?
Thank you.
Re: Can't start http, nginx, dns after failed user delete
try to check /etc/httpd/conf.d/vesta.conf and /etc/nginx/conf.d/vesta.conf and get rid of "include" line that refer to old user