cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,509
567
273
cPanel Access Level
Root Administrator
Hey there! We have an API command that would give you this information:


If you look at the right sidebar you'll see the following SSH example:

Code:
uapi --user=username Ftp list_ftp
Just replace the "username" portion with the specific cPanel user you want to check and that will give you all the FTP accounts on the domain.
 

smithveg

Registered
Feb 2, 2021
3
0
1
Malaysia
cPanel Access Level
Root Administrator
The result return with a lot of error as below, this is a dedicated server.

Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
“/usr/local/cpanel/uapi” exited with status 1 (EPERM). at bin/apitool.pl line 261.
 

smithveg

Registered
Feb 2, 2021
3
0
1
Malaysia
cPanel Access Level
Root Administrator
Thank for your help, i'm new and try to search for the solution.

Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
2021-02-03 01:43:55   52 (ERROR): Core cpanel-perl modules have been found to be corrupt. Attempting to correct this.
2021-02-03 01:43:55  533 ( INFO): CentOS 7 (Linux) detected!
2021-02-03 01:43:55  428 ( INFO): Downloading GPG public key, cPanelPublicKey.asc
2021-02-03 01:43:55  303 (DEBUG):   Retrieving https://securedownloads.cpanel.net/cPanelPublicKey.asc
JSON::XS is missing the no_set_utf8 flag at /usr/local/cpanel/Cpanel/JSON.pm line 172.
2021-02-03 01:43:57  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/rpm.sha512.asc
2021-02-03 01:43:57  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/rpm.sha512
2021-02-03 01:44:00  350 ( INFO): FILE - /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512
2021-02-03 01:44:00  351 ( INFO): SIG  - /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512.asc
2021-02-03 01:44:00  352 ( INFO): URL  - /RPM/11.86/centos/7/x86_64/rpm.sha512
2021-02-03 01:44:00  397 ( INFO): Valid signature for /usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512 (/usr/local/cpanel/tmp/rpm_downloads/rpm.11.86.sha512)
2021-02-03 01:44:00  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-common-sense-3.74-1.cp1186.noarch.rpm
2021-02-03 01:44:00  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-5.30.0-5.cp1186.x86_64.rpm
2021-02-03 01:44:01  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-CDB_File-0.99-1.cp1186.x86_64.rpm
2021-02-03 01:44:02  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-IO-SigGuard-0.15-1.cp1186.noarch.rpm
2021-02-03 01:44:02  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-JSON-XS-3.04-1.cp1186.x86_64.rpm
2021-02-03 01:44:03  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Compress-Raw-Lzma-2.087-1.cp1186.x86_64.rpm
2021-02-03 01:44:04  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Proc-FastSpawn-1.2-1.cp1186.x86_64.rpm
2021-02-03 01:44:05  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Try-Tiny-0.30-1.cp1186.noarch.rpm
2021-02-03 01:44:05  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Types-Serialiser-1.0-1.cp1186.noarch.rpm
2021-02-03 01:44:06  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-YAML-Syck-1.31-1.cp1186.x86_64.rpm
2021-02-03 01:44:07  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-Net-SSLeay-1.88-1.cp1186.x86_64.rpm
2021-02-03 01:44:09  303 (DEBUG):   Retrieving http://httpupdate.cpanel.net/RPM/11.86/centos/7/x86_64/cpanel-perl-530-IO-Socket-SSL-2.066-4.cp1186.noarch.rpm
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,509
567
273
cPanel Access Level
Root Administrator
Thanks for the additional details. Did the output not scroll any further than that? It looks like it was trying to fix the issue with perl on the machine, but I would expect there to be more output after that.

You could also try forcing a full update with the "/scripts/upcp --force" command if the check_cpanel_rpms command isn't fixing things for you.