Skip to Content

During Installation sapcontrol is not able to start SCS instance

Hey SAP-Gurus,
I am trying to install a fresh Java NW 7.50 System with SWPM SP18 Pl 6 on AIX with DB2 database.
Unfortunately, the installations hangs in step "starting Central instance". After some time of waiting I exited the SWPM process and tried to start the instance manually.
I killed sapstartsrv process for the SCS instance
I deleted the sapstream files in /tmp
Executed "cleanipc 50 remove"
Checked /usr/sap/sapservices - Instance is maintained correctly
Checked /etc/services Re-named folder /usr/sap/J02/SCS50/sec to sec_2 and renamed it back to sec (Because I had the same error for DEV System before and there this procedure made it work :-)

Then I started the Service again: sapcontrol -nr 50 -function StartService J02 -worked

However, when I try to start the System with: sapcontrol -nr 50 -debug -function Start

[Thr 01] Thu Jan 12 14:14:54 2017
[Thr 01] NiIInit: allocated nitab (2048 at 11088a510)
[Thr 01] NiIHSBufInit: initialize hostname buffer (IPv4)
[Thr 01] NiHLInit: alloc host buf (100 entries)
[Thr 01] NiSrvLInit: alloc serv bufs (100 entries)
[Thr 01] NiISapServNameCheck: sapctrl50 not supported (len 9)
[Thr 01] NiPGetServInfoError: func NiPGetServByName; sys getaddrinfo; log 1; isErr 1; errorNo 8
[Thr 01] ***LOG Q0I=> NiPGetServByName: 'sapctrl50' not found: getaddrinfo [/bas/745_REL/src/base/ni/niuxi.c 1819]
[Thr 01] NiSrvLGetServNo: service name 'sapctrl50' not found by operating system
[Thr 01] NiInit3: NI already initializes (init=1;cur=2048)
[Thr 01] addrinfo of 'localhost':
[Thr 01] 0: 127.0.0.1:0 'loopback' RAW (0-2-3-0-16)
[Thr 01] NiHLGetNodeAddr: got hostname 'localhost' from operating system
[Thr 01] NiIGetNodeAddr: hostname 'localhost' = addr 127.0.0.1
[Thr 01] NiIGetServNo: servicename '55013' = port 55013
[Thr 01] NiICreateHandle: hdl 1 state NI_INITIAL_CON
[Thr 01] NiILocalCheck: local loopback address: 127.0.0.1
[Thr 01] NiIInitSocket: set default settings for new hdl 1/sock 4 (UD; ST)
[Thr 01] NiIBlockMode: set blockmode for hdl 1 FALSE
[Thr 01] NiITraceByteOrder: CPU byte order: big endian, network, high val..low val
[Thr 01] NiIConnectSocket: hdl 1 is connecting to /tmp/.sapstream55013 (timeout=-1)
[Thr 01] NiIConnectSocket: connection of hdl 1 established to /tmp/.sapstream55013
[Thr 01] NiIConnect: state of hdl 1 NI_CONNECTED
[Thr 01] NiIBlockMode: set blockmode for hdl 1 TRUE
[Thr 01] NiIWrite: hdl 1 SSLState 0
[Thr 01] NiIWrite: hdl 1 sent data (wrt=785,pac=1,RAW_IO)
[Thr 01] NiIRead: hdl 1 SSLState 0

When I do the same on my DEV System the Output is exactly the same, but the following lines are at the end:

...
[Thr 01] Thu Jan 12 14:18:38 2017
[Thr 01] NiIRead: hdl 1 received data (rcd=758,pac=1,RAW_IO)

I hope you have some further hints for me ;)
Thanks in advance
Jan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

9 Answers

  • Best Answer
    Jan 26, 2017 at 11:18 AM

    Hello all,

    We fixed the issue :)

    D02:

    [Thr 3087] NiIRead: hdl 27 SSLState 0

    [Thr 3087] NiIRead: hdl 27 received data (rcd=785,pac=1,RAW_IO)

    trusted unix domain socket user is starting SAP System at 2017/01/23 17:01:58 [Thr 3087] *** ERROR => JsfCloseShm: Static shared memory is not initialized. [jsfxxshm.c 2061]

    [Thr 3087] RqQDetach: Queue not initialized

    [Thr 3087] ShmDelete2( 85 )

    [Thr 3087] *** ERROR => ShmDelete2: Inv. Key=85 [shmux.c 2819]

    [Thr 3087] ShmDelete2( 84 ) ......

    _______________________________________________________________________________

    J02:

    [Thr 2057] NiIRead: hdl 17 SSLState 0

    [Thr 2057] NiIRead: hdl 17 received data (rcd=785,pac=1,RAW_IO)

    is starting SAP System at 2017/01/23 16:17:12

    [Thr 2057] *** ERROR => JsfCloseShm: Static shared memory is not initialized. [jsfxxshm.c 2061]

    [Thr 2057] RqQDetach: Queue not initialized

    [Thr 2057] ShmDelete2( 85 )

    [Thr 2057] *** ERROR => ShmDelete2: Inv. Key=85 [shmux.c 2819]

    [Thr 2057] ShmDelete2( 84 )

    [Thr 2057] *** ERROR => ShmDelete2: Inv. Key=84 [shmux.c 2819]

    At the end it probably was an issue with the parameter "service/protectedwebmethods".

    After the SWPM failed to start the SCS, we set the entry to "NONE". Could be that this was not secure enough to start the System with sapcontrol. BUt this are just presumptions.

    However, it is solved and I thank you guys. :)

    Best regards Jan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 04:48 AM

    Hi Jan.

    I think you have add the host name & IP address in \etc\hosts file and then try the installation

    Regards

    Sriram

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 07:05 AM

    Hey Sriram,

    thanks for your reply, but /etc/hosts file is also maintained correctly.

    Best regards

    Jan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 08:24 AM

    Hi Jan.

    Are you able to ping the AIX host from external Pc's or any other servers? or is it firewall blocking?

    BR

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 18, 2017 at 11:01 AM

    Hey Sriram,

    also the ping is possible from other servers or PCs.

    Thanks and best regards

    Jan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 20, 2017 at 08:08 AM

    Hey Guys,

    I am still at a loss, but I set the trace level for sapstartsrv to 3. So I am able to provide a logfile which might help you to investigate the error:
    sapstartsrv.txt

    Thanks and best regards

    Jan Hofmann

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 20, 2017 at 08:54 AM

    What about /etc/services?

    [Thr 01] NiSrvLGetServNo: service name 'sapctrl50' not found by operating system

    Best regards

    Bartosz

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 20, 2017 at 10:13 AM

    Hey Bartosz,

    I don't think that we have a problem with this error message. I checked other /etc/services files in our SAP landscapes and we never maintained such kind of entries.

    And as I already mentioned also DEV and QA system are showing these errors, but these systems are working fine.

    Thanks for the reply and best regards

    Jan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 23, 2017 at 06:55 PM

    Hello Jan,

    Please try executing the following command:

    sapcontrol -nr 50 -function OSExecute "/bin/ls" 0 0 LOG

    In addition, what happens with the "... -function Start" command? Does it "hang forever", blocking the shell until you cancel it?

    Best regards,

    Isaías

    Add comment
    10|10000 characters needed characters exceeded