SSH : Restarting too quickly, changing state to maintenance | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

SSH : Restarting too quickly, changing state to maintenance

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-13-2013
maverick_here maverick_here is offline
Registered User
 
Join Date: May 2009
Last Activity: 1 June 2014, 12:08 AM EDT
Location: Hyderabad
Posts: 124
Thanks: 0
Thanked 5 Times in 4 Posts
SSH : Restarting too quickly, changing state to maintenance

Hi,

I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0


Code:
[root@Server1 /var/adm]$svcadm restart svc:/network/ssh:default
[root@Server1 /var/adm]$echo $?
0
[root@Server1 /var/adm]$

However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in maintenance mode.


Code:
[root@Server1 /var/adm]$svcadm restart svc:/network/ssh:default
[root@Server1 /var/adm]$echo $?
0
[root@Server1 /var/adm]$

and logs indicate the following


Code:
[ Aug 13 23:49:07 Leaving maintenance because disable requested. ]
[ Aug 13 23:49:07 Disabled. ]
[ Aug 13 23:49:25 Enabled. ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Executing start method ("/lib/svc/method/sshd start") ]
[ Aug 13 23:49:25 Method "start" exited with status 0 ]
[ Aug 13 23:49:25 Stopping because all processes in service exited. ]
[ Aug 13 23:49:25 Executing stop method (:kill) ]
[ Aug 13 23:49:25 Restarting too quickly, changing state to maintenance ]

I'm not sure why the service is in maintenance mode.

Thanks

Moderator's Comments:
please use CODE tags for code snipplets, not QUOTE tags!

Last edited by DukeNuke2; 08-13-2013 at 10:07 AM..
Sponsored Links
    #2  
Old 08-13-2013
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 28 July 2014, 4:36 AM EDT
Posts: 1,793
Thanks: 108
Thanked 510 Times in 463 Posts
Please post output of

Code:
svcs -xv ssh

and

Code:
ps -ef | grep sshd

Sponsored Links
    #3  
Old 08-14-2013
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 27 July 2014, 5:58 PM EDT
Location: Paris
Posts: 4,397
Thanks: 15
Thanked 460 Times in 416 Posts
Quote:
Originally Posted by maverick_here View Post
However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in maintenance mode.
Which likely means you already have another sshd daemon running without smf supervision.
    #4  
Old 08-14-2013
maverick_here maverick_here is offline
Registered User
 
Join Date: May 2009
Last Activity: 1 June 2014, 12:08 AM EDT
Location: Hyderabad
Posts: 124
Thanks: 0
Thanked 5 Times in 4 Posts
Following is the output of svcs -xv



Code:
[root@Server1 /]$svcs -xv ssh
svc:/network/ssh:default (SSH server)
 State: maintenance since Tue Aug 13 23:49:25 2013
Reason: Restarting too quickly.
   See: http://sun.com/msg/SMF-8000-L5
   See: man -M /usr/share/man -s 1M sshd
   See: /var/svc/log/network-ssh:default.log
Impact: This service is not running.

and the output of ps -ef | grep sshd


Code:
[root@Server1 /]$ps -ef|grep sshd
    root 13228 16789   0 19:31:47 ?           0:00 /usr/lib/ssh/sshd
    root 25315 16789   0 18:21:03 ?           0:00 /usr/lib/ssh/sshd
    root 20811 16789   0 18:08:58 ?           0:00 /usr/lib/ssh/sshd
  syd208 10372 10371   0 19:18:36 ?           0:01 /usr/lib/ssh/sshd
  syd211  7030  7029   0 19:01:44 ?           0:01 /usr/lib/ssh/sshd
    root 11090 16789   0 19:22:08 ?           0:00 /usr/lib/ssh/sshd
   syd22 29519 29518   0 18:32:45 ?           0:01 /usr/lib/ssh/sshd
    root 28969 16789   0 18:31:37 ?           0:00 /usr/lib/ssh/sshd
  syd265 26877 26854   0 18:25:49 ?           0:01 /usr/lib/ssh/sshd
    root 24826 16789   0 18:19:36 ?           0:00 /usr/lib/ssh/sshd
    root 27278     1   0   Aug 12 ?           0:19 /usr/lib/ssh/sshd
    root 29378 16789   0 18:32:23 ?           0:00 /usr/lib/ssh/sshd
  superv 14795 14794   0   Aug 13 ?           0:02 /usr/lib/ssh/sshd

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Service is restarting too quickly cjashu Solaris 2 11-09-2012 04:15 AM
How to clear maintenance state for apache2 server? Sesha Solaris 3 05-25-2010 06:34 AM
net-snmp - restarting too quickly issue pupp Infrastructure Monitoring 1 09-09-2009 11:11 PM
both mirrors in needs maintenance state. sag71155 Solaris 3 04-17-2009 11:52 AM



All times are GMT -4. The time now is 06:20 AM.