Getting "Unknown error" On HestiaCP File Manager

Please help me resolve it.

Show the output of these commands:

curl -fsSLm30 https://7j.gg/hcpver | bash -s --
tail -n5 /var/log/hestia/nginx-error.log

Please, it’s a pain to read logs in an screenshot and that is cutting the entire output. Copy/paste the output here, select it and click on button </> to format the text.

root@panel:~# curl -fsSLm30 htps://7j.gg/hcpver | bash -s –
tail -n5 /var/log/hestia/nginx-error.log
Software Version


OS            Ubuntu 22.04.5 LTS
Hestia                     1.9.6
Hestia-nginx              1.30.2
Hestia-php                8.4.21
FileGator                 7.14.3
Nginx                     1.18.0
Apache2                   2.4.68
PHP8.4                    8.4.22
PHP8.3                    8.3.31
PHP8.2                    8.2.31
PHP8.1                    8.1.34
PHP8.0                    8.0.30
PHP7.3                    7.3.33
PHP7.2                    7.2.34
PHP7.1                    7.1.33
PHP7.0                    7.0.33
PHP5.6                    5.6.40
Awstats                      7.8
Exim4                       4.95
Dovecot                   2.3.16
Spamassassin               3.4.6
Clamav                     1.5.3
Roundcube                 1.6.16
Vsftpd                     3.0.5
Bind9                    9.18.39
Mariadb                  11.4.12
phpMyAdmin                 5.2.3
Fail2ban                  0.11.2



#1 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(650): League\\Flysystem\\Sftp\\SftpAdapter->connect()
#2 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(360): League\\Flysystem\\Adapter\\AbstractFtpAdapter->getConnection()
#3 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(338): League\\Flysystem\\Sftp\\SftpAdapter->listDirectoryContents()
#4 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Filesystem.php(272): League\\Flysystem\\Adapter\\AbstractFtpAdapter->listContents()
#5 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(276): League\\Flysystem\\Filesystem->listContents" while reading response header from upstream, client: 182.184.61.245, server: \_, request: "POST /fm/?r=/getdir HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "panel.webifypakistan.com:8083", referrer: "htps://panel.webifypakistan.com:8083/fm/"
root@panel:\~#

Apologies for that

Need more lines of the log:

tail -n10 /var/log/hestia/nginx-error.log
root@panel:~# tail -n10 /var/log/hestia/nginx-error.log
#4 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Filesystem.php(272): League\Flysystem\Adapter\AbstractFtpAdapter->listContents()
#5 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(276): League\Flysystem\Filesystem->listContents" while reading response header from upstream, client: 182.184.61.245, server: _, request: “POST /fm/?r=/getdir HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “panel.webifypakistan.com:8083”, referrer: “https://panel.webifypakistan.com:8083/fm/”
2026/07/15 11:23:10 [error] 809#0: *3518 FastCGI sent in stderr: “PHP message: League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: Saad, host: 127.0.0.1 in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php:244
Stack trace:
#0 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(207): League\Flysystem\Sftp\SftpAdapter->login()
#1 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(650): League\Flysystem\Sftp\SftpAdapter->connect()
#2 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(360): League\Flysystem\Adapter\AbstractFtpAdapter->getConnection()
#3 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(338): League\Flysystem\Sftp\SftpAdapter->listDirectoryContents()
#4 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Filesystem.php(272): League\Flysystem\Adapter\AbstractFtpAdapter->listContents()
#5 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(276): League\Flysystem\Filesystem->listContents” while reading response header from upstream, client: 182.184.61.245, server: _, request: “POST /fm/?r=/getdir HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “panel.webifypakistan.com:8083”, referrer: “https://panel.webifypakistan.com:8083/fm/”
root@panel:~#


Show these outputs;

v-list-user Saad json
grep -Ev '^#|^$' /etc/ssh/sshd_config
root@panel:~# v-list-user Saad json
grep -Ev ‘^#|^$’ /etc/ssh/sshd_config
{
“Saad”: {
“NAME”: “System Administrator”,
“PACKAGE”: “default”,
“WEB_TEMPLATE”: “default”,
“BACKEND_TEMPLATE”: “default”,
“PROXY_TEMPLATE”: “default”,
“DNS_TEMPLATE”: “default”,
“WEB_DOMAINS”: “unlimited”,
“WEB_ALIASES”: “unlimited”,
“DNS_DOMAINS”: “unlimited”,
“DNS_RECORDS”: “unlimited”,
“MAIL_DOMAINS”: “unlimited”,
“MAIL_ACCOUNTS”: “unlimited”,
“DATABASES”: “unlimited”,
“CRON_JOBS”: “unlimited”,
“DISK_QUOTA”: “unlimited”,
“BANDWIDTH”: “unlimited”,
“HOME”: “/home/Saad”,
“NS”: “ns1.92.90,ns2.92.90”,
“SHELL”: “bash”,
“BACKUPS”: “1”,
“CONTACT”: “[email protected]”,
“CRON_REPORTS”: “yes”,
“RKEY”: “removed”,
“TWOFA”: “”,
“QRCODE”: “”,
“ROLE”: “admin”,
“SUSPENDED”: “no”,
“SUSPENDED_USERS”: “1”,
“SUSPENDED_WEB”: “0”,
“SUSPENDED_DNS”: “0”,
“SUSPENDED_MAIL”: “0”,
“SUSPENDED_DB”: “0”,
“SUSPENDED_CRON”: “0”,
“IP_AVAIL”: “1”,
“IP_OWNED”: “1”,
“U_USERS”: “19”,
“U_DISK”: “1815”,
“U_DISK_DIRS”: “171”,
“U_DISK_WEB”: “1483”,
“U_DISK_MAIL”: “36”,
“U_DISK_DB”: “125”,
“U_BANDWIDTH”: “746”,
“U_WEB_DOMAINS”: “39”,
“U_WEB_SSL”: “37”,
“U_WEB_ALIASES”: “2”,
“U_DNS_DOMAINS”: “1”,
“U_DNS_RECORDS”: “18”,
“U_MAIL_DOMAINS”: “1”,
“U_MAIL_DKIM”: “1”,
“U_MAIL_ACCOUNTS”: “11”,
“U_DATABASES”: “36”,
“U_CRON_JOBS”: “6”,
“U_BACKUPS”: “1”,
“BACKUPS_INCREMENTAL”: “no”,
“LANGUAGE”: “en”,
“THEME”: “dark”,
“NOTIFICATIONS”: “no”,
“PREF_UI_SORT”: “name”,
“LOGIN_DISABLED”: “no”,
“LOGIN_USE_IPLIST”: “no”,
“LOGIN_ALLOW_IPS”: “”,
“PHPCLI”: “”,
“TIME”: “14:25:51”,
“DATE”: “2025-03-14”
}
}

Include /etc/ssh/sshd_config.d/.conf
Port 22022
LoginGraceTime 1m
PermitRootLogin yes
PasswordAuthentication yes
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
DebianBanner no
AcceptEnv LANG LC_
Subsystem sftp internal-sftp

Match User sftp_dummy99,Irfan_thefrozenfarms,Irfan_thefrozenfarmsWeb
ChrootDirectory /srv/jail/%u
X11Forwarding no
AllowTCPForwarding no
ForceCommand internal-sftp -d /home/%u

Run this command and try again:

v-add-user-sftp-jail Saad

Same error

Show again these outputs:

tail -n10 /var/log/hestia/nginx-error.log
grep -Ev '^#|^$' /etc/ssh/sshd_config
root@panel:~# tail -n10 /var/log/hestia/nginx-error.log
grep -Ev ‘^#|^$’ /etc/ssh/sshd_config
#4 {main}
thrown in /usr/local/hestia/web/fm/vendor/hestiacp/phpquoteshellarg/src/Hestiacp/quoteshellarg/quoteshellarg.php on line 14" while reading response header from upstream, client: 182.188.38.48, server: , request: “GET /fm/?r=/getuser HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “panel.webifypakistan.com:8083”, referrer: “https://panel.webifypakistan.com:8083/fm/”
2026/07/15 11:46:02 [error] 809#0: 3549 FastCGI sent in stderr: “PHP message: League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: Saad, host: 127.0.0.1 in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php:244
Stack trace:
#0 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(207): League\Flysystem\Sftp\SftpAdapter->login()
#1 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(650): League\Flysystem\Sftp\SftpAdapter->connect()
#2 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(360): League\Flysystem\Adapter\AbstractFtpAdapter->getConnection()
#3 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Adapter/AbstractFtpAdapter.php(338): League\Flysystem\Sftp\SftpAdapter->listDirectoryContents()
#4 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Filesystem.php(272): League\Flysystem\Adapter\AbstractFtpAdapter->listContents()
#5 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(276): League\Flysystem\Filesystem->listContents” while reading response header from upstream, client: 182.188.38.48, server: _, request: “POST /fm/?r=/getdir HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “panel.webifypakistan.com:8083”, referrer: “https://panel.webifypakistan.com:8083/fm/”
Include /etc/ssh/sshd_config.d/.conf
Port 22022
LoginGraceTime 1m
PermitRootLogin yes
PasswordAuthentication yes
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
DebianBanner no
AcceptEnv LANG LC*
Subsystem sftp internal-sftp

