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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED No Special FTP Accounts - Shows Error

Discussion in 'General Discussion' started by ekhoo74, Jan 30, 2018.

Tags:
  1. ekhoo74

    ekhoo74 Registered

    Joined:
    Jan 5, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kuala Lumpur Malaysia
    cPanel Access Level:
    Reseller Owner
    It happens to only one of my cpanel accounts. Sync FTP passwords doesn't seem to fix the issue. Changed the Account password several times and resynced but no show.

    It shows unknown error.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Your access level shows as "Reseller Owner". Do you have root access to this server? If so, please let us know the output you see in /usr/local/cpanel/logs/error_log when this happens. Otherwise, please report this to your web hosting provider so they can take a closer look.

    Thank you.
     
  3. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    I'm having the same problem.

    pic001.jpg

    Here is the latest error_log which will hopefully show where the issue is:

    /usr/local/cpanel/logs/error_log

    Code:
    [2018-03-26 06:33:42 -0700] warn [uapi] safelock: waited for lock (/home/southbay/etc/ftpquota.lock) 90 times at /usr/local/cpanel/Cpanel/SafeFile.pm line 369.
    	Cpanel::SafeFile::_safelock("/home/southbay/etc/ftpquota") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 546
    	Cpanel::SafeFile::_safe_open(GLOB(0x3130548), "<", "/home/southbay/etc/ftpquota", CODE(0x1531960), "safeopen") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 107
    	Cpanel::SafeFile::safeopen(GLOB(0x3130548), "<", "/home/southbay/etc/ftpquota") called at /usr/local/cpanel/Cpanel/API/Ftp.pm line 917
    	Cpanel::API::Ftp::_fullftplist() called at /usr/local/cpanel/Cpanel/API/Ftp.pm line 94
    	Cpanel::API::Ftp::list_ftp_with_disk(Cpanel::Args=HASH(0x312e198), Cpanel::Result=HASH(0x31047c8)) called at /usr/local/cpanel/Cpanel/API.pm line 276
    	Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 348
    	eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 348
    	Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x31047c8), CODE(0x31e0730)) called at /usr/local/cpanel/Cpanel/API.pm line 276
    	Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x312e198), Cpanel::Result=HASH(0x31047c8), "Ftp", "list_ftp_with_disk") called at /usr/local/cpanel/Cpanel/API.pm line 139
    	Cpanel::API::execute("Ftp", "list_ftp_with_disk", HASH(0x3101df0)) called at /usr/local/cpanel/Cpanel/API.pm line 547
    	Cpanel::API::run_api_mode(HASH(0x3101df0)) called at uapi.pl line 266
    	main::script() called at uapi.pl line 85
    warn [uapi] safelock: waited for lock (/home/southbay/etc/ftpquota.lock) 90 times
    ==> cpsrvd 11.68.0.33 started
    ==> cpsrvd: loading security policy....Done
    ==> cpsrvd: Setting up SSL support ... Done
    ==> cpsrvd: transferred port bindings
    ==> cpsrvd: bound to ports
    
    Thank you.
     
    #3 AndyX, Mar 26, 2018
    Last edited: Mar 26, 2018
  4. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    Looking at the error_log I checked the file access properties and seam to be okay.

    pic002.jpg
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @AndyX,

    Can you verify the /home/$username/etc/ directory exists for the affected account?

    Thank you.
     
  6. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    Hi Michael,

    Thanks for checking.

    No the /home/$username/etc/ directory does not exist.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    That's a required directory that includes information about FTP and email accounts. You'll need to restore the directory from a backup of the account if one exists with the missing directory. Otherwise, you'll need to consider backing up the existing data of the account, and then terminating/recreating the account to repopulate the directory. You'll also need to re-add any existing email or FTP accounts.

    Thank you.
     
  8. AndyX

    AndyX Active Member

    Joined:
    Sep 25, 2015
    Messages:
    35
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Los Altos, CA
    cPanel Access Level:
    Website Owner
    I went ahead and opened a ticket (cPanel customer portal) and the issue was quickly fixed in less than 2 hours. Turned out to that somehow the etc/ was moved to public_html/ directory. I'm very impressed with the ticket system here at cPanel.
     
    cPanelMichael and Infopro like this.
Loading...

Share This Page