We are setting up sap_basis but we can't connect to the resource. We are not able to create the profile.
The sap_basis logs the following:
Mar 11 13:15:53:596 [attach_socket, sap_basis] cbVerifyResource( webServicePort=0, hanaPort=0, pass=#######=, hanaAvailable=false, sid=RMQ, hanaHost=, hanaPassword=, port=100, host=##.##.##.#, client=100, sysnr=00, lang=en, hanaUser=, user=<USER>, logon_group_name=, resourceType=sapAbap)
Mar 11 13:15:53:596 [attach_socket, sap_basis] For resource tid TypeName=RESOURCE typeInfoFound=false
Mar 11 13:15:53:597 [attach_socket, sap_basis] connect() for verify callback called: resource = '<resource>'
Mar 11 13:15:53:597 [attach_socket, sap_basis] sapSapSessionValidating connection for host
##.##.##.#
Mar 11 13:15:53:597 [attach_socket, sap_basis] JCO SNC ENABLED: false
Mar 11 13:15:53:597 [attach_socket, sap_basis] SAP DESTINATION 2:
##.##.##.#
Mar 11 13:15:53:639 [attach_socket, sap_basis] in login fun is in login fun is<BAPI_XMI_LOGON><INPUT><EXTCOMPANY></EXTCOMPANY><EXTPRODUCT></EXTPRODUCT><INTERFACE>XAL</INTERFACE><VERSION>1.0</VERSION></INPUT><OUTPUT><RETURN><TYPE>E</TYPE><ID>XM</ID><NUMBER>026</NUMBER><MESSAGE>You have no authorization to log on to interface XAL</MESSAGE><LOG_NO></LOG_NO><LOG_MSG_NO>000000</LOG_MSG_NO><MESSAGE_V1>XAL</MESSAGE_V1><MESSAGE_V2></MESSAGE_V2><MESSAGE_V3></MESSAGE_V3><MESSAGE_V4></MESSAGE_V4><PARAMETER></PARAMETER><ROW>0</ROW><FIELD></FIELD><SYSTEM>#######</SYSTEM></RETURN><SESSIONID></SESSIONID></OUTPUT></BAPI_XMI_LOGON>
Mar 11 13:15:53:639 [attach_socket, sap_basis]
<#######>
Mar 11 13:15:53:639 [attach_socket, sap_basis] sapSapSessionFailed to connect to the host Sap login has failed check log for more information. SESSIONID is
Mar 11 13:15:53:639 [attach_socket, sap_basis] java.lang.Exception: Sap login has failed check log for more information. SESSIONID is
at com.nimsoft.sap.JCOClient.getTestConnection(JCOClient.java:467)
at com.nimsoft.probe.common.ctd.SapSession.login(SapSession.java:559)
at com.nimsoft.probe.common.ctd.SapSession.testConnection(SapSession.java:421)
at com.nimsoft.probe.common.ctd.AbstractCtdProbeCallbackHandler.connect(AbstractCtdProbeCallbackHandler.java:1371)
at com.nimsoft.vm.BaseCallbackHandler.cbVerifyResource(BaseCallbackHandler.java:188)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.performCallback(NimServerSession.java:216)
at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.handleMessage(NimServerSession.java:169)
at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.run(NimServerSession.java:123)
Mar 11 13:15:53:639 [attach_socket, sap_basis] cbVerifyResource failed
Mar 11 13:15:53:639 [attach_socket, sap_basis] (12) login failed, Sap login has failed check log for more information. SESSIONID is
at com.nimsoft.probe.common.ctd.SapSession.login(SapSession.java:621)
at com.nimsoft.probe.common.ctd.SapSession.testConnection(SapSession.java:421)
at com.nimsoft.probe.common.ctd.AbstractCtdProbeCallbackHandler.connect(AbstractCtdProbeCallbackHandler.java:1371)
at com.nimsoft.vm.BaseCallbackHandler.cbVerifyResource(BaseCallbackHandler.java:188)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.performCallback(NimServerSession.java:216)
at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.handleMessage(NimServerSession.java:169)
at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.run(NimServerSession.java:123)
Authorization Failure: The log message indicates that the login attempt failed due to insufficient authorization:
MESSAGE: You have no authorization to log on to interface XAL
This suggests that the user <user> does not have the necessary authorizations to connect to the specified interface XAL.
AP Login Failure: After the authorization failure, the system tries to log off but encounters another error:
MESSAGE: Not logged on in interface XAL (function BAPI_XMI_LOGOFF)
This indicates that the login attempt was unsuccessful, so the logoff procedure fails as well.
Session Connection Failure: The connection to the SAP system is ultimately failing:
sapSapSessionFailed to connect to the host Sap login has failed check log for more information.
The user does not have the permissions to access the resource.
Check with the SAP Team if the user is configured with all the Access Requirements for SAP System User For (ABAP) and (ABAP + Java Stack) only