IP address missing on newly created account
Hi!
Got a weird problem this morning when I created a new account. The account creation seems to complete without any errors, but when I go to List Accounts, under the column IP Address for the new account, it's listed as MISSING.
The FTP account does not work for the new account (authentication failure), but if I use the "Synchronize FTP passwords" option in WHM, then the FTP starts working.
If I navigate to MultiPHP Manager in WHM, the new account is NOT listed. So I went in cPanel for the new account and if I go to MultiPHP Manager from there, I get the following error:
"Failed to fetch userdata for "******" at /usr/local/cpanel/Cpanel/PHP/Config.pm line 313."
I already tried to Terminate the account and recreate it multiple times with the same outcome.
Anyone can provide input on this ?
SERVER INFO
/etc/redhat-release:CentOS release 6.10 (Final)
/usr/local/cpanel/version:11.74.0.4
/var/cpanel/envtype:standard
CPANEL=release
-
Hi @JF Bertrand Did anything out of the ordinary occur when you created the account? It sounds like for some reason the userdata for the account wasn't actually created. Is anything present at: /var/cpanel/userdata/$user/
0 -
Nothing out of the ordinary, the output from the account creation seems normal, no errors whatsoever... The folder /var/cpanel/userdata/$user/ was created and contains the following files: main main.cache $user.com $user.com.cache 0 -
Hi @JF Bertrand Ok well, that's step one that it exists. What's in main? Thanks! 0 -
Here is the content of main ( seems ok to me ) : --- addon_domains: {} main_domain: [removed] parked_domains: [] sub_domains: [] 0 -
Hi @JF Bertrand Yea that's exactly how it should look are the contents of the domain.tld file also intact and is the IP address present? Thanks! 0 -
Hi @JF Bertrand I removed the last response because it contained real domain names/IP's but I did take a look at it first. It seems to be set up properly in that respect. The only instances this would occur is if the user/domain isn't referenced properly in one of the necessary files which is why I'm having you check the most common files. Can you confirm this by running the following: grep $username /etc/{userdatadomains,userdomains,passwd,shadow,group}
Thanks!0 -
Ok I ran the grep as requested. The $username is not referenced in userdatadomains. It is however referenced in every other files. Do you need the output from the command? 0 -
Hi @JF Bertrand It should be referenced there in the following format: yourdomain.com: youruser==root==main==yourdomain.com==/home/youruser/public_html==:80==:443====0==
Rather than add this information manually I'd like to see if running the following does it automatically:/scripts/updateuserdomains /scripts/updateuserdatacache --force mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
Once this is complete can you check userdatadomains once more and let me know if the domain is present? Thanks!0 -
Ok, that did it! The domain is now present in : userdatadomains and everything seems to be working fine. I don't know what caused this to happen today though. We frequently add accounts and this is the first time something like this ever happened. Hopefully it won't happen again ! Thanks ! 0 -
Hi @JF Bertrand I'm not sure what caused it either, though it's not typically a common occurrence. For some reason when the account was added it seems the /etc/userdatadomains file wasn't able to be written to or just wasn't - it could be a few things but as long as you can add some test domains and they don't experience the issue you should be alright. I'm glad that it's working for you as intended now as well. Thanks! 0 -
Hello I"m with the same problem Running this : /scripts/updateuserdomains /scripts/updateuserdatacache --force mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
the domain in the list appeasr with the IP But when i add another domain, again MISSING.. I can"t do this for EVERY site created, becasue many sites are created by resellers ;( Any help? Server centOS 7 Cloudlinux 7.5 Apache 2.4 Thanks Fabian0 -
UPDATE : This maybe can help to fund the problem After i created the domain.. where appears in the column IP as MISSING. I go to terminate it. The system terminate the domain, BUT NOT TERMINATE the dns zone. Even running the above scripts that fix the IP stuff, if i delete that domain (after fixed), the DNS zone not deleted. I need to delete the site and the dns zone manually. Another weird thing: when i create a new site here, appears as 0MB used. When in other servers, when the domain is created always have some in use (like 1MB) :( Thanks in advance Fabian 0 -
Hi @planetjoin Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks! 0 -
Done! Ticket #10323391 Thanks for your help Fabian 0 -
I just saw this : IP shown as MISSING in whm list accounts Could be so easy?? Regards Fabian 0 -
Hi @planetjoin Thanks for providing the ticket ID - I believe the fact that you're continuously experiencing this problem warrants more in-depth investigation - I'll update here as to any progress on the ticket as well. Thanks! 0 -
Hi @planetjoin It could be but that still wouldn't answer why it's occurring. If there's some configuration or way that accounts are being created that's causing this behavior it needs to be investigated. Please feel free to run upcp if you'd like though. 0 -
already ran upcp.. rebooted server created new account 1test.com and again "MISSING".. (image attached) 54413 Now.. wait the ticket resolution ;) Regards Fabian 0 -
Hi Fabian, It was worth the try - thanks for posting the results as well. Let's see what the outcome of the ticket is. I'll update here with more information when available. Thanks! 0 -
Well The ticket is still in queue.. but i don"t know how, the issues is fixed. All the domains appears ok, and i"ve added few new sites all perfect. weird.. maybe something i do.. Regards Fabian 0 -
Hi @planetjoin I'm glad they're displaying properly. Does this persist if you create a new account as well? Thanks! 0 -
I'm glad they're displaying properly. Does this persist if you create a new account as well?
Yes! i"ve created 3 new sites and all fine. Maybe was fixed when i ran upcp ? weird.. the ticket not answered yet.. but all back ok. Thanks Fabian0 -
It is likely that resolved the issue - just wasn't apparent right away. We're busier than normal this week so it is causing delays in ticket response times. I am sorry about that. Please let us know if you run into any further issues with the IP's missing. Thanks! 0 -
Have you found any solution to this? We have exactly the same problem. When I run the code earlier in the post, that fixes the problem. But the same thing happens next time I create an account. This suddenly began yesterday, before we have created hundreds of accounts without problems. 0 -
In this instance running upcp helped the user but if you're experiencing this you may want to check the userdata files to ensure they are populated correctly at /var/cpanel/userdata/$user/
If it's happening every time you create an account and it's able to be replicated can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved. Thanks!0 -
Hi I am also experiencing the same problem that started yesterday. This occur when I use WHMCS to create a hosting package. When I create an account in WHM it sets it up correctly. Apart from the missing IP on the list, the "Disk Used" also displays 0MB. When I go to cPanel it displays the ip and cPanel seems to be operating normally - I can add an email address etc. I then tried to setup an account through WHMCS to our other server and it works perfectly. In /var/cpanel/userdata/$user/ the ipaddress is displaying. 0 -
Furteher to the above - I created another package directly in WHM and suddenly the account without IP sorted itself out, It almost seems as if everything is created but not refreshed/updated? 0 -
Whether it actually solved the problem or not but the last tests all worked. On WHMCS I went to Setup > Products and services and edited the Products. I did not make any changes but just save each one. We ran a bulk pricing updater and it is possible that that caused the issue - at least for us. 0 -
Does everyone experience this issue have WHMCS? @Sam van den Berg Thanks for sharing with us what worked to resolve the issue for you. 0 -
Hi @cPanelLauren , Im having the same issue as this one. Everytime I create a new account in WHM the IP address field becomes missing. Hope you could help. Thanks! 0
Please sign in to leave a comment.
Comments
36 comments