SAP Knowledge Base Article - Preview

2987671 - ensmon fails with "Caught an exception in the main menu"

Symptom

Monitoring the enqueue server or the enqueue replication server using the program ensmon (ensmon.exe on Windows) fails when using the options -H <host> -I <instance number> in the command (and also the profile file option pf=<profile> is not specified in the command):

ensmon -H <host> -I <instance number>
Try to connect to host <host> service 32<instance number>
Enqueue Server monitor main menu
==>2
Caught an exception in the main menu

And the following information is written in the dev_ensmon trace file, which is located in the Enqueue sever's work directory (LocalDrive\usr\sap\<SID>\SCS<XX>\work):

[Thr 01] NiIGetServName: port 32<instance number> = servicename 'sapdp<instance number>'
[Thr 01] NiIRead: SiRecv failed for hdl 2/sock 4
[Thr 01] (SI_ECONN_BROKEN/0; UD; ST; <host IP>:<port number>)
[Thr 01] EncRecvParams: error received, rc -6
[Thr 01] EncNiConnect: parameter negotiation failed (NIESERV_UNKNOWN). Closing connection
[Thr 01] NiICloseHandle: shutdown and close hdl 2/sock 4
[Thr 01] NiBufIClose: clear buffered extension for hdl 2
[Thr 01] EncCliIConnect: no connect (rc -3) trying new timeout 5000
[Thr 01] *** WARNING => EncCliIConnect: protocol error when connecting to enqueue server at <hostname>/sapdp<instance_number> through layer EncCli (rc=-3) [enccli.c 1076]
[Thr 01] *** WARNING => EncCliIConnect: check the configuration of the enqueue server [enccli.c 1078]
[Thr 01] *** WARNING => EncCliReq: failed to connect to server (see SAP note 1943531) [enccli.c 507]
[Thr 01] EnsaCliDoRequest: afterStopTheWorld:0
[Thr 01] *** ERROR => EnsaCliDoRequest: DoRequest failed (rc=107): 654 bytes on con. 0 in layer 0 (EncCli) (2/1) [ensacli.c 408]
[Thr 01] EncAdmGetReplInfo: EnsaCliReq returned rc=7
[Thr 01] *** ERROR => EnAdmGetReplInfoRequest: request execution failed (rc=2) [enadmcli.cpp 540]
[Thr 01] *** ERROR => main: exception caught in main_menu:
==> <error> [ensmon.cpp 645]


Read more...

Environment

  • Operating System independent
  • Database independent
  • SAP NetWeaver
  • SAP Web Application Server for SAP S/4HANA
  • ABAP Platform
  • Parameter system/secure_communication = ON is set in the system

Product

ABAP platform all versions ; SAP NetWeaver all versions ; SAP Web Application Server for SAP S/4HANA all versions

Keywords

ensmon, ensmon.exe, Caught an exception in the main menu, Caught an exception, SI_ECONN_BROKEN, parameter negotiation failed, NIESERV_UNKNOWN, protocol error when connecting to enqueue server, -H <host> -I <instance number>, pf=<profile>, dev_ensmon, work directory, LocalDrive\usr\sap\<SID>\SCS<XX>\work, EncCliIConnect: protocol error when connecting to enqueue server at <hostname>/sapdp<instance_number> through layer EncCli, EncCliIConnect: check the configuration of the enqueue server, SAP SSL library, system/secure_communication, EnAdmGetReplInfoRequest: request execution failed, default profile, ensmon pf=<profile> , KBA , BC-CST-EQ , Enqueue , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.