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!

Login authentication failed creating account

Discussion in 'General Discussion' started by Ricardo Lobo, May 30, 2019.

  1. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello, I could not find someone with the same problem. So I decided to open this post.

    I have the following scenario:

    - The client inserts a domain into the system;
    - The account is created in cPanel;
    - The system copies some files from another account on the server, and via FTP pastes the files into the /public_html/ folder of the created account.

    == I have the error log below, even when the script works 100%. ==


    == This is the line that makes the connection: ==

    I have already done several procedures on the server, based on similar problems and could not resolve.

    Can anyone help?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,948
    Likes Received:
    485
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This sort of thing, copying files to a newly created account, is done using the skeleton directory in the Resellers, or root's cpanel3-skeldirectory. You can read more about that, here:
    Skeleton Directory - Version 74 Documentation - cPanel Documentation

    I would think that your script does not have permissions to write to another accounts directory structure.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I have a question. If the script does not have the permission, why does it work 100% on some occasions?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,948
    Likes Received:
    485
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I can't answer that. I can only tell you that you probably shouldn't need a script to do something that's already built into cPanel.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    I use this function mentioned by you in another dedicated where all clients use the same type of platform and works well.

    But in the situation I'm facing with the script, it's different! Not all will receive the files that the script should copy to the / public_html / folder. Understood?

    I use this script in another dedicated one and it works perfectly, running 100% without any errors.

    Strange, I get an error log even when the script works.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,948
    Likes Received:
    485
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm unable to assist you with your custom script, my apologies.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Ricardo Lobo,

    Can you share any error messages output to /var/log/messages at the date/time the account is created?

    Thank you.
     
  8. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    I have the following log:


    If I repeat the same function 2 times, it works:

     
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Ricardo Lobo,

    It's possible that cPHulk is blocking some of the FTP login attempts. Do you notice any output to /usr/local/cpanel/logs/cphulkd.log at the time of the FTP authentication failures?

    Thank you.
     
  10. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    Looks like it's not registering, see the date!

     
  11. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi

    Actually cphulk is disabled.
     
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Ricardo Lobo,

    Can you submit a support ticket so we can take a closer look at your system to see if there are any obvious reasons the FTP login attempts are failing? You can post the ticket number here once it's opened and I'll link this thread to it.

    Thank you.
     
  13. Ricardo Lobo

    Ricardo Lobo Member

    Joined:
    Oct 11, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    Your Support Request ID is: 12501435

    Sincerely
    Ricardo Lobo
     
    cPanelMichael likes this.
  14. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, here's a summary of the response sent by one of our Technical Analysts:

    Thank you.
     
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