Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to SAP from AWS Lambda #51

Open
mathewanil opened this issue Sep 15, 2017 · 4 comments
Open

Unable to connect to SAP from AWS Lambda #51

mathewanil opened this issue Sep 15, 2017 · 4 comments

Comments

@mathewanil
Copy link

Hi All,

I am trying to connect our SAP system from AWS Lambda. I am getting the following error
FC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message= LOCATION CPIC (TCP/IP) on local host with Unicode ERROR hostname 'ip-10-34-143-151' unknown TIME Fri Sep 15 21:24:28 2017 RELEASE 721 COMPONENT NI (network interface) VERSION 40 RC -2 MODULE nixxhl.cpp LINE 193 DETAIL NiHLGetNodeAddr: hostname cached as unknown COUNTER 2 [MSG: class=, type=, number=, v1-4:=;;;] RFC_COMMUNICATION_FAILURE (rc=1): key=RFC_COMMUNICATION_FAILURE, message= LOCATION CPIC (TCP/IP) on local host with Unicode ERROR hostname 'ip-10-34-143-151' unknown TIME Fri Sep 15 21:24:28 2017 RELEASE 721 COMPONENT NI (network interface) VERSION 40 RC -2 MODULE nixxhl.cpp LINE 193 DETAIL NiHLGetNodeAddr: hostname cached as unknown COUNTER 2 [MSG: class=, type=, number=, v1-4:=;;;]: CommunicationError
the call stack shows
File "src/pyrfc/_pyrfc.pyx", line 164, in pyrfc._pyrfc.Connection.__init__ File "src/pyrfc/_pyrfc.pyx", line 208, in pyrfc._pyrfc.Connection._open File "src/pyrfc/_pyrfc.pyx", line 238, in pyrfc._pyrfc.Connection._error pyrfc._exception.CommunicationError: RFC_COMMUNICATION_FAILURE (rc=1):
ip-10-34-143-151 is the hostname that AWS gives to the instance which is running the lambda function

my sapcfg looks like
mshost=146.215.xxx.xx
msserv=3611

Any help would be appreciated

@bsrdjan
Copy link
Member

bsrdjan commented Nov 8, 2017

Can you run niping from AWS Lambda and try to reach the ABAP system via niping? See #43

@bsrdjan
Copy link
Member

bsrdjan commented Nov 30, 2017

node-rfc requires native SAP libraries to be deployed. If that not possible on Lambda, the connector can't be used there. Similar question posted here: SAP/node-rfc#35.

@bsrdjan
Copy link
Member

bsrdjan commented Nov 3, 2020

The feature request to enable SAP NWRFC SDK usage on AWS, in Connectivity context, can be created for:

Security Services category of the SAP Cloud Platform – Platform Foundation

@bsrdjan
Copy link
Member

bsrdjan commented Feb 18, 2021

Here the feature request for node-rfc cloud connectivity. You may comment or vote or create similar request for PyRFC

SAP/node-rfc#145 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants