Process in maintenance mode, why?

Hi,

I have installed Hudson on a Solaris 11 server, using the installation instructions available at Paul Oswald: Hudson Solaris SMF Manifest.

When I perform svcs -l hudson, I get:

fmri         svc:/application/hudson:default
name         Hudson Continuous Build Server
enabled      true
state        maintenance
next_state   none
state_time   Fri Jul 31 15:35:39 2009
logfile      /var/svc/log/application-hudson:default.log
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/milestone/multi-user-server (online)

The log file contains:

[ Jul 31 12:57:57 Disabled. ]
[ Jul 31 12:57:57 Rereading configuration. ]
[ Jul 31 12:58:33 Enabled. ]
[ Jul 31 14:42:56 Leaving maintenance because disable requested. ]
[ Jul 31 14:42:56 Disabled. ]
[ Jul 31 15:35:32 Enabled. ]
[ Aug 25 07:57:22 Rereading configuration. ]

Does anyone know why my Hudson service is not 'online'? I have also posted this issue on a Hudson forum, because I do not know what is causing it (Hudson or Solaris).

Thanks,

JVerstry

Try

svcs clear hudson
svcs -xv hudson

'svcs clear hudson' gives:

svcs: Pattern 'clear' doesn't match any instances
STATE          STIME    FMRI
maintenance    Jul_31   svc:/application/hudson:default

'svcs -xv hudson' gives:

svc:/application/hudson:default (Hudson Continuous Build Server)
 State: maintenance since Fri Jul 31 15:35:39 2009
Reason: Method failed.
   See: http://sun.com/msg/SMF-8000-8Q
   See: http://hudson.dev.java.net
   See: /var/svc/log/application-hudson:default.log
Impact: This service is not running.

Does it mean my server is in maintenance or Hudson is in maintenance? If it is Hudson, how can this be since I have just installed it with the latest downloadable files?

Thanks for your help anyway,

JVerstry

P.S.: I have tried 'svcadm clear hudson' instead of 'svcs clear hudson'. The command returns nothing. When I perform 'svcs -xv hudson' after it, I get:

svc:/application/hudson:default (Hudson Continuous Build Server)
 State: maintenance since Tue Aug 25 09:46:39 2009
Reason: Method failed.
   See: http://sun.com/msg/SMF-8000-8Q
   See: http://hudson.dev.java.net
   See: /var/svc/log/application-hudson:default.log
Impact: This service is not running.

Your service (hudson) is in maintenance mode because it failed to start on July 31.

Did you try to restart it ?

svcadm disable hudson
svcadm enable hudson

After I performed the 2 above commands, I tried svcs -l hudson again and got:

fmri         svc:/application/hudson:default
name         Hudson Continuous Build Server
enabled      true
state        maintenance
next_state   none
state_time   Tue Aug 25 09:58:24 2009
logfile      /var/svc/log/application-hudson:default.log
restarter    svc:/system/svc/restarter:default
dependency   require_all/none svc:/milestone/multi-user-server (online)

The log file contains:

[ Jul 31 12:57:57 Disabled. ]
[ Jul 31 12:57:57 Rereading configuration. ]
[ Jul 31 12:58:33 Enabled. ]
[ Jul 31 14:42:56 Leaving maintenance because disable requested. ]
[ Jul 31 14:42:56 Disabled. ]
[ Jul 31 15:35:32 Enabled. ]
[ Aug 25 07:57:22 Rereading configuration. ]
[ Aug 25 09:46:39 Leaving maintenance because clear requested. ]
[ Aug 25 09:46:39 Enabled. ]
[ Aug 25 09:58:14 Leaving maintenance because disable requested. ]
[ Aug 25 09:58:14 Disabled. ]
[ Aug 25 09:58:24 Enabled. ]

Do it mean the issue is with Hudson?

Thanks,

JVerstry