[SOLVED] >_Shell returns 'Connection failed (Error 400: Bad Request)'

Mad Scientist

New Member
Feb 9, 2024
8
1
3
The title explains the issue. I have 127.0.0.1 localhost.localdomain localhost listed in the /etc/hosts file. This is limited to two instances of Proxmox Backup Server. One PBS is a bare metal install, while the other is a VM. Proxmox VE doesn't have this issue. Apparently I have something configured wrong, but I'm scratching my head as to what it could be. Any help would be appreciated!
 
Hi!
when do you get this error in the shell? Did you execute a specific command? What exactly are you trying to achieve?
 
Hi,
Thank you for the reply! Whenever I click on the >_Shell command in the left column, I get a black screen to the right with "Connection failed (Error 400: Bad Request)" at the top. I can use SSH via Putty without issue, it simply would be more convenient to use the Shell option. Plus the fact, that there is something obviously wrong with my install or configuration, which I would like to correct, and improve my knowledge of Proxmox in general. I researched this issue prior to posting, but the only solution I ran across suggested I add 127.0.0.1 localhost.localdomain localhost to the /etc/hosts file. Which doesn't apply to me, because that entry already exists. I was hopeful that someone here would have an idea as to what is causing this issue, because I'm no expert (obviously) in Proxmox or Linux. Any help would be appreciated.


prtscr.jpg
 
Hi!
do you see some errors in the syslog (using `journalctl`)? Maybe you could paste a snippet from the logs here?
you could also attach a screenshot of the termproxy request in the Developer Tools Network tab.
 
Okay, I'm an idiot. I don't know why I didn't see it before, but the log stated ...

POST /api2/json/nodes/localhost/termproxy: 400 Bad Request: [client [::ffff:xxx.xxx.xxx.xxx]:43178] only pam users can use the console

... and since I wasn't signed in as root@pam, I didn't have authority to use Shell. Thanks for your help! Sometimes I can't see the forest because of the trees. :)
 
  • Like
Reactions: ggoller

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!