OpenVZ Forum


Home » General » Support » VPS: sshd dead but subsys locked
VPS: sshd dead but subsys locked [message #13385] Fri, 25 May 2007 12:13 Go to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
In VPS SSH is down

ssh status
sshd dead but subsys locked

I removed /var/locksubsys/sshd and then try starting SSH. It shows start OK but again after seconds. subsys locked

can anyone suggest how to fix this?
Re: VPS: sshd dead but subsys locked [message #13387 is a reply to message #13385] Fri, 25 May 2007 12:20 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Can you tell me what VE template do you use?

Thank you,
Vasily.
Re: VPS: sshd dead but subsys locked [message #13388 is a reply to message #13387] Fri, 25 May 2007 12:26 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
Kernel: 2.6.9-023stab040.1-enterprise #1 SMP Tue Jan 16 01:09:22 MSK 2007 i686 i686 i386 GNU/Linux

VPS: Template CentOS
Re: VPS: sshd dead but subsys locked [message #13394 is a reply to message #13385] Fri, 25 May 2007 13:19 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
One more vps SSH died

Stopping sshd:[ OK ]
Starting sshd:PRNG is not seeded
[FAILED]

Any idea?
Re: VPS: sshd dead but subsys locked [message #13411 is a reply to message #13394] Fri, 25 May 2007 17:24 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

in your VE /dev/random is missing, create it with:

# mknod /dev/random c 1 8

It's a self-built OSTEMPLATE, or download one ?

[Updated on: Fri, 25 May 2007 17:25]

Report message to a moderator

Re: VPS: sshd dead but subsys locked [message #13412 is a reply to message #13385] Fri, 25 May 2007 17:35 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
I am using standard centos template.
I created random then deleted
/var/lock/subsys/sshd

Tried restarting SSH. It shows start ok but after couple of seconds same error sshd dead but subsys locked

Re: VPS: sshd dead but subsys locked [message #13423 is a reply to message #13412] Sat, 26 May 2007 12:36 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Only the access to you node can help Wink)
Re: VPS: sshd dead but subsys locked [message #13444 is a reply to message #13423] Sun, 27 May 2007 06:11 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
Can you please check your PM Wink
Re: VPS: sshd dead but subsys locked [message #13507 is a reply to message #13385] Tue, 29 May 2007 05:00 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
I created one more VPS on same node. When I tried starting httpd
got following errors.

[root@localhost ~]# service httpd start
Starting httpd: Syntax error on line 68 of /etc/httpd/conf.d/ssl.conf:
SSLRandomSeed: source path '/dev/urandom' does not exist

[FAILED]

I did mknod /dev/urandom c 1 9
and it started httpd.

When I rebooted this new VPS. It's also giving the same problem.
sshd dead but subsys locked

Tnx

[Updated on: Tue, 29 May 2007 05:05]

Report message to a moderator

Re: VPS: sshd dead but subsys locked [message #14013 is a reply to message #13385] Mon, 11 June 2007 04:03 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
Any updates on this?
Re: VPS: sshd dead but subsys locked [message #14339 is a reply to message #13385] Sun, 24 June 2007 02:09 Go to previous message
michiman is currently offline  michiman
Messages: 1
Registered: June 2007
Location: Michigan
Junior Member
Yes, if you can run "/usr/sbin/sshd -d" then this should fix.
remove /dev/null
and then: "mknod /dev/null c 1 3"

More info here:
http://www.linuxquestions.org/questions/showthread.php?posti d=1417720

[Updated on: Sun, 24 June 2007 02:12]

Report message to a moderator

Previous Topic: *SOLVED* vps's directory on different hard disk
Next Topic: Template metadata howto?
Goto Forum:
  


Current Time: Mon Jul 07 00:50:36 GMT 2025

Total time taken to generate the page: 0.03798 seconds