Version 1.9.1 shows an error when using File Manager

I am getting Unknown Error when I load the File Manager
It was working before the new update

Same here. I found the following error in the logs:

2025/02/04 08:46:10 [error] 849#0: *79 FastCGI sent in stderr: "PHP message: PHP Warning:  ini_set(): Session ini settings cannot be changed when a session is active in /usr/local/hestia/web/fm/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 53" while reading response header from upstream, client: 212.40.83.34, server: _, request: "GET /fm/ HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "cp.liby.hu:2083", referrer: "https://cp.liby.hu:2083/list/web/"
2025/02/04 08:46:10 [error] 849#0: *79 FastCGI sent in stderr: "PHP message: PHP Warning:  ini_set(): Session ini settings cannot be changed when a session is active in /usr/local/hestia/web/fm/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 53" while reading response header from upstream, client: 212.40.83.34, server: _, request: "GET /fm/?r=/getconfig HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "cp.liby.hu:2083", referrer: "https://cp.liby.hu:2083/fm/"
2025/02/04 08:46:10 [error] 849#0: *79 FastCGI sent in stderr: "PHP message: PHP Warning:  ini_set(): Session ini settings cannot be changed when a session is active in /usr/local/hestia/web/fm/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 53" while reading response header from upstream, client: 212.40.83.34, server: _, request: "GET /fm/?r=/getuser HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "cp.liby.hu:2083", referrer: "https://cp.liby.hu:2083/fm/"
2025/02/04 08:46:10 [error] 849#0: *79 FastCGI sent in stderr: "PHP message: PHP Warning:  ini_set(): Session ini settings cannot be changed when a session is active in /usr/local/hestia/web/fm/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 53; PHP message: PHP Warning:  file_get_contents(/home/Liby/.ssh/hst-filemanager-key): Failed to open stream: Permission denied in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php on line 311; PHP message: PHP Fatal error:  Uncaught League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: Liby, 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(266): League\Flysyst" while reading response header from upstream, client: 212.40.83.34, server: _, request: "POST /fm/?r=/getdir HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "cp.liby.hu:2083", referrer: "https://cp.liby.hu:2083/fm/"
2025/02/04 08:46:10 [error] 849#0: *79 FastCGI sent in stderr: "PHP message: PHP Warning:  ini_set(): Session ini settings cannot be changed when a session is active in /usr/local/hestia/web/fm/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 53" while reading response header from upstream, client: 212.40.83.34, server: _, request: "GET /fm/?r=/getuser HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "cp.liby.hu:2083", referrer: "https://cp.liby.hu:2083/fm/"

same

Same issue here too

Same issue

same issue too since the 1.9.0 update

Sooo after a restart I got a new error message

2025/02/04 11:41:50 [error] 849#0: *168 FastCGI sent in stderr: "PHP message: PHP Warning:  ini_set(): Session ini settings cannot be changed when a session is active in /usr/local/hestia/web/fm/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 53; PHP message: PHP Warning:  file_get_contents(/home/Liby/.ssh/hst-filemanager-key): Failed to open stream: Permission denied in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php on line 311; PHP message: PHP Fatal error:  Uncaught League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: Liby, host: 127.0.0.1 in /usr/local/hestia/web/fm/vendor/league/flysystem-sftp/src/SftpAdapter.php:244

it seems, that this file /home/Liby/.ssh/hst-filemanager-key is owned by admin:admin

-rw-------   1 admin admin 1044 Nov 27  2022 hst-filemanager-key

and change it to hestiaweb:hestiaweb solved the problem for me.

1 Like

does a user rebuild work to fix the issue?
edit: tried v-rebuild-users didn’t work

No, but it seems that if you delete the file solves the problem as well. It recreates the key on the first attempt.

No, but it seems that if you delete the file solves the problem as well. It recreates the key on the first attempt.

Nice that works, maybe mark it as solution.

2 Likes

the issue has been fixed with the command :

rm /home/*/.ssh/hst-filemanager-key

Source : [Bug] After HestiaCP's automatic update to 1.9.1, File Manager shows Unknown Error · Issue #4759 · hestiacp/hestiacp · GitHub