Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Creating accounts slow on new server

Discussion in 'General Discussion' started by tomsie1000, Jul 9, 2018 at 6:02 AM.

  1. tomsie1000

    tomsie1000 Registered

    Joined:
    Monday
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    GB
    cPanel Access Level:
    Root Administrator
    Hello all,

    I work for as a sysadmin at a University and am in the process of building a cPanel instance on CentOS 7 to host students' coursework.

    Since setting up the system, I have noticed creating accounts is seemingly quite slow, and it looks like something is waiting for a response and timing out, but I'm not seeing any errors.. We've done this previously on CentOS 6 and had no issues..

    I've tried via the JSON api, as well as the UI and at the cli - the script always pauses at 'Validating Username......Done' for approx 2 minutes.. This delay also happens when you park a domain for some reason, so I'm feeling like it could be DNS related. DNS is disabled on this server as we have DNS servers already and no need for accounts to manage their own zones.

    Running the 'wwwacct' script directly behind 'time' shows the following:

    Code:
    # time ./wwwacct somesite.com someuser passwrd0101
    +===================================+
    | New Account Info                  |
    +===================================+
    | Domain: somesite.com
    | UserName: someuser
    | PassWord: passwrd0101
    +===================================+
    
    This ok? y
    Checking input data...Validating Username......Done
    ***2m pause here***
    Validating IP......Done
    Validating Contact Email......Done
    ...Done
    Validating system setup......Done
    Checking for database conflicts......Done
    WWWAcct 12.6.0 (c) 2018 cPanel, Inc.......Done
    Running pre creation script (/usr/local/cpanel/scripts/prewwwacct)......Done
    Adding User......Done
    Adding Entries to userdata......Done
    Setting up Mail & Local Domains......Done
    Configuring DNS......Done
    Verifying MX Records and Setting up Databases......Done
    Setting up Proxy Subdomains......Done
    Updating Authentication Databases......Done
    Adding Entries to httpd.conf......Done
    Setting passwords......Done
    Updating the userdata cache......Done
    Setting up Horde database in the background.......Done
    Creating bandwidth datastore......Done
    Updating the dedicated IP address usage cache......Done
    Generating and installing DKIM keys......Done
    Enabling Apache SpamAssassin™......Done
    Sending Account Information......Done
    Running post creation scripts (/usr/local/cpanel/scripts/legacypostwwwacct, /usr/local/cpanel/scripts/postwwwacct, /usr/local/cpanel/scripts/postwwwacctuser)......Done
    Setting up Domain Pointers......Done
    Setting Reseller Privs......Done
    Account Creation Complete!!!......Done
    Account Creation Ok
    Dns Zone check is enabled.
    
    
    +===================================+
    | New Account Info                  |
    +===================================+
    | Domain: somesite.com
    | Ip: xxx.xxx.xxx.xxx (n)
    | HasCgi: y
    | UserName: someuser
    | PassWord: passwrd0101
    | CpanelMod: paper_lantern
    | HomeRoot: /cpanel-sites
    | Quota: 0 bytes
    | NameServer1: xxx.ac.uk
    | NameServer2: xxx.ac.uk
    | NameServer3:
    | NameServer4:
    | Contact Email:
    | Package: default
    | Feature List: default
    | Language: en
    +===================================+
    Custom Account Data Provided: no
    Adding Shell Access (y)
    Successlocaldomains...valiases ...vdomainaliases ...vfilters ...Zone somesite.com has been successfully added
    Reconfiguring Mail Routing:
    LOCAL MAIL EXCHANGER: This server will serve as a primary mail exchanger for somesite.com's mail.:
     This configuration has been manually selected.
    
    nameserver: reload skipped on [serverhostname] (nameserver disabled)
    wwwacct creation finished
    Account Creation Ok
    
    real    2m11.066s
    user    0m0.504s
    sys     0m0.162s
    
    Not a huge issue but it does slow down account creation when we provision new users..

    Should also note that CSF is installed and configured, however disabling it complete makes no difference to these times, so I'm fairly sure it's not a misconfigured firewall.

    Appreciate any tips/thoughts/etc. as I'd like to get that time down a bit if possible..

    Cheers

    Tom
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,760
    Likes Received:
    131
    Trophy Points:
    118
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @tomsie1000

    Is the server by chance using an NFS mount somewhere? If you're unsure running something like

    Code:
    cat /etc/fstab
    or

    Code:
     cat /proc/mounts
    Would answer that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice