cancel
Showing results for 
Search instead for 
Did you mean: 

Power failed during NW upgrade,error occurs during restart

Former Member
0 Kudos

Hi,

I am upgrading NW from 7.02 to 7.3 these days.

Phase MAIN_SHDRUN/ACT_UPG had run almost 16 days but was terminated due to power off accidently.

I restart the STARTUP under upgrade folder but error occurs like this:

I searched this problem on the forum and somebody say that it's due to shadow instance not started.

So I tried to start the shadow instance under folder /usr/sap/<SID>/upg/abap/bin use the following command:

SAPup startshd


But there's a fatal error:

FATAL ERROR: Process 'sapcontrol' exited with 1, see '/usr/sap/S01/upg/abap/log/SAPup.ECO' for details


And the last few lines in log SAPup.ECO are:


EXECUTING /usr/sap/S01/upg/abap/exe/sapcontrol (/usr/sap/S01/upg/abap/exe/sapcontrol) -prot NI_HTTP -host linux-q0fx -nr 01 -function StartWait 10000 10

12.12.2013 22:21:15

Start

FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

Process with ID 6669 terminated with status 1


I also searched this problem on the forum and try to run installsapinit.sh as note 823941 - SAP start service on Unix platforms saies but also got error like this:


Now I don't how to fix this problem.

Could anyone pls. help me?

Thank you!

Thank you very much!


Best Regards,

Carina

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rishl and Balazs,

When I run command sapstartsrv without -D I got message like this:

linux-q0fx:/tmp # su s01adm

linux-q0fx:s01adm 51> /usr/sap/S01/DVEBMGS00/exe/sapstartsrv pf=/usr/sap/S01/SYS/profile/S01_DVEBMGS00_linux-q0fx -u s01adm

Unable to open trace file sapstartsrv.log. (Error 11 Resource temporarily unavailable) [ntservsserver.cpp 3483]

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi,

Please check the below note.

1762827 - Startup of Instance Service failed in UNIX or Linux environment

Thanks

Rishi abrol

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Unless and until the logs are provided it is difficult to help you.

You may start with these SAP notes.

525677 - Problems when starting shadow instance

1937296 - SUM fails at start-shadow-instance-dm step

Regards

RB

Former Member
0 Kudos

Hi,

I've done excatly what the note saies but still facing the same error.

Plus, I find out that there's no work folder under parth /usr/sap/S01/upg/abap/S01/DVEBMGS00/.

Does this make a sense?

Thank you!

Carina Hu

Former Member
0 Kudos

Hi,

I've checked these notes before. And here are some logs updated yesterday.

TP.ECO

BLOCKED SIGNALS: ''
SAPup> Starting subprocess 22188 at 20131218202553
ENV: CLASSPATH=.:/usr/local/java/jdk1.6.0_51/lib/dt.jar:/usr/local/java/jdk1.6.0_51/lib/tools.jar:/db2/db2d01/sqllib/java/db2java.zip:/db2/db2d01/sqllib/java/runtime.zip:.
ENV: DB2DBDFT=D01
ENV: DB2INSTANCE=db2d01
ENV: DIR_LIBRARY=/usr/sap/S01/upg/abap/exe
ENV: JAVA_HOME=/usr/local/java/jdk1.6.0_51
ENV: LD_LIBRARY_PATH=/usr/sap/S01/upg/abap/exe:/usr/sap/S01/upg/jvm/jre/lib/amd64/server:/usr/sap/S01/upg/jvm/jre/lib/amd64:/usr/sap/S01/upg/jvm/jre/../lib/amd64:/usr/sap/S01/SYS/exe/run:/usr/sap/S01/SYS/exe/uc/linuxx86_64
ENV: PATH=/usr/sap/S01/upg/abap/exe:/usr/local/java/jdk1.6.0_51/bin:/usr/local/java/jdk1.6.0_51/bin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/sap/S01/SYS/exe/uc/linuxx86_64:/usr/sap/S01/SYS/exe/run:/home/s01adm:.:/db2/db2d01/sqllib/bin:/db2/db2d01/sqllib/adm:/db2/db2d01/sqllib/misc
ENV: SAPSYSTEMNAME=S01
ENV: auth_shadow_upgrade=1
ENV: dbms_type=db6
ENV: dbs_db6_schema=SAPS01

