Delete Alias - User Nobody
Hello,
I have a Domain.
If I look under the parked domain (Domain (Correct User)).
Now wanted to remove an alias domain. That worked very well.
Now I wanted to create this domain as "real domain" on the same account.
And here comes my problem.
That doesn't work. If I now create this domain again I will be told by the system that this domain belongs to someone else. If I look under the parked domain I see that this domain still exists with the user "Nobody". (Domain (Nobody))
But the user Nobody does not exist.
As I said the domain should belong to the account where I removed the alias before.
How can I fix it again?
/etc/redhat-release:CentOS Linux release 7.7.1908 (Core)
/usr/local/cpanel/version:11.84.0.5
/var/cpanel/envtype:standard
CPANEL=release
-
Hello, It sounds like there was an issue with the domain being removed initially. If you access the server via SSH and go to /var/cpanel/userdata/$USER and /var/cpanel/userdata/nobody/ is the alias present in either? 0 -
Hello, in /var/cpanel/userdata/$USER Contains User and a Folder Nobody is here too... /var/cpanel/userdata/nobody/ That contains only: Main Main.cache but in the folder /var/cpanel/userdata/USERXYZ In this directory the alias is also not listed although it belongs to this user. 0 -
Hello, Maybe a better way to go about this: grep -r domain.tld /var/cpanel/userdata
Essentially I'm wanting to see if it's listed in any of the files belonging to that user. You can also run this for the users directory:grep -r domain.tld /var/cpanel/users0 -
[CODE=bash]grep -r domain.tld /var/cpanel/userdata
[CODE=bash] /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL:serveralias: AliasDomain.de ipv6.Main-Domain.de mail.Main-Domain.de mail.AliasDomain.de www.Main-Domain.de www.AliasDomain.de /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL.cache:{"port":"443","serveradmin":"webmaster@Main-Domain.de","secruleengineoff":null,"ifmodulemodincludec":{"directoryhomeMainDomainpublichtml":{"ssilegacyexprparser":[{"value":" On"}]}},"serveralias":"AliasDomain.de ipv6.Main-Domain.de mail.Main-Domain.de mail.AliasDomain.de www.Main-Domain.de www.AliasDomain.de","proxymatchhttps":{},"user":"MainDomain","rewritecond":[{"rewritecond":"%{HTTP_HOST} =autodiscover.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =autodiscover.Main-Domain.de:443"},{"rewritecond":"%{HTTP:Upgrade} !websocket [nocase]"},{"rewritecond":"%{HTTP_HOST} =cpanel.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =cpanel.Main-Domain.de:443"},{"rewritecond":"%{HTTP_HOST} =webdisk.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =webdisk.Main-Domain.de:443"},{"rewritecond":"%{HTTP_HOST} =webmail.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =webmail.Main-Domain.de:443"},{"rewritecond":"%{HTTP:Upgrade} websocket [nocase]"}],"rewriterule":[{"qualifier":"[P]","pattern":"^","substitution":"http://127.0.0.1/cgi-sys/autodiscover.cgi"},{"qualifier":"[PT]","pattern":"^/(.*)","substitution":"/___proxy_subdomain_cpanel/$1"},{"pattern":"^/(.*)","qualifier":"[PT]","substitution":"/___proxy_subdomain_webdisk/$1"},{"substitution":"/___proxy_subdomain_webmail/$1","pattern":"^/(.*)","qualifier":"[PT]"},{"qualifier":"[PT]","pattern":"^/(.*)","substitution":"/___proxy_subdomain_ws_cpanel/$1"},{"pattern":"^/(.*)","qualifier":"[PT]","substitution":"/___proxy_subdomain_ws_webmail/$1"}],"homedir":"/home/MainDomain","ipv6":{"2a01:04f8:0190:61c8:0000:0000:0000:0002":{"dedicated":1}},"servername":"Main-Domain.de","phpopenbasedirprotect":1,"proxypass":[{"proxypass":"\"/___proxy_subdomain_cpanel\" \"http://127.0.0.1:2082\" max=1 retry=0"},{"proxypass":"\"/___proxy_subdomain_webdisk\" \"http://127.0.0.1:2077\" max=1 retry=0"},{"proxypass":"\"/___proxy_subdomain_webmail\" \"http://127.0.0.1:2095\" max=1 retry=0"}],"userdirprotect":"","usecanonicalname":"Off","ssl":1,"owner":"root","documentroot":"/home/MainDomain/public_html","group":"MainDomain","ip":"123.123.123.123","rewriteengine":"On","hascgi":1} /var/cpanel/userdata/MainDomain/main: - AliasDomain.de /var/cpanel/userdata/MainDomain/Main-Domain.de.cache:{"phpversion":"ea-php72","scriptalias":[{"url":"/cgi-bin/","path":"/home/MainDomain/public_html/cgi-bin"}],"usecanonicalname":"Off","documentroot":"/home/MainDomain/public_html","owner":"root","customlog":[{"target":"/etc/apache2/logs/domlogs/Main-Domain.de","format":"combined"},{"format":"\"%{%s}t %I .\\n%{%s}t %O .\"","target":"/etc/apache2/logs/domlogs/Main-Domain.de-bytes_log"}],"homedir":"/home/MainDomain","hascgi":1,"ssl_redirect":"","ip":"123.123.123.123","group":"MainDomain","ipv6":{"2a01:04f8:0190:61c8:0000:0000:0000:0002":{"dedicated":1}},"phpopenbasedirprotect":1,"serveradmin":"webmaster@Main-Domain.de","servername":"Main-Domain.de","port":"80","serveralias":"AliasDomain.de ipv6.Main-Domain.de mail.Main-Domain.de mail.AliasDomain.de www.Main-Domain.de www.AliasDomain.de","user":"MainDomain","userdirprotect":""} /var/cpanel/userdata/MainDomain/main.cache:{"addon_domains":{},"parked_domains":["AliasDomain.de">,"sub_domains":[],"main_domain":"Main-Domain.de"} /var/cpanel/userdata/MainDomain/Main-Domain.de:serveralias: AliasDomain.de ipv6.Main-Domain.de mail.Main-Domain.de mail.AliasDomain.de www.Main-Domain.de www.AliasDomain.de /var/cpanel/userdata/MainDomain/cache:AliasDomain.de: MainDomain==root==parked==Main-Domain.de==/home/MainDomain/public_html==123.123.123.123:80==123.123.123.123:443====0==ea-php72 /var/cpanel/userdata/MainDomain/cache.json:{"Main-Domain.de":["MainDomain","root","main","Main-Domain.de","/home/MainDomain/public_html","123.123.123.123:80","123.123.123.123:443","2a01:04f8:0190:61c8:0000:0000:0000:0002,1","0","ea-php72">,"AliasDomain.de":["MainDomain","root","parked","Main-Domain.de","/home/MainDomain/public_html","123.123.123.123:80","123.123.123.123:443","","0","ea-php72">} :443","","0","ea-php72">}
[CODE=bash]grep -r domain.tld /var/cpanel/users
[root@whm ~]# grep -r AliasDomain.de /var/cpanel/users /var/cpanel/users/MainDomain:DNS1=AliasDomain.de /var/cpanel/users/system:DNS1=AliasDomain.de /var/cpanel/users/nobody:MXCHECK-AliasDomain.de=remote
Thank You for your help0 -
Hello, Based on this output it doesn't look like it really got removed from anything. I'd start by removing it from the following files (not any cache files) /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL /var/cpanel/userdata/MainDomain/main /var/cpanel/userdata/MainDomain/Main-Domain.de
Then from the following:/var/cpanel/users/MainDomain /var/cpanel/users/system /var/cpanel/users/nobody
Pending the alias domain isn't the hostname of the server or anything. Once that's complete I'd run the following:/scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
And then try adding the alias once more, it's possible with this amount of cruft though it may need to be removed from other places.0 -
[QUOTE]Based on this output it doesn't look like it really got removed from anything.
Sry my failure. This Output was BEFORE i removed the alias domain. Now i have removed this AliasDomain. Specific User -> Login UserPanel (CPanel). -> Alias Domain -> Remove Domain Now i Post the new Files: [CODE=bash]grep -r AliasDomain.de /var/cpanel/userdata
Output: Nothing [CODE=bash]grep -r MainDomain.de /var/cpanel/userdata
[CODE=bash]/var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =autodiscover.Main-Domain.de [OR]" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =autodiscover.Main-Domain.de:443" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =cpanel.Main-Domain.de [OR]" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =cpanel.Main-Domain.de:443" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =webdisk.Main-Domain.de [OR]" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =webdisk.Main-Domain.de:443" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =webmail.Main-Domain.de [OR]" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL: rewritecond: "%{HTTP_HOST} =webmail.Main-Domain.de:443" /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL:serveradmin: webmaster@Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL:serveralias: ipv6.Main-Domain.de mail.Main-Domain.de www.Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL:servername: Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de_SSL.cache:{"homedir":"/home/MainDomain","rewriterule":[{"substitution":"http://127.0.0.1/cgi-sys/autodiscover.cgi","qualifier":"[P]","pattern":"^"},{"substitution":"/___proxy_subdomain_cpanel/$1","qualifier":"[PT]","pattern":"^/(.*)"},{"pattern":"^/(.*)","qualifier":"[PT]","substitution":"/___proxy_subdomain_webdisk/$1"},{"qualifier":"[PT]","pattern":"^/(.*)","substitution":"/___proxy_subdomain_webmail/$1"},{"substitution":"/___proxy_subdomain_ws_cpanel/$1","pattern":"^/(.*)","qualifier":"[PT]"},{"substitution":"/___proxy_subdomain_ws_webmail/$1","qualifier":"[PT]","pattern":"^/(.*)"}],"rewritecond":[{"rewritecond":"%{HTTP_HOST} =autodiscover.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =autodiscover.Main-Domain.de:443"},{"rewritecond":"%{HTTP:Upgrade} !websocket [nocase]"},{"rewritecond":"%{HTTP_HOST} =cpanel.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =cpanel.Main-Domain.de:443"},{"rewritecond":"%{HTTP_HOST} =webdisk.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =webdisk.Main-Domain.de:443"},{"rewritecond":"%{HTTP_HOST} =webmail.Main-Domain.de [OR]"},{"rewritecond":"%{HTTP_HOST} =webmail.Main-Domain.de:443"},{"rewritecond":"%{HTTP:Upgrade} websocket [nocase]"}],"user":"MainDomain","proxymatchhttps":{},"serveralias":"ipv6.Main-Domain.de mail.Main-Domain.de www.Main-Domain.de","ifmodulemodincludec":{"directoryhomeMainDomainpublichtml":{"ssilegacyexprparser":[{"value":" On"}]}},"secruleengineoff":null,"serveradmin":"webmaster@Main-Domain.de","port":"443","hascgi":1,"rewriteengine":"On","group":"MainDomain","ip":"123.123.123.123","documentroot":"/home/MainDomain/public_html","owner":"root","ssl":1,"usecanonicalname":"Off","userdirprotect":"","proxypass":[{"proxypass":"\"/___proxy_subdomain_cpanel\" \"http://127.0.0.1:2082\" max=1 retry=0"},{"proxypass":"\"/___proxy_subdomain_webdisk\" \"http://127.0.0.1:2077\" max=1 retry=0"},{"proxypass":"\"/___proxy_subdomain_webmail\" \"http://127.0.0.1:2095\" max=1 retry=0"}],"phpopenbasedirprotect":1,"servername":"Main-Domain.de","ipv6":{"2a01:04f8:0190:61c8:0000:0000:0000:0002":{"dedicated":1}}} /var/cpanel/userdata/MainDomain/main:main_domain: Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de.cache:{"userdirprotect":"","user":"MainDomain","serveralias":"ipv6.Main-Domain.de mail.Main-Domain.de www.Main-Domain.de","servername":"Main-Domain.de","port":"80","serveradmin":"webmaster@Main-Domain.de","phpopenbasedirprotect":1,"ipv6":{"2a01:04f8:0190:61c8:0000:0000:0000:0002":{"dedicated":1}},"ip":"123.123.123.123","group":"MainDomain","ssl_redirect":"","hascgi":1,"homedir":"/home/MainDomain","customlog":[{"format":"combined","target":"/etc/apache2/logs/domlogs/Main-Domain.de"},{"target":"/etc/apache2/logs/domlogs/Main-Domain.de-bytes_log","format":"\"%{%s}t %I .\\n%{%s}t %O .\""}],"owner":"root","documentroot":"/home/MainDomain/public_html","usecanonicalname":"Off","scriptalias":[{"path":"/home/MainDomain/public_html/cgi-bin","url":"/cgi-bin/"}],"phpversion":"ea-php72"} /var/cpanel/userdata/MainDomain/main.cache:{"addon_domains":{},"main_domain":"Main-Domain.de","sub_domains":[],"parked_domains":[]} /var/cpanel/userdata/MainDomain/Main-Domain.de: target: /etc/apache2/logs/domlogs/Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de: target: /etc/apache2/logs/domlogs/Main-Domain.de-bytes_log /var/cpanel/userdata/MainDomain/Main-Domain.de:serveradmin: webmaster@Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de:serveralias: ipv6.Main-Domain.de mail.Main-Domain.de www.Main-Domain.de /var/cpanel/userdata/MainDomain/Main-Domain.de:servername: Main-Domain.de /var/cpanel/userdata/MainDomain/cache:Main-Domain.de: MainDomain==root==main==Main-Domain.de==/home/MainDomain/public_html==123.123.123.123:80==123.123.123.123:443==2a01:04f8:0190:61c8:0000:0000:0000:0002,1==0==ea-php72 /var/cpanel/userdata/MainDomain/cache.json:{"Main-Domain.de":["MainDomain","root","main","Main-Domain.de","/home/MainDomain/public_html","123.123.123.123:80","123.123.123.123:443","2a01:04f8:0190:61c8:0000:0000:0000:0002,1","0","ea-php72">}
[CODE=bash]grep -r Aliasdomain.tld /var/cpanel/users
[CODE=bash]/var/cpanel/users/MainDomain:XDNS1=AliasDomain.de /var/cpanel/users/system:DNS1=AliasDomain.de /var/cpanel/users/nobody:MXCHECK-AliasDomain.de=remote
[CODE=bash]grep -r MainDomain.tld /var/cpanel/users
[CODE=bash]/var/cpanel/users/MainDomain:CONTACTEMAIL=sion.savior@main-domain.de /var/cpanel/users/MainDomain:DNS=main-domain.de /var/cpanel/users/MainDomain:MXCHECK-main-domain.de=0
Now i want to create a new Domain same as Alias Domain but now as a "Full" Domain: Specific User -> Login UserPanel (CPanel). -> Domain -> Create new Domain. (New domain is the same as the AliasDomain from before) Output = Error German [QUOTE]Fehler: (XID xt4dqt) Die Dom"ne "AliasDomain.de" kann von "MainDomain" nicht erstellt werden, da "AliasDomain.de" bereits Eigentum eines anderen Benutzers ist.
English: [QUOTE]Mistake: (XID xt4dqt) The domain "AliasDomain.de" cannot be created by "MainDomain" because "AliasDomain.de" is already owned by another user.
Now i go in my WHM Panel: DNS-Function Domain parking Here i can see folowing line in this list: [QUOTE]AliasDomain.de (nobody)
But BEFORE i deleted the alias Domain the oputput was [QUOTE]AliasDomain.de (MainDomain)0 -
The intention was that before you attempt to add the Alias Domain again you needed to remove it from all locations in /var/cpanel/users/ and /var/cpanel/userdata/ One that's complete you need to run the following: /scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
Only after you've removed all references to it in those locations (you don't have to modify cache files) then attempt to readd the domain.0 -
The intention was that before you attempt to add the Alias Domain again you needed to remove it from all locations in /var/cpanel/users/ and /var/cpanel/userdata/ One that's complete you need to run the following:
/scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
Only after you've removed all references to it in those locations (you don't have to modify cache files) then attempt to readd the domain.
Thank you that works perfectly!!0
Please sign in to leave a comment.
Comments
8 comments