# Terminal works fine except for one virtual server

**URL:** <https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252>\
**Category:** Virtualmin\
**Tags:** solved\
**Created:** [April 26, 2024, 12:04pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252 "2024-04-26T12:04:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [April 26, 2024, 12:04pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/1 "2024-04-26T12:04:10Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu Linux 22.04.4 |
| Webmin version | 2.111 |
| Usermin version | 2.010 |
| Virtualmin version | 7.10.0 |
| Theme version | 21.10 |
| Package updates | All installed packages are up to date |

### The background

- This is an issue on my test server so nothing mission critical.
- I have 5 or so virtual servers with some having a sub-server
- All of these domains do not resolve from the outside world. I use a combination of htaccess and DNS overriding in my pfsense box to handle the DNS.
- I am not running any type of proxy server

### the issue

- I get this error when trying to use the terminal on [example.com](http://example.com) virtual server  
 ![Failed loading terminal - WebSocket connection error](https://cdn.forum.virtualmin.com/uploads/default/original/2X/e/e93942685d8e290f9fa121ce26839ed26ef7f4e9.png)
- I login as my admin user and the terminal in virtualmin works on all of my virtual servers except the one, [example.com](http://example.com)
- I cannot login as the [example.com](http://example.com) owner and use the terminal there because the terminal was not initially enabled on the Webmin modules list
- the webmin terminal also works fine.

### things I have tried

- looking on the forum and google
- making sure webmin and virtualmin are up to date
- rebooting the server
- tried a different browser
- tried disabling/re-enabling the virtual server ([example.com](http://example.com))
- had a look through all of the logs listed in webmiin

### further information

> Webmin → System → System Logs Viewer → Webmin error log  
> /var/webmin/miniserv.error

```auto
Argument "-" isn't numeric in localtime at /usr/share/webmin/time/log_parser.pl line 17.
Argument "-" isn't numeric in localtime at /usr/share/webmin/time/log_parser.pl line 17.
[26/Apr/2024:12:27:56 +0100] [10.0.0.200] /xterm/ws-556 : Unknown websocket path
[26/Apr/2024:12:27:56 +0100] Reloading configuration
[26/Apr/2024:12:27:54 +0100] Reloading configuration
[26/Apr/2024:12:27:36 +0100] [10.0.0.200] /xterm/ws-556 : Unknown websocket path
[26/Apr/2024:12:27:35 +0100] Reloading configuration
[26/Apr/2024:12:27:34 +0100] Reloading configuration
[26/Apr/2024:12:27:32 +0100] [10.0.0.200] /xterm/ws-556 : Unknown websocket path
[26/Apr/2024:12:27:32 +0100] Reloading configuration

```

> FireFox Browser

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/5/52dd46fcad412ced473918213fdb30c68d2c78e1.png)

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/8/81751e58a0e06a3b992913fe178259ec95d72170.png)

### Question

So the issue is with the websocket, but why would all of my other terminals works, but not just this one.

Cam it be the firewall? I use the default setup of fail2ban.

If anyone can give me some pointers that would be great.

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [April 26, 2024, 12:34pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/2 "2024-04-26T12:34:34Z")

</div>

the answer was simple

Manager Virtual Server → Edit Owner Limits → Other restrictions → Allowed login type

Set this to: Email, FTP and SSH

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [April 26, 2024, 3:37pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/3 "2024-04-26T15:37:08Z")

</div>

I guess you edited a template to do that ? but who knows. Perhaps using templates for domain creation and everything else for ‘micro managing’ now sorts of makes sense ?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [April 26, 2024, 3:57pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/4 "2024-04-26T15:57:51Z")

</div>

> [@shoulders](#):
>
> the answer was simple
> 
> Manager Virtual Server → Edit Owner Limits → Other restrictions → Allowed login type

@Jamie, why don’t we completely hide the terminal link if a user doesn’t have the right shell?

---

<div class="post-metadata">

**Author:** ![shoulders](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/shoulders/32/10086_2.png) [@shoulders](https://forum.virtualmin.com/u/shoulders)\
**Post date:** [April 26, 2024, 4:15pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/5 "2024-04-26T16:15:50Z")

</div>

> why don’t we completely hide the terminal link if a user doesn’t have the right shell?

This would of helped me 😄

this might be relevant. in the server template you can set both terminal and SSH access

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/5/57381a67e568574bca24e48bd4eb91020d5ff777.png)

---

<div class="post-metadata">

**Author:** ![Jamie](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jamie/32/8589_2.png) [@Jamie](https://forum.virtualmin.com/u/Jamie)\
**Post date:** [April 26, 2024, 9:32pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/6 "2024-04-26T21:32:06Z")

</div>

> [@Ilia](#):
>
> @Jamie, why don’t we completely hide the terminal link if a user doesn’t have the right shell?

Oh we should do that! I’ll work on it …

---

<div class="post-metadata">

**Author:** ![Jamie](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jamie/32/8589_2.png) [@Jamie](https://forum.virtualmin.com/u/Jamie)\
**Post date:** [April 28, 2024, 4:10pm UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/7 "2024-04-28T16:10:13Z")

</div>

Ok this is fixed for the next release.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [April 30, 2024, 9:51am UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/8 "2024-04-30T09:51:38Z")

</div>

Thanks, it works just great!

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [May 8, 2024, 9:52am UTC](https://forum.virtualmin.com/t/terminal-works-fine-except-for-one-virtual-server/126252/9 "2024-05-08T09:52:16Z")

</div>

Closed on May 8, 2024, 9:52am UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
