Results 1 to 3 of 3

Thread: Error "421 Home directory not available - aborting" after addftp()

  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    2

    Default Error "421 Home directory not available - aborting" after addftp()

    Hi Guys! I have an urgent problem:

    Since June I got the "421 Home directory not available - aborting" Error in the ftp client after I created Ftp accounts with the xml-api class. For all newly created ftp accounts, I can't connect to the ftp account always the "421" error appears. Ftp accounts created before June I can connect.

    I add a ftp account like:
    PHP Code:
    $cpanel = new xmlapi($config->deebee->cpanel->hostname);
    $cpanel->set_port($config->deebee->cpanel->port);
    $cpanel->set_user($config->deebee->cpanel->username);
    $cpanel->set_password($config->deebee->cpanel->password);
    $cpanel->set_output($config->deebee->cpanel->output);

    // CPanel FTP User Settings - weitere Infos unter http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiFtp
    $options = array(
        
    'user'=>$username,
        
    'pass'=>$password,
        
    'homedir'=>$homedir,
        
    'quota'=>0
    );

    // API Call und Umwandlung in SimpleXMLElement
    $apiResultXML $cpanel->api2_query($config->deebee->cpanel->username"Ftp""addftp"$options); 
    The result is ok! The ftp account will be created and appears in the cPanel too but I can't access.
    The homedir path is /home/deebee/public_html/ftp/<dir>

    PHP Code:
      <cpanelresult>
        <
    apiversion>2</apiversion>
        <
    data>
          <
    reason>OK</reason>
          <
    result>1</result>
        </
    data>

        <
    event>
          <
    result>1</result>
        </
    event>
        <
    func>addftp</func>
        <
    module>Ftp</module>
      </
    cpanelresult

    That's strange I didn't edit my api call and then I asked the hosting provider and he say to me that he hasn't changed the server configuration. But he said cPanel may have updated to a newer version. cPanel Build is 11.30.0 (build 27).
    Fact is I need to add new ftp-accounts over the customer web application. In cPanel created ftp directories I can connect, without the "421" error. But that's not I want.

    Now I run out of ideas and I hope someone can help me ?

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    2

    Default Re: Error "421 Home directory not available - aborting" after addftp()

    I found the problem.

    For my case, the newer cPanel Version lowered the letters of the directory name but the directory name in the filesystem are not lowered. So the ftp homedir can't be found on ftp connection.

    Why does cPanel suddenly convert the letters in lower case? Is this a bug?

  3. #3
    Member MattDees's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default Re: Error "421 Home directory not available - aborting" after addftp()

    Joerg, I'm not too sure what you mean by "newer cPanel Version lowered the letters of the directory name" Do you mean the name of the directory is lower cased in some config file? if so, which?
    Last edited by cPanelDavidN; 06-11-2011 at 07:06 AM. Reason: typo
    Matt Dees

Similar Threads

  1. Add web path for "Restore a Home Directory Backup"?
    By greektranslator in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 06-05-2011, 01:35 PM
  2. CPAN build and cache directory called "no" created under /home
    By gkgcpanel in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 05-20-2011, 12:31 AM
  3. Replies: 4
    Last Post: 04-20-2011, 09:19 AM
  4. "home directory" backup = 0 bytes
    By headout in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 08-22-2009, 12:03 AM
  5. CPanel/WHM Problem: "Home directory not available"
    By intelliot in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 07-30-2004, 10:19 AM