Hestiacp filemanager unknown error

Hi, I have installed a hestiacp in a fresh server and i migrated my files and db from my old server(using vesta) after the migration process i can access the panel but not filemanger. When i access the filemanager it shows “Unknown Error”

I have checked the log “tail -f /var/log/hestia/nginx-error.log” it returns

2025/02/19 05:42:52 [error] 557#0: *3 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: 117.247.105.10, server: _, request: “GET /fm/?r=/getuser HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “IP:8083”, referrer: “https://IP:8083/fm/

2025/02/19 05:42:53 [error] 557#0: *3 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 Fatal error: Uncaught League\Flysystem\Sftp\ConnectionErrorException: Could not login with username: admin, 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\Flysys" while reading response header from upstream, client: 117.247.105.10, server: _, request: “POST /fm/?r=/getdir HTTP/2.0”, upstream: “fastcgi://unix:/run/hestia-php.sock:”, host: “IP:8083”, referrer: “https://IP:8083/fm/

What may be the problem and any workaround please?

@eris pls help

There is zero need to tag people. Your thread is only 2hrs old and this is called a “community support forum”. Also please have a look at similar threads over the search function and try the suggested solutions.

1 Like

Fixed the issue. No solutions provided in forum worked in my situation but some how i managed to fix the issue with chatgpt.

So what was the solution?

Since i have restored admin user from old vestacp (running ubuntu 16) after restoration i have done the below things.

Check Directory Ownership and Permissions

  1. ls -ld /home/admin

Check Permissions for File Manager:
2. sudo -u www-data ls -l /home/admin
If you see a “Permission Denied” error, it means the file manager (running as www-data) does not have the required permissions)

Fix Permissions
3. sudo setfacl -m u:www-data:rwx /home/admin

Check for Inherited Permissions
4.sudo chmod -R 755 /home/admin

Restart hestia
5. systemctl restart hestia

These are the steps i have done and now i can access the filemanager.

hestia doesn’t run under www-data user so that is incorrect…

1 Like

I dont have much coding knowledge. i’ve simply applied the solutions which chatgpt gives and it worked for me. Above mentioned are the last few solutions before that i applied so many like this so i’m not sure how the issue fixed.

please consider to not run a server on your own. ChatGPT is not a replacement for knowledge, running wild commands, without knowing what they are doing, isnt a good idea at all. Maybe it resolved the issue, but maybe it also set a realy bad permission set and opened a security hole on the system. So please consider to use either shared webhosting or get a sysadmin to help and maintain the server for you.

Facing similar issues.

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

Please help.

Warning should not affect the function it is an bug upstream

I can reproduce this error. What solution do you bring for this issue? can i get any solution? I have given the log details also.