Web Terminal - Connection error

I just wanted to test the new web terminal but I get a “Connection error.” shown - the console says

WebSocket connection to 'wss://cp.mydomain.de:8083/_shell/' failed: webTerminal.js:18 

Any further todo to get this new web terminal working?

(also tried adding a new firewall rule for port 8085)

Update 1: Ok, I see under the services that “web-terminal” is red (not started) and I can’t click the edit icon or the start icon there, nothing happens.

Update 2: In the terminal/console the # v-restart-service hestia-web-terminal command worked without any error and now the service is also green in the hestia list of services :+1:

Service is on but there is no link to the terminal anywhere/ How do you access it

1 Like

A hestia user (not admin!) has to be logged in - then this user has a new “terminal” icon right next to the file manager icon (at the top).

Have the same problem, my investigate showed that problem when accessing Hestia by domain (cp.mydomain.com:8083), but if login through 1.2.3.4:8083 terminal is working.
And this problem only on server that was upgraded from oldest version 1.8
If use fresh install web terminal works by domain.
But I not found solution.

Found Nginx Conf error, check this:
https://blog.lhl.one/artical/467.html

I have a similar problem - I unblocked the ports (although when I look at the nginx.conf service, the address is local) , set up the configuration files. When I restart the service, I have an error [20] in the log for the web terminal. When I enter the IP address x.x.x.x:8085, the browser only returns the message Upgrade Required (my system is up to date).

Domain.pl:3085 returns a problem with SSL, but this is normal because I do not have a certificate attached here.

In the Hesti panel, after entering the web terminal, I have a connection error message.

There is no need to add any rule to allow port 8085.

What did you do?

That doesn’t mean that your system must be upgraded, that means that the browser is trying to speak to the app in HTTP and the app requires WebSockets.

You should use the button >_ inside Hestia to access the web terminal. To view that icon the user must have assigned a shell like bash, jailbash, etc. all but nologin.

If i try click on terminal icon in hestia panel i got error message “connection error”

Did you check the service and the log?

systemctl status hestia-web-terminal.service --no-pager -l

The log is here /var/log/hestia/nginx-error.log

Yes, I did check the status service and is running and active.

nginx-error.logo doesn’t show log with error web-terminal.

Show the output of this command:

lsof -Pn +c0 -i:8085 -sTCP:LISTEN

That’s really strange, I’ve simulated it and can see the error in the log:

2025/06/24 10:41:07 [error] 2204#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.3, server: _, request: "GET /_shell/ HTTP/1.1", upstream: "http://[::1]:8085/_shell/", host: "h19u.lab.example.net:8083"
2025/06/24 10:41:07 [error] 2204#0: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.3, server: _, request: "GET /_shell/ HTTP/1.1", upstream: "http://127.0.0.1:8085/_shell/", host: "h19u.lab.example.net:8083"

(post deleted by author)

Thank you for the quick response.

Regarding the command lsof -Pn +c0 -i:8085 -sTCP:LISTEN, it returns:

COMMAND     PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
node    3967437 root   18u  IPv6 9511374      0t0  TCP *:8085 (LISTEN)

I’m running tail -f /var/log/hestia/nginx-error.log to view live logs, but when I click the terminal icon in Hestia CP, the error you mentioned doesn’t appear.

2025/06/24 10:23:32 [error] 2985107#0: *842 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: 60.32.43.1, server: _, request: "GET /fm/?r=/getconfig HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "example.com:38083", referrer: "https://example.com:38083/fm/"
2025/06/24 10:23:32 [error] 2985107#0: *842 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: 60.32.43.1, server: _, request: "GET /fm/?r=/getuser HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "example.com:38083", referrer: "https://example.com:38083/fm/"
2025/06/24 10:23:32 [error] 2985107#0: *842 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: 60.32.43.1, server: _, request: "POST /fm/?r=/getdir HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "example.com:38083", referrer: "https://example.com:38083/fm/"
2025/06/24 10:23:37 [error] 2985107#0: *842 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: 60.32.43.1, server: _, request: "POST /fm/?r=/logout HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "example.com:38083", referrer: "https://example.com:38083/fm/"
2025/06/24 10:23:37 [error] 2985107#0: *842 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: 60.32.43.1, server: _, request: "GET /fm/?r=/getuser HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "example.com:38083", referrer: "https://example.com:38083/fm/"
2025/06/24 10:23:38 [error] 2985107#0: *842 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: 60.32.43.1, server: _, request: "POST /fm/?r=/getdir HTTP/2.0", upstream: "fastcgi://unix:/run/hestia-php.sock:", host: "example.com:38083", referrer: "https://example.com:38083/fm/"

That’s is all - last 10 errors.

Do you access the panel using https://yourServerHostname:8083 or are you using an external proxy (CDN)?