EXECUTING /usr/sap/S01/upg/abap/exe/tp (/usr/sap/S01/upg/abap/exe/tp) pf=/usr/sap/S01/upg/abap/bin/SHADOW.TPP unlock_eu S01
This is /usr/sap/S01/upg/abap/exe/tp version 376.02.14 (release 720, unicode enabled)
Warning: Parameter INTERRUPT is no longer used.
Warning: Parameter DAYLIGHT_SHUTDOWN is no longer used.
Warning: Parameter WITH_TACOB is no longer used.
Warning: Parameter IMPDP_BY_EVENT is no longer used.
Warning: Parameter INTERRUPT is no longer used.
Warning: Parameter DAYLIGHT_SHUTDOWN is no longer used.
Warning: Parameter WITH_TACOB is no longer used.
Warning: Parameter IMPDP_BY_EVENT is no longer used.
tp finished with return code: 0
meaning:
  Everything OK

SLOG730.log

### Phase ACT_UPG:

START put                  S01        20131218022353              s01adm       linux-q0fx 20131218022352002d62

START SET STOPMARK         S01        20131218022353              s01adm       linux-q0fx 20131218022352002d62

STOP  SET STOPMARK         S01        20131218022353              s01adm       linux-q0fx 20131218022352002d62

LIST  put                  S01 (A{|

START tplock_eu            S01 (      20131218022353              s01adm       linux-q0fx 20131218022352002d62

STOP  tplock_eu            S01 (      20131218022354              s01adm       linux-q0fx 20131218022352002d62

START tp_getprots          S01 J      20131218022354              s01adm       linux-q0fx 20131218022352002d62

STOP  put                  S01   7002 20131218024736              s01adm       linux-q0fx 20131218022352002d62

START tpunlock_eu          S01        20131218202554              s01adm       linux-q0fx 201312182025530056ac

STOP  tpunlock_eu          S01        20131218202554              s01adm       linux-q0fx 201312182025530056ac

SAPup.out

Waiting for SAP SL-Controller to connect at port number 4240 (CTRL-C to interrupt)...

SL-controller connected

PHASE.SAV

#---- TIME: 20131218022352  PHASE: ACT_UPG
#--------------------------------------------------------------

1 ETQ201 Entering upgrade-phase "ACT_UPG" ("20131215034202")
4 ETQ399 Set environment for shadow connect:
4 ETQ399 Set RFC variables for shadow connect:
4 ETQ399 System-nr = '01', GwService = 'sapgw01'
4 ETQ380 computing toolpath for request "TP_SHADOW_CONNECT"
4 ETQ381 request "TP_SHADOW_CONNECT" means "tp needs to connect to shadow system"
4 ETQ382 translates to group "R3UP_TOOL_GROUP_NEW"
4 ETQ383 translates to path "exe"
4 ETQ383 translates to path "exe"
4 ETQ399 Set tool parameters for shadow connect:
4 ETQ399   default TPPARAM: SHADOW.TPP
2 ETQ366 Connect variables are set for shadow instance access
4 ETQ399 System-nr = '01', GwService = 'sapgw01'
4 ETQ399 Environment variables:
4 ETQ399   dbs_db6_schema=SAPS01
4 ETQ399   auth_shadow_upgrade=1
1 ETQ200 Executing actual phase 'MAIN_SHDRUN/ACT_UPG'.
1 ETQ399 Phase arguments:
2 ETQ399 Arg[0] = 'ACTUPG.BUF'
2 ETQ399 Arg[1] = 'ACTUPG.TPP'
2 ETQ399 Arg[2] = 'ACTUPG.TP0'
2 ETQ399 Arg[3] = 'ACTUPG.ELG'
2 ETQ399 Arg[4] = 'SHDINCIMP.BUF'
4 ETQ380 computing toolpath for request "TP_SHADOW_CONNECT"
4 ETQ381 request "TP_SHADOW_CONNECT" means "tp needs to connect to shadow system"
4 ETQ382 translates to group "R3UP_TOOL_GROUP_NEW"
4 ETQ383 translates to path "exe"
4 ETQ383 translates to path "exe"
4 ETQ399 2013/12/15 03:42:02: put_execute: (tp) forkpid:18879
4 ETQ399 2013/12/15 03:42:03: put_execute: (tp) forkpid:18881
4 ETQ399 2013/12/15 03:42:03: put_execute: (tp) forkpid:18882

About work processes trace files of the shadow system, I didn't find a work folder under parth /usr/sap/S01/upg/. Does this mean I lost some files? Please tell me if you need any other logs.Thank you!

Best Regards,

Carina Hu

Former Member
0 Kudos

It would be in /usr/sap/S01/upg/SUM/abap/SID/DV*/work

I can tell you that it has to do with the /tmp folder as some file is still holding old connection .

Thanks

Rishi Abrol

Former Member
0 Kudos

Hi,

IF you say that no work directory . There should be work directory as the shadow system will write the logs in that directory . Does this means that shadow instance was never started.

Can there be reason that due to this power some files were lost. If that is the case you will have to go for reset.

Thanks

Rishi abrol

Former Member
0 Kudos

As Rishi Abrol has mentioned already

check if the <sid>adm user has write permissions to /tmp directory


run command #> chmod -R 777 /tmp


I think there is some permission issue for <sid>adm in tmp subdirectory

R3trans can not write dump files there

Former Member
0 Kudos

Hi,

I think you are right. I did lost some files caused by the power fail.

I've decided to restart the whole upgrade process.

Thank you!

Best Regards,

Carina Hu

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

You are not checking the correct path.

The instance number for the shadow system is 01.

It is clearly visible in the first screen shot.

Can you provide me the PHASES file present at /usr/sap/S01/upg/abap/log directory ?

If the shadow system was not created then the tool will not try to connect.

Regards

RB

Former Member
0 Kudos

Hi,

I think that 00 is typo as the if you check the initial starting bit

/usr/sap/S01/upg/abap/S01/DVEBMGS00


upgrade tool will not create the same instance no in this directory.



Thanks

Rishi Abrol

Answers (2)

Answers (2)

Former Member
0 Kudos

I am facing the same problem,  no idea yet.  Good luck for both...

Regards,

Shichao Liu

Former Member
0 Kudos

Hi Carina,

Please :

  1. Check whether sapstartsrv of the affected instance is running.
  2. If sapstartsrv is not running, start the sapstartsrv as a deamon with
    <sid>adm user using the following command: 

      

        sapstartsrv pf=<instance profile> -D

also please check sapinst_dev.log and dev_ms , DEv_disp log they may provide some hint.

Former Member
0 Kudos

Hi Ali,

Thank you for reply.

I use command ps -ef | grep sapstartsrv and got outputs like this:

root     29269 29238  0 07:23 pts/3    00:00:00 grep sapstartsrv

s01adm   33493     1  0 Dec13 ?        00:00:37 /usr/sap/S01/DVEBMGS00/exe/sapstartsrv pf=/usr/sap/S01/SYS/profile/START_DVEBMGS00_linux-q0fx -D

sapadm   34499     1  0 Dec13 ?        00:00:03 /usr/sap/hostctrl/exe/sapstartsrv pf=/usr/sap/hostctrl/exe/host_profile -D


There are two sapstartsrv processes but I think no one is related with my shadow instance.

So I followed your advice:

linux-q0fx:s01adm 56> sapstartsrv pf=/usr/sap/S01/upg/abap/S01/SYS/profile/S01_DVEBMGS01_linux-q0fx -D

But it doesn't work.

Plus, I use command sapcontrol to start my shadow instance, but no matching instance found. It's kind of wried. Do you know why?

linux-q0fx:s01adm 64> sapcontrol -nr 0 -function InstanceStart linux-q0fx 01

15.12.2013 08:09:17
InstanceStart
FAIL: Invalid parameter: No matching instance found

Thank you!

Best Regards,

Carina Hu

Former Member
0 Kudos

Can you check if the shadow instance profiles exists?

If it not, since you are only in preprocessing, you might also consider resetting the upgrade and restart everything fresh

Former Member
0 Kudos

Hi Srithar,

Yes, the shadow instance profiles exists.

And contents in profile S01_DVEBMGS01_linux-q0fx are as follows:

# Start profile for shadow system 730

Execute_00 = local rm -f $(_MS)

# Start profile for shadow system 730

Execute_01 = local ln -s -f $(DIR_EXECUTABLE)$(DIR_SEP)msg_server$(FT_EXE) $(_MS)

# Start profile for shadow system 730

Start_Program_00 = local $(_MS) pf=$(DIR_PROFILE)$(DIR_SEP)S01_$(INSTANCE_NAME)_linux-q0fx

# Start profile for shadow system 730

Execute_02 = local rm -f $(_DW)

# Start profile for shadow system 730

Execute_03 = local ln -s -f $(DIR_EXECUTABLE)$(DIR_SEP)disp+work$(FT_EXE) $(_DW)

# Start profile for shadow system 730

Start_Program_01 = local $(_DW) pf=$(DIR_PROFILE)$(DIR_SEP)S01_$(INSTANCE_NAME)_linux-q0fx

# Start profile for shadow system 730

SETENV_00 = DIR_LIBRARY=$(DIR_EXECUTABLE)

# Instance profile for shadow system 730

rdisp/mshost = linux-q0fx

# *** CHANGE for the shadow instance ***"

#rdisp/wp_no_dia = 5

rdisp/wp_no_dia = 15

# *** CHANGE for the shadow instance ***"

#rdisp/wp_no_vb = 1

rdisp/wp_no_vb = 1

# *** CHANGE for the shadow instance ***"

#rdisp/wp_no_vb2 = 0

rdisp/wp_no_vb2 = 0

# *** CHANGE for the shadow instance ***"

#rdisp/wp_no_enq = 1

rdisp/wp_no_enq = 1

# *** CHANGE for the shadow instance ***"

#rdisp/wp_no_btc = 4

rdisp/wp_no_btc = 9

# *** CHANGE for the shadow instance ***"

#rdisp/wp_no_spo = 1

rdisp/wp_no_spo = 1

abap/heap_area_dia = 2000000000

abap/heap_area_nondia = 2000000000

abap/buffersize = 80000

zcsa/presentation_buffer_area = 2000000

zcsa/table_buffer_area = 10000000

zcsa/db_max_buftab = 10000

rtbb/buffer_length = 5000

rtbb/max_tables = 500

# *** CHANGE for the shadow instance ***"

#ipc/shm_psize_10 = 40000000

ipc/shm_psize_10 = 128000000

# *** CHANGE for the shadow instance ***"

#ipc/shm_psize_40 = 68000000

ipc/shm_psize_40 = 128000000

em/initial_size_MB = 40960

# *** CHANGE for the shadow instance ***"

#rdisp/autoabaptime = 0

rdisp/autoabaptime = 0

zcsa/system_language = E

dbs/db6/schema = SAPS01

# Start profile for shadow system 730

_MS = ms.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)_SHD

_DW = dw.sap$(SAPSYSTEMNAME)_$(INSTANCE_NAME)_SHD

# *** CHANGE for the shadow instance ***"

rdisp/accept_remote_trace_level = 0

transport/during_upgrade = ON

rdisp/system_needs_spool = false

snc/enable = 0

rdisp/j2ee_start = 0

rdisp/start_icman = false

vmcj/enable = off

abap/package_check = off

rdisp/dynamic_wp_check = false

# Adaptions for shadow system 730

# Adaptions for shadow system 730

#SAPSYSTEMNAME = S01

SAPSYSTEMNAME = S01

# Adaptions for shadow system 730

#SAPSYSTEM = 01

SAPSYSTEM = 01

# Adaptions for shadow system 730

#INSTANCE_NAME = DVEBMGS01

INSTANCE_NAME = DVEBMGS01

# Adaptions for shadow system 730

#SAPGLOBALHOST = linux-q0fx

SAPGLOBALHOST = linux-q0fx

# Adaptions for shadow system 730

#SAPLOCALHOST = linux-q0fx

SAPLOCALHOST = linux-q0fx

# Adaptions for shadow system 730

#SAPLOCALHOSTFULL = linux-q0fx

SAPLOCALHOSTFULL = linux-q0fx

# Adaptions for shadow system 730

#DIR_INSTANCE = /usr/sap/S01/upg/abap$(DIR_SEP)S01$(DIR_SEP)$(INSTANCE_NAME)

DIR_INSTANCE = /usr/sap/S01/upg/abap$(DIR_SEP)S01$(DIR_SEP)$(INSTANCE_NAME)

# Adaptions for shadow system 730

#DIR_PROFILE = /usr/sap/S01/upg/abap$(DIR_SEP)S01$(DIR_SEP)SYS$(DIR_SEP)profile

DIR_PROFILE = /usr/sap/S01/upg/abap$(DIR_SEP)S01$(DIR_SEP)SYS$(DIR_SEP)profile

# Adaptions for shadow system 730

#DIR_EXECUTABLE = /usr/sap/S01/upg/abap/exe

DIR_EXECUTABLE = /usr/sap/S01/upg/abap/exe

# Adaptions for shadow system 730

#DIR_CT_RUN = /usr/sap/S01/upg/abap/exe

DIR_CT_RUN = /usr/sap/S01/upg/abap/exe

# Adaptions for shadow system 730

#DIR_GLOBAL = /usr/sap/S01/upg/abap$(DIR_SEP)S01$(DIR_SEP)SYS$(DIR_SEP)global

DIR_GLOBAL = /usr/sap/S01/upg/abap$(DIR_SEP)S01$(DIR_SEP)SYS$(DIR_SEP)global

# Adaptions for shadow system 730

#auth/shadow_upgrade = 1

auth/shadow_upgrade = 1

Former Member
0 Kudos

Hi,

Have you check the below note.

1872990 - various error messages related to incorrect resolution of localhost

1791730 - Error in "installing java engine": FAIL: NIECONN_REFUSED (Connection refused), NiRawConnec...


Use the below command if you think there is no network issue.


sapcontrol -prot NI_HTTP -nr 01 -function Start


Is the actual system up and running? What do you see in the work directory logs of the shadow system.


Can you please post the latest logs.


Thanks

Rishi abrol

Former Member
0 Kudos

Hi Ali,

Pls. forget about the problem I said:

"

Plus, I use command sapcontrol to start my shadow instance, but no matching instance found. It's kind of wried. Do you know why?

linux-q0fx:s01adm 64> sapcontrol -nr 0 -function InstanceStart linux-q0fx 01

15.12.2013 08:09:17
InstanceStart
FAIL: Invalid parameter: No matching instance found

"

Turns out I typed wrongly...

But I also got errors when I correct it:

linux-q0fx:s01adm 68> sapcontrol -nr 01 -function InstanceStart linux-q0fx 01

15.12.2013 20:28:01
InstanceStart
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

Same as this situation:

linux-q0fx:s01adm 65> sapcontrol -prot NI_HTTP -nr 01 -function Start

15.12.2013 20:20:32
Start
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

Thank you!

Best Regards,

Carina Hu

Former Member
0 Kudos


Hi Rishi,

I am not fully sure that there is no network issue. Could you pls. describe it in detail?

And I've checked these two notes.

Note 1872990 describes a similar issue with mine but not fully match.

And the error message note 1791730 depitcts  is excatly the same with mine except that I am not run into this error in "installing java engine".

But anyway, I do what it saies again (I've done this before and it doesn't work):

I use command ps -ef | grep sapstartsrv and got outputs like this:

linux-q0fx:~/Desktop # ps -ef | grep sapstartsrv

sapadm    3558     1  0 20:51 ?        00:00:00 /usr/sap/hostctrl/exe/sapstartsrv pf=/usr/sap/hostctrl/exe/host_profile -D

s01adm    3798     1  0 20:51 ?        00:00:01 /usr/sap/S01/DVEBMGS00/exe/sapstartsrv pf=/usr/sap/S01/SYS/profile/START_DVEBMGS00_linux-q0fx -D -u s01adm

daaadm    4031     1  0 20:51 ?        00:00:00 /usr/sap/DAA/SMDA96/exe/sapstartsrv pf=/usr/sap/DAA/SYS/profile/DAA_SMDA96_linux-q0fx -D -u daaadm

root     10405 10380  0 21:02 pts/0    00:00:00 grep sapstartsrv


I think these sapstartsrv processes are related with my original instance instead of the shadow instance because my shadow instance profiles are under parth: /usr/sap/S01/upg/...

So I followed the step 2:

linux-q0fx:s01adm 56> sapstartsrv pf=/usr/sap/S01/upg/abap/S01/SYS/profile/S01_DVEBMGS01_linux-q0fx -D

No outputs are followed with this command and i reboot the system and restart the upgrade program.

But still got the same error.

Plus, I used the command you give and also got the same error:

linux-q0fx:s01adm 65> sapcontrol -prot NI_HTTP -nr 01 -function Start

15.12.2013 20:20:32
Start
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

Thank you for your patience. Thank you!

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi,

Is the main instance running?

When you run this command are you in the kernel directory of the upgrade shadow system.

I think it is /usr/sap/S01/upg/abap/exe. Try to run the command in this directory. What are the latest logs in the sum directory. What are the latest logs in the work directory in the shadow system.

sapstartsrv pf=/usr/sap/S01/upg/abap/S01/SYS/profile/S01_DVEBMGS01_linux-q0fx -D


Thanks

Rishi Abrol

Former Member
0 Kudos

Hi Rishi,

I can logon to the original system. So yes, I think the main instance is running.

And i run the command

sapstartsrv pf=/usr/sap/S01/upg/abap/S01/SYS/profile/S01_DVEBMGS01_linux-q0fx -D

under parth /usr/sap/S01/upg/abap/exe this time.

But the error still exists.

Logs in directories tmp and work are mostly upgraded to 11 Dec, the day my computer power failed.


The log upalter.log contents are: Waiting for input in phase

Thank you!

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi,

Can you try to run the below command in both the directory.

/usr/sap/S01/upg/abap/exe


sapcontrol -nr 01 -function GetEnvironment



/usr/sap/S01/D*/exe


sapcontrol -nr 00 -function GetEnvironment


Just a silly question did you run the sapcontrol in this directory /usr/sap/S01/upg/abap/exe for the start.

Thanks

RishI Abrol

Former Member
0 Kudos

Hi Rishl,

Command

sapcontrol -nr 01 -function GetEnvironment

under parth

/usr/sap/S01/upg/abap/exe

gets error:

16.12.2013 01:23:20

GetEnvironment

FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

And Command

sapcontrol -nr 00 -function GetEnvironment

under parth

/usr/sap/S01/D*/exe

gets outputs.

The last question:

did you run the sapcontrol in this directory /usr/sap/S01/upg/abap/exe for the start

I assume that you are asking if I had run command:

sapcontrol -prot NI_HTTP -nr 01 -function Start

under parth /usr/sap/S01/upg/abap/exe.

If it is, then yes and I got error message same as before:

Start
FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

I am thankful for your reply.

Could you pls. give me some references about sapcontrol and sapstartsrv explanations?

Since I always do what you suggests without knowing why.

Thank you! O(∩_∩)O~

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi,

Can you please run the below command in both the directory.

  1. stop the instance
  2. cleanup the shared memory segments with command "cleanipc NN remove", where NN = instance number
  3. manually remove the corresponding /tmp/.sapstream#### files from '/tmp' directory
  4. check if the <sid>adm user has write permissions to /tmp directory

Then start back the systems and see if all good.

sapcontrol -nr <instance number> -function GetVersionInfo


The SAP start service provides the following functions for monitoring SAP systems, instances, and processes.

  • Starting and stopping
  • Monitoring the runtime state
  • Reading logs, traces, and configuration files
  • Technical information, such as network ports, active sessions, thread lists, etc.

These services are provided on SAPControl SOAP Web Service, and used by SAP monitoring tools (SAP Managment Console, NetWeaver Administrator, etc.).


can you try to download new sapcontrol and see if it fixes the issue.


Check the below note alos.


1937296 - SUM fails at start-shadow-instance-dm step


Thanks

Rishi Abrol

Former Member
0 Kudos

Hi,

The fact is, I can barely start or stop the instance in both the directories.


I can start and stop the main instance (00).

All commands under parth /usr/sap/S01/D*/exe  are run good.

But I cannot stop or start the shadow instance(01).

Nearly all commands under parth /usr/sap/S01/upg/abap/exe got the same error message:

Start

FAIL: NIECONN_REFUSED (Connection refused), NiRawConnect failed in plugin_fopen()

So I think there should be some connection issues with my shadow instance.

But in case I missunderstand your suggestion, just let me know. I am new in SAP and know little about NW and linux.

Thank you!

Best Regards,

Carina Hu

Former Member
0 Kudos

Did you try to clean the files in the /tmp/.sapstream#### .

Thanks

Rishi Abrol

Former Member
0 Kudos

Did you try what Rishi suggested?

clean the files in the/tmp/.sapstream#### .


Also if none works you should also consider a OS restart

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello


Plus, I use command sapcontrol to start my shadow instance, but no matching instance found. It's kind of wried. Do you know why?

linux-q0fx:s01adm 64> sapcontrol -nr 0 -function InstanceStart linux-q0fx 01

To start the shadow instance you need to use SAPup startshd from the <upgrade_directory>/abap/bin directory.

Regards

RB

Former Member
0 Kudos

Hi,

Sorry, my mistake. I fogot to say that I haven't found a file like this in whichever tmp folder.

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi Srithar,

Same as I have replied to Rishl, I haven't found any sapstream like files.

And I also tried to restart OS many times, didn't work either.

Thank you.

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi,

did you try to run the below command .

ls -la | grep sapst

Thanks

Rishi Abrol

Former Member
0 Kudos

Hi Reagan,

If you mean I need to start the shadow instance under folder /usr/sap/<SID>/upg/abap/bin use the following command:  SAPup startshd,

then yes i have tried but failed with the following error:

FATAL ERROR: Process 'sapcontrol' exited with 1, see '/usr/sap/S01/upg/abap/log/SAPup.ECO' for details

I've tried this in the first place.

Thank you!

Best Regards,

Carina Hu

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Carina

After starting the shadow instance please provide the latest logs from the /usr/sap/S01/upg/abap/log location.

Regards

RB

Former Member
0 Kudos

Hi,

The latest logs are SAPup.ECO and SAPup.log.

Those two logs are too large. So pls. tell me if you need me to post them.

Thank you

Best Regards,

Carina Hu

Former Member
0 Kudos

Hi,

Sorry, my mistake.

I found those files and redo what you suggests (the 4 steps in order). But the same error still occurs.

And before I redo this, I also upgraded my SAP Host Agent to the newest level and reboot the OS also.

I found out that the sapstartsrv process doesn't really up even I run command: sapstartsapsrv pf=/usr/sap/S01/upg/abap/S01/SYS/profile/S01_DVEBMGS01_linux-q0fx under path: /usr/sap/S01/upg/abap/bin successfully.

Because when I run ps -ef | grep sapstartsrv I got outputs as follows:

linux-q0fx:s01adm 50> ps -ef | grep saps

s01adm    9747     1  0 03:33 ?        00:00:02 /usr/sap/S01/DVEBMGS00/exe/sapstartsrv pf=/usr/sap/S01/SYS/profile/START_DVEBMGS00_linux-q0fx -D -u s01adm

s01adm    9989     1  0 03:33 ?        00:00:00 sapstart pf=/usr/sap/S01/SYS/profile/START_DVEBMGS00_linux-q0fx

s01adm   11442 10421  0 03:57 pts/3    00:00:00 grep saps

I think there's no sapstartsrv process related to my shadow instance is running, right?

Thank you!

Best regards,

Carina Hu

Former Member
0 Kudos

Hi,

Can you try one thing .

kill -2 <pid of sapstartsrv>


Try to run the below command.


/usr/sap/S01/DVEBMGS00/exe/sapstartsrv pf=/usr/sap/S01/SYS/profile/INstance profile -D -u s01adm


As we see that the above process is running with the start profile of the main instance.


See if this works and then you can start the shadow system.


Thanks

Rishi Abrol

balazs_takacs
Advisor
Advisor
0 Kudos

Hello Carina,

if the SAPup.ECO logfile reports NIECONN_REFUSED again the sapstartsrv of the SHD is still not running.

If I got the correct content from the history above you should start the sapstartsrv with the command:

/usr/sap/S01/upg/abap/exe/sapstartsrv pf=/usr/sap/S01/upg/abap/S01/SYS/profile/S01_DVEBMGS01_linux-q0fx -D

executed as user s01adm.

Check whether the sapstartsrv got really started ( ps -ef | grep sapstartsrv | grep DVEBMGS01 )

If the process is running you can try to resume the upgrade tool.

In case you do not see the sapstartsrv process of SHD please try to execute the command without the -D option at the end (with the -D option the sapstartsrv starts as daemon).

Without the -D option you shoould get further info why the sapstartsrv is not starting.

Regards Balázs

Reagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Is it possible to stop the SAP systems (primary, shadow and database) and then restart the server ?

If that is not possible then stop the shadow instance and kill all the work processes used by the shadow system.

Start the shadow system and check the logs in the upgrade directory and also check the work processes trace files of the shadow system to identify why the shadow instance fails to start.

Regards

RB

Former Member
0 Kudos

Hi,

Yes, I've tried to stop and restart the server, doesn't work. And I am not able to stop the shadow instance since the command sapcontrol -nr 01 -function InstanceStop linux-q0fx 01 got connection refused error.

Best Regards,

Carina Hu