The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PureFTPd and Account Creation Problem

Discussion in 'General Discussion' started by rochen, Feb 5, 2003.

  1. rochen

    rochen Active Member
    PartnerNOC

    Joined:
    Mar 5, 2002
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    After last night's CPanel update all our servers are failing to create accounts via WHM. We run PureFTP.

    The error message given is:
    &Unable to locate proftpd.conf at /scripts/wwwacct line 1312.
    Account Creation Complete!!!&

    The account doesn't get created.

    To fix this and as a work around, we have had to move all our servers back to ProFTP.

    The build is Cpanel 5.3.0-S116
     
  2. feanor

    feanor Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    836
    Likes Received:
    0
    Trophy Points:
    16
    I don't even see what the setting should be within /etc/wwwacct.conf , to switch to pureftpd- there is nothing editable (I made that word up just now) that would give a clue of what that setting should be.

    Should it be 'pureftp' all one word?
    Or 'pureftpd' ?

    DARKORB rain your wisdom down.

    Thanks
    :p
     
  3. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    exactly same problem here
     
  4. parhelic

    parhelic Well-Known Member

    Joined:
    Oct 27, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    *cough* same here
     
  5. jsnape

    jsnape Well-Known Member

    Joined:
    Mar 11, 2002
    Messages:
    174
    Likes Received:
    0
    Trophy Points:
    16
    same here. Had to switch back to ProFTP to fix it.
     
  6. Shiekron2

    Shiekron2 Active Member

    Joined:
    Apr 17, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Same here.

    Fix, fix, where is the fix?
     
  7. Tos

    Tos Member

    Joined:
    Oct 27, 2002
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Wheres the support???
    Whats the fix for this???
     
  8. diederik

    diederik Member

    Joined:
    Feb 1, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    same problem here :(
     
  9. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Grrrr... the infinite wisdom from Cpanel.. we have the same problem here as well.

    And switching back to ProFTPd is generating problems with users logging in to FTP. GRRRRR.

    Ode to a CPanel.. there's no winning.
     
  10. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    I think i may know what it is (and it may have nothing to do with pureftpd).. i'll keep you all posted
     
  11. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    it seems that this is a hard code error with CPanel account creation file. THIS IS NOT 100% ACCURATE, just my best guess. But it seems that when the geniouses at DarkORB updated CPanel, they hardcoded ProFTPd without leaving any room for pure-FTPd.

    For example... in the account creation file...

    ----------------------------------------------------
    $logdir = &domlogs&;
    $ncftpdconf = &/usr/local/etc/ncftpd/conf/virtual.cf&;
    $proftpddir = &/etc/proftpd&; // &---
    $proftpdconf = find_proftpconf(); // &---
    $nameddir = &/var/named&;
    $namedboot = &/etc/named.boot&;
    $namedconf = &/etc/named.conf&;
    $httpconf = find_httpconf();
    $domainalias = &/etc/domainalias&;
    $sendmailcw = &/etc/sendmail.cw&;
    $logout = &/var/log/wwwacct&;
    $cpaneludir = &/var/cpanel/users&;
    ----------------------------------------------------

    and then that find_proftpconf then calls:

    ----------------------------------------------------
    sub find_proftpconf {
    my(@LOC,$loc);
    @LOC = (&/etc/proftpd.conf&,
    &/usr/local/etc/proftpd.conf&);
    foreach $loc (@LOC) {
    if (-e $loc) { return $loc; }
    }
    die &Unable to locate proftpd.conf&;
    return &&;
    }
    ----------------------------------------------------


    Hence would explain the main error. The main point being that as I have the server in pureFTPd mode, it STILL is seeking for proFTPd (and NOT looking for pure-ftpd). WHEN you convert to pure-ftpd, the conversion lets you know EXACTLY what it did with proftpd:


    ----------------------------------------------------

    warning: /etc/proftpd.conf saved as /etc/proftpd.conf.rpmsave

    ----------------------------------------------------

    I am looking in a way to resolve this and will post if i find anything.
     
  12. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    ****USE AT YOUR OWN RISK ****

    Our resolve to problem (not official): voyage to file &/scripts/wwwacct&


    First, convert your FTP TWEAK back to PURE-FTPd.


    Then, edit the following line of code


    code:----------------------------------------------------------------------------

    sub find_proftpconf {
    my(@LOC,$loc);
    @LOC = (&/etc/proftpd.conf&,
    &/usr/local/etc/proftpd.conf&);
    foreach $loc (@LOC) {
    if (-e $loc) { return $loc; }
    }
    die &Unable to locate proftpd.conf&;
    return &&;
    }

    --------------------------------------------------------------------------------


    to


    code:--------------------------------------------------------------------------------

    sub find_proftpconf {
    my(@LOC,$loc);
    @LOC = (&/etc/pure-ftpd.conf&,
    &/usr/local/etc/proftpd.conf&);
    foreach $loc (@LOC) {
    if (-e $loc) { return $loc; }
    }
    die &Unable to locate proftpd.conf&;
    return &&;
    }

    --------------------------------------------------------------------------------
    (the only difference is proftpd.conf changes to pure-ftpd.conf

    And then, restart FTP Server (just for kicks).


    EcpHosting is NOT responsible for any problems this may create or for any updates that DarkORB may create. We reserve the exlusive right to be wrong. However, this was tested and worked in all of our tests (as well with old accounts). All this update does is point to the pure-ftpd file. It's just a shot. It still creates all of the FTP db files in /etc/proftpd/ as it normally should, and allows WHM account creation.


    **** UPDATE: We were graciously provided with an S116 wwwacct file, and as S116 is without this flaw, the S116 wwwacct file also looks 'hard coded', so the 'hard coded' explanation doesn't line up. It may be something else, but I did not feel like thouroughly examining each line of code line by line. I also noticed in the S116 version that the file proftpd.conf is also missing from /etc/ (as that was my other assumption). This leads me to believe that I am not a excellent detective. Oh well.

    SO, I leave just requesting that DarkORB update this file on your next bach (to remove this edit with your fix). I do apologize for getting my nose into this, but it's an important feature you paralyzed us with and we couldn't just wait for this fix.
     
  13. fmalekpour

    fmalekpour Well-Known Member
    PartnerNOC

    Joined:
    Dec 4, 2002
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    6
    we had same problem and we solve it by changing some lines of wwwacct but the problem is they update backend scripts each night with their bugy scripts. Is there any CPanel guy here?

    TRY CPANEL, A NEW PROBLEM EVERY DAY, GUARANTEE
     
  14. hostcp3

    hostcp3 Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Good work EcpHosting this fix has allowed our resellers and us to signup clients.


    thankyou.
     
  15. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    UPDATE: please note that if you have nightly updates enabled, you will have to perform the above fix EVERY DAY (wahoo!)
     
  16. Shiekron2

    Shiekron2 Active Member

    Joined:
    Apr 17, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Has CPanel fixed this issue already yet?

    Thank you
     
  17. jayjive

    jayjive Registered

    Joined:
    Feb 10, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    It does not look like they fixed or have any desire too..
     
  18. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    That's not an option. They have made this an option (to change to pureftpd and they need to resolve this).
     
  19. bjarne

    bjarne Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    Easy bug to fix

    cd /etc
    touch proftpd.conf
     
  20. tcwebguy

    tcwebguy Active Member

    Joined:
    Sep 28, 2001
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    My Non-tchnical fix

    Because I don't really understand the full ramifications of doing the things suggested here, I have resorted to a slightly less technical work around:

    1. Switch to Pro-FTP
    2. Create the account
    3. Switch back to Pure-FTP

    Kind of a pain, but I feel okay about it until CPanel fixes the issue...

    :)
     
Loading...

Share This Page