nodeshift-archived/centos7-s2i-nodejs

git-remote-https: error while loading shared libraries: libcurl-httpd24.so.4

lholmquist opened this issue · 0 comments

A user reported that they cannot do a git clone from inside a deployment(pod).

here is a repo that will reproduce the error: https://github.com/redallen/breakgit

I've run this on my local minishift. After cloning locally, you can run:

npx nodeshift --strictSSL=false

The pod logs is as follows:


git version 2.9.3
--
  | Environment:
  | DEV_MODE=false
  | NODE_ENV=production
  | DEBUG_PORT=5858
  | Running as user uid=1000140000(default) gid=0(root) groups=0(root),1000140000
  | Launching via npm...
  | npm info it worked if it ends with ok
  | npm info using npm@6.4.1
  | npm info using node@v8.15.0
  | npm info lifecycle breakgit@1.0.0~prestart: breakgit@1.0.0
  | npm info lifecycle breakgit@1.0.0~start: breakgit@1.0.0
  | > breakgit@1.0.0 start /opt/app-root/src
  | > git clone git@github.com:kubernetes/community.git
  | Cloning into 'community'...
  | git-remote-https: error while loading shared libraries: libcurl-httpd24.so.4: cannot open shared object file: No such file or directory
  | npm info lifecycle breakgit@1.0.0~poststart: breakgit@1.0.0
  | npm timing npm Completed in 140ms
  | npm info ok


Got the same error when running with node 11 and node 8, assuming it is the same with node 10 also.

I also tried changing the clone to use ssh instead of https(as seen in the log above), but i got the same error

It looks like it does work with SCL node 8, but not our rhoar-8 image