Match User sftp_dummy99,Irfan_thefrozenfarms,Irfan_thefrozenfarmsWeb
ChrootDirectory /srv/jail/%u
X11Forwarding no
AllowTCPForwarding no
ForceCommand internal-sftp -d /home/%u
root@panel:~#

Saad user has not been added, just a test. Edit /etc/ssh/sshd_config manually, and add Saad to MatchUser list:

Match User sftp_dummy99,Irfan_thefrozenfarms,Irfan_thefrozenfarmsWeb,Saad

Save the file and execute:

systemctl restart ssh

And try again.

Same error boss

I need the log output

root@panel:~# systemctl restart ssh
root@panel:~# tail -n10 /var/log/hestia/nginx-error.log
grep -Ev ‘^#|^$’ /etc/ssh/sshd_config
#4 /usr/local/hestia/web/fm/vendor/league/flysystem/src/Filesystem.php(272): League\Flysystem\Adapter\AbstractFtpAdapter->listContents()
#5 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(276): League\Flysystem\Filesystem->listContents" while reading response header from upstream, client: 182.184.61.245, server: , request: “POST /fm/?r=/getdir HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “panel.webifypakistan.com:8083”, referrer: “https://panel.webifypakistan.com:8083/fm/”
2026/07/15 11:58:57 [error] 809#0: 3567 FastCGI sent in stderr: “PHP message: PHP Warning:  Undefined array key “LAST_ACTIVITY” in /usr/local/hestia/web/fm/configuration.php on line 147; PHP message: PHP Warning:  Undefined array key “user” in /usr/local/hestia/web/fm/configuration.php on line 148; PHP message: PHP Fatal error:  Uncaught TypeError: Hestiacp\quoteshellarg\quoteshellarg(): Argument #1 ($arg) must be of type string, null given, called in /usr/local/hestia/web/fm/configuration.php on line 148 and defined in /usr/local/hestia/web/fm/vendor/hestiacp/phpquoteshellarg/src/Hestiacp/quoteshellarg/quoteshellarg.php:14
Stack trace:
#0 /usr/local/hestia/web/fm/configuration.php(148): Hestiacp\quoteshellarg\quoteshellarg()
#1 /usr/local/hestia/web/fm/backend/Services/Storage/Filesystem.php(33): {closure:/usr/local/hestia/web/fm/configuration.php:145}()
#2 /usr/local/hestia/web/fm/backend/App.php(34): Filegator\Services\Storage\Filesystem->init()
#3 /usr/local/hestia/web/fm/dist/index.php(50): Filegator\App->__construct()
#4 {main}
thrown in /usr/local/hestia/web/fm/vendor/hestiacp/phpquoteshellarg/src/Hestiacp/quoteshellarg/quoteshellarg.php on line 14” while reading response header from upstream, client: 182.184.61.245, server: _, request: “GET /fm/?r=/getuser HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “panel.webifypakistan.com:8083”, referrer: “https://panel.webifypakistan.com:8083/fm/”
Include /etc/ssh/sshd_config.d/.conf
Port 22022
LoginGraceTime 1m
PermitRootLogin yes
PasswordAuthentication yes
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
DebianBanner no
AcceptEnv LANG LC*
Subsystem sftp internal-sftp

Match User sftp_dummy99,Irfan_thefrozenfarms,Irfan_thefrozenfarmsWeb,Saad
ChrootDirectory /srv/jail/%u
X11Forwarding no
AllowTCPForwarding no
ForceCommand internal-sftp -d /home/%u
root@panel:~#

show this:

ls -ld /srv/jail /srv/jail/Saad

Also, log out and log in with the Saad user