Advertisements

SMF ERROR: Could not install the CER database. CER configure failed

I tried to reconfigure the ProviderSvcsBase but I got an error where 1 script failed

root@hp-ux:~ # swconfig -x reconfigure=true -x autoselect_dependencies=false ProviderSvcsBase

======= 10/03/13 10:09:56 SAT BEGIN swconfig SESSION
(non-interactive) (jobid=hp-ux-0115)

* Session started for user “root@hp-ux”.

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Software selections:
ProviderSvcsBase,r=C.07.00.07.01,a=HP-UX_B.11.31_IA,v=HP
ProviderSvcsCore.CDM-SDK-CORE-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-CLI-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-COMM-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HT-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HWMAP-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_CER,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_MOF,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_MISC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-DOC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-RUN,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SHA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SRC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
* Selection succeeded.

* Beginning Analysis
* Session selections have been saved in the file
“/root/.sw/sessions/swconfig.last”.
* “hp-ux:/”: 16 filesets have already been configured.
* Analysis succeeded.

* Beginning Execution
ERROR: “hp-ux:/”: 1 configure or unconfigure scripts failed.
* The execution phase failed for “hp-ux:/”.
* Execution had errors.

ERROR: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0115 @ hp-ux:/”.

======= 10/03/13 10:11:13 SAT END swconfig SESSION (non-interactive)
(jobid=hp-ux-0115)

It tries to run the script /var/adm/sw/products/ProviderSvcsCore/PSB_CER/configure and showed me the following error message

root@hp-ux:~ # /var/adm/sw/products/ProviderSvcsCore/PSB_CER/configure
* Configuring CER…
ERROR: Could not install the CER database. CER configure failed.

In my case, it was because the sfmdb user didn’t have a valid shell

root@hp-ux:~ # grep sfmdb /etc/passwd
sfmdb:*:103:20:System Fault Management:/usr/users/sfmdb:/usr/bin/false

I changed the shell

root@hp-ux:~ # usermod -s /sbin/sh sfmdb

And removed the directory where the database files were

root@hp-ux:~ # rm -r /var/opt/psb/db/pgsql

Then I re-run the command to reconfigure and it showed no problems.

root@hp-ux:~ # swconfig -x reconfigure=true -x autoselect_dependencies=false ProviderSvcsBase

======= 10/03/13 11:34:23 SAT BEGIN swconfig SESSION
(non-interactive) (jobid=hp-ux-0094)

* Session started for user “root@hp-ux”.

* Beginning Selection
* Target connection succeeded for “hp-ux:/”.
* Software selections:
ProviderSvcsBase,r=C.07.00.07.01,a=HP-UX_B.11.31_IA,v=HP
ProviderSvcsCore.CDM-SDK-CORE-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-CLI-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-COMM-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HT-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.HTUI-HWMAP-IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_CER,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_COMMON_MOF,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_IA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_LOGSERV_LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.PSB_MISC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-DOC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-LIB,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-RUN,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SHA,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=HP-UX_B.11.31_IA
ProviderSvcsCore.SMPGSQL-SRC,l=/,r=C.07.00.07,a=HP-UX_B.11.31_IA,v=HP,fr=C.07.00.07,fa=
* Selection succeeded.

* Beginning Analysis
* Session selections have been saved in the file
“/root/.sw/sessions/swconfig.last”.
* “hp-ux:/”: 16 filesets have already been configured.
* Analysis succeeded.

* Beginning Execution
* The execution phase succeeded for “hp-ux:/”.
* Execution succeeded.

NOTE: More information may be found in the agent logfile using the
command “swjob -a log hp-ux-0094 @ hp-ux:/”.

======= 10/03/13 11:36:14 SAT END swconfig SESSION (non-interactive)
(jobid=hp-ux-0094)

Advertisements
%d bloggers like this: