Problems deleting a domain

alexgfx

New member
Joined
Jun 23, 2022
Messages
1
1. I add a domain to the server: User level -> Domain setup -> Add new -> enter domain name example.com-> Create
2. I issue Let's Encrypt SSL certificates, example.com loads fine, also www.example.com, no problems.
3. I delete the domain from the server: User level -> Domain setup -> select domain -> Delete -> Delete web data -> Delete -> DOMAIN DELETION RESULTS:
example.com deleted successfully. example.com's config files have been removed

But, in DirectAdmin's error logs shows:

2022:06:23-23:39:45: db_domain_delete: example.com: 2022/06/23 23:39:45 fatal executing cli command error=unrecognized target

In DirectAdmin sistem log there is:

2022:06:23-23:39:45: Ssl::set_sni_domains:admin,example.com: removed *.example.com from snidomains
2022:06:23-23:39:45: Ssl::set_sni_domains:admin,example.com: removed example.com from snidomains
2022:06:23-23:39:46: Domain example.com deleted via manual User deletion by 5.12.95.222
2022:06:23-23:40:36: Tally User admin Begin: mask 20
2022:06:23-23:40:38: Tally User admin Complete
2022:06:23-23:40:38: named reloaded
2022:06:23-23:40:38: dovecot reloaded
2022:06:23-23:40:38: httpd reloaded
2022:06:23-23:40:38: php-fpm74 reloaded
2022:06:23-23:40:38: php-fpm80 reloaded

After this, if I add the domain again:

1. add the domain again to the server: User level -> Domain setup -> Add new -> enter domain name example.com-> Create
2. I issue Let's Encrypt SSL certificates, BUT NOW www.example.com loads fine, example.com timeouts: unable to connect.

I deleted the domain, the same error, added again, the same problem. At DNS level A for domain was there and propagated.

I encountered this problem also on another VPS with DirectAdmin.

Am I doing something wrong?
 
I cant remove users, does anyone know why this is happening?
2023:06:27-15:33:46: db_user_delete: error deleting mhtest: unrecognized target
2023:06:27-15:34:00: Domain::deleteFile::domain.com Can't Read File
2023:06:27-15:34:00: db_domain_delete: domain.com: unrecognized target

Also 2 other users are giving errors, they are compleyely removed from the server and not visible in DA:
2023:06:27-15:34:03: User user1 did not exist on the server. Removing it from resellername's list.
2023:06:27-15:34:03: User user2 did not exist on the server. Removing it from resellername's list.

anything that points me towards a solution will be epic! i'm out of options here after hours and hours..
 
You could try to remove manually if the user still exists.

Try this (at your own risk):
Check if domain exists in /etc/httpd/conf/extra/directadmin-vhosts.conf file and remove it from there.
Remove the user via SSH:
userdel accoutname groupdel accountname rm -rf /usr/local/directadmin/data/accountname rm -rf /home/accountname

Afterwards check in the /etc/passwd file if the accoutname still exists there, if yes, remove the line from the accoutname.
I would backup the /etc/passwd file first to be sure.

Same for the other 2 users.
Again, use at own risk.

Since it happens more, it might be more wise to send in a ticket of wait for an official answer.
 
Back
Top