Good Night every1.
I’ve already searched for this topic on the forum and outside and I’ve tried all the options that were presented.
But in resume after I’ve restore my VPS to the latest backup ( after I mess with some stuff and didnt work ) I’m facing the Unknown Error on the FIle Manager.
I’m sharing the log to see if it make sence to any PRO here ?
I’m a newbie so for even after opening the files, I dont understand the problem …
root@hestiacp:~# tail -f -s0.1 /var/log/hestia/nginx-error.log
2023/10/29 02:05:55 [error] 2220902#0: *3115 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 51.79.196.197, server: _, request: "POST /debugger/configs.php HTTP/1.1", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "143.42.27.180:8083"
2023/10/29 02:05:56 [error] 2220902#0: *3117 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 51.79.196.197, server: _, request: "POST /configurations/debug.php HTTP/1.1", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "143.42.27.180:8083"
2023/10/29 18:43:54 [error] 1300#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught League\Flysystem\Sftp\InvalidRootException: Root is invalid or does not exist: / in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php:279
Stack trace:
#0 /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php(208): League\Flysystem\Sftp\SftpAdapter->setConnectionRoot()
#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(199): League\Flysystem\Files" while reading response header from upstream, client: 81.115.82.240, server: _, request: "POST /fm/?r=/getdir HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestiacp.example.com:8083", referrer: "https://hestiacp.example.com:8083/fm/"
ls -lh /etc/ssh/sshd_config
-rw-r–r-- 1 root root 3.4K Oct 24 16:15 /etc/ssh/sshd_config ls -lh /etc/ssh/sshd_config.d/
total 0
grep -vE '^#|^
``` /etc/ssh/sshd_config
Include /etc/ssh/sshd_config.d/*.conf
LoginGraceTime 1m
PermitRootLogin yes
PasswordAuthentication yes
PermitEmptyPasswords no
KbdInteractiveAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
DebianBanner no
AcceptEnv LANG LC_*
Subsystem sftp internal-sftp
Match User sftp_dummy99,admin,dev,anasilva,waves4life,waves4life_customerFTP,admin_scp,waves4life_w4l,waves4life_man
ChrootDirectory %h
X11Forwarding no
AllowTCPForwarding no
ForceCommand internal-sftp
How do you guys come with all this codes ahahhaha ?
Can be something related to SSL ?
Again the only thing I did was restoring the backup of today morning ( and everything was working without any issue this morning )
hestia-php.sock:", host: "hestiacp.cenasuteis.com:8083", referrer: "https://hestiacp.cenasuteis.com:8083/fm/"
2023/10/29 21:33:54 [error] 1300#0: *179 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: anasilva, 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(199): League\Fly" while reading response header from upstream, client: 89.115.89.243, server: _, request: "POST /fm/?r=/getdir HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "hestiacp.cenasuteis.com:8083", referrer: "https://hestiacp.cenasuteis.com:8083/fm/"
I just tried the other users is not working also, but for waves4life was working a moment ago.
So i probably did something wrong here…
If you think its better for me to rollback the backup I can do it.
This is correct ? or the last line should not be changed to the userId ?
chmod 755 /home/anasilva
setfacl -m “u:anasilva:r-x” “/home/anasilva”
setfacl -m “g:hestia-users:—” “/home/anasilva”