-
Notifications
You must be signed in to change notification settings - Fork 74
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
SAP NWRFC SDK on Darwin works for single processes only #143
Comments
@bsrdjan I installed the nwrfcsdk, then set the paths as you've stated. I now no longer get the codesign error but somethings still not right, because I get this error "Could not open the ICU common library". Could you explain what's missing, please? EDIT: actually got this working, when I set PS: If someone comes across this - if you have troubles to set these variables permanently then put the above export commands into |
Thank you @jack0088. Please consider that DYLD* variables are purged in child processes, no matter if set in shell, node app etc. I came across that after having a simple node script working stand-alone with DYLD* and failing when executed by |
Did you try using previous, PL5 NWRFC SDK version, with the patch, until this issue solved? |
to people affected by this, I would recommend using Docker as it specifically addresses issues like this. @bsrdjan I'm working on getting a light docker container working with node and node-rfc, if there is interest in SAP including or publishing this dockerfile I will share. |
Yes. that would be another nice workaround for users affected with Darwin/PL6 issue, we still work on. Would you publish here, inside the new docker folder for example, as a contributor, or on docker hub? |
I would suggest publishing the dockerfile here on github and the built docker image on dockerhub. |
@bsrdjan @PaulWieland - I am using below Docker File. My use-case was different as I want to call SAP from Pivotal Cloud Foundry so I hosted container on PKS. I guess below DockerFile will work for any scenario. Dockerfile
.dockerignore
Thanks! |
Thanks for sharing your dockerfile @guptar85. The node:lts base image is quite large at nearly 1GB. I'm trying to reduce the image size by building off of one of the really small base images for node (Alpine Linux is 5mb, and alpine + node is ~40mb for example). It's proving to be a challenge because the NWRFCSDK doesn't work in MUSL based linux environments. I am making progress with some of the other "slim" glibc based images. I still think it should be possible to get a working node + node-rfc base image that is in the 200mb or less range, but we will see :) |
@PaulWieland - Yes initially I tried with Alpine but it didn't work with NWRFCSDK. If you change the version of Node from Below screenshot is few comparisons with different tag's I tried with the dockerfile Thanks! |
just to be mentioned, there is also a official Dockerfile avail. by SAP https://github.com/SAP/devops-docker-images/tree/master/node-rfc |
Is there a recommended way to get the PL 5 Version of the NWRFCSDK for Catalina? I am only able to download the PL6 from the Launchpad. |
Sorry, the PL5 is not available on SAP Support Portal. |
The release 2.2.0 with PL7 fixes this issue |
After Apple security policy elevated, patched SAP NWRFC SDK does not work any more on Darwin 10.15.4, see #140.
Un-patched SDK, from SAP Support Portal, can be used with DYLD_FALLBACK_LIBRARY_PATH env variable set to SDK binaries path (
$SAPNWRFC_HOME/lib
folder) and it works for single process only.Possible solutions are investigated with SAP NWRFC SDK experts.
Existing users
If your SAP NWRFC SDK and node-rfc already work on Darwin, you can upgrade Darwin and node-rfc, keeping the full functionality. If you upgrade SAP NWRFC SDK, it works in single process apps only.
New users
Install the SAP NWRFC SDK and set DYLD variable, like described in README. It works in single process apps only until this issue closed.
The text was updated successfully, but these errors were encountered: