No access via Console or SSH

MrHumpty

Renowned Member
Jul 26, 2014
6
0
66
Sussex Coast. GB
Good Day,

I've had two proxmox boxes do this...
both using v4.0-48 then apt-get upgrade for the latest deb patches etc.

If I try to start prox's console.. I see this...

Error 500: starting worker failed: unable to redirect STDIN - No such device or address at /usr/share/perl5/PVE/RPCEnvironment.pm line 840.

If I try to SSH, the connection is dropped/refused.

Which leaves me in a position of not being able to get into the box to see what's going on/shut down gracefully.
This managed to trash the filesystem on a dirty power off of the box I was testing.
loads of inode fixing on re power up, so had to rebuild prox.
(HP P400 RAID cache controller.)

On the other box with the same problem I've left running. but having the same errors as above.
All the VMs are running quite happily, but I can't control them from Prox.
If I initiate a shutdown of a VM.. again, I see this .

starting worker failed: unable to redirect STDIN - No such device or address at /usr/share/perl5/PVE/RPCEnvironment.pm line 840. (500)


I've not done anything to these installs bar this.

The change I made was to /etc/defaults/snmpd as syslog was so noisy with snmp reports.
I can't see how this has broken things.. but... stranger things have happened.

In /etc/default/snmpd, I changed

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -g root 0.0.0.0'

to

-LSwd and -LS4d, which was accepted as the service restarted without errors.


....perplexed....

Any suggestions how I can get back in to undo this changes on a live box, I really don't want to just power off the box because of the experiences of last time. However, this box is just a software RAID1 machine that I was using while I worked on the main server. (DL380G5) with no caching controller like the HP.....

If I can close down gracefully, I maybe able to undo the changes via a live sys-rescue disk.... and prox will recover from whatever it's decided to do?

Any thoughts as to what may of happened or way forward?


Many Thanks.
M
 
Hello M,

What happened? Sometimes syslogging can be affected, in return leading to a block on many programs that are refused to output log lines, like SSH does on logging in.

If you have physical access you can use the sysrq key to safely sync and shutdown your machine. See https://www.kernel.org/doc/Documentation/sysrq.txt. Since the kernel is booted with quiet you have to use the 8 key as the first command to see output.

If not then maybe you have an unconfined container that you can ssh to.

Good luck.
 

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!