A question about WebUI and active shell sessions in WebUI

SaleB

Member
Aug 31, 2020
4
1
8
43
I am fairly new to Proxmox, but this is one problem I did not find a solution for. Since no one has asked a similar question before I assume that I am missing something or doing something the wrong way.

The problem is that the active shell session in WebUI closes each time I select something else. And when I return I get a fresh new session. It appears that the action that was previously active is not running anymore. Is it a normal behavior? Is there a way to prevent it?

As an example, I have been running badblocks, a command that should have lasted for at least 50 hours. After 20+ hours I clicked on the summary to check something, totally not thinking about the running command, and when I returned, I was welcomed by a fresh session. Is it still running in the background? If yes, how can I get it back to show the progress in the terminal, if not, what would be the proper way to run those commands that take long periods of time?

Thank you
 
Hi!

The problem is that the active shell session in WebUI closes each time I select something else. And when I return I get a fresh new session. It appears that the action that was previously active is not running anymore. Is it a normal behavior? Is there a way to prevent it?

Yes, this is normal. One thing that you could do is press 'Shell' on the upper right to spawn a shell in a new window. Or better yet, use tmux or screen to create/attach to a long-running session. For instance, with tmux you can start a new session with the 'tmux' command. Start the long running command in the session and then press Ctrl-B and then D to detach from the session. Later, you can use 'tmux attach' to attach to a running session.

And of course, connecting via SSH is also a good option. You can of course combine that with tmux/screen.
 
  • Like
Reactions: SaleB
Thank you for your valuable advice.

I did not know about tmux. I will install it. It looks like a good tool to know about and use. In a way, it reminds me of Docker's detachment flag which I am already familiar with. I am still in the process of learning the Linux commands and choosing the best options for various functionalities.
 
  • Like
Reactions: Lukas Wagner