question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docker alpine-10 with aerospike not working

See original GitHub issue

My docker file is -


MAINTAINER me

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app

COPY package.json ./

RUN apk add --no-cache python2 make gcc g++ git libtool autoconf automake linux-headers \
openssl-dev zlib-dev libuv-dev

RUN git clone https://github.com/aerospike/aerospike-client-c.git && \
  cd aerospike-client-c && \
  git checkout --detach 4.3.20 && \
  git submodule update --init && \
  make EVENT_LIB=libuv

RUN npm install

VOLUME ["./logs"]

COPY . .

EXPOSE 9008

CMD [ "npm", "start" ]

On docker build, getting error -

make: *** [aerospike-client-c.target.mk:17: ebf8c619d512e7a1a724a0ecb06ec5eec50df7dc.intermediate] Error 1
rm ebf8c619d512e7a1a724a0ecb06ec5eec50df7dc.intermediate
make: Leaving directory '/usr/src/app/node_modules/aerospike/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.4.0-1077-aws
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/src/app/node_modules/aerospike
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! aerospike@3.10.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the aerospike@3.10.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
jheckingcommented, Aug 19, 2020

These are not errors but warnings that can be ignored. During startup, the client tries to check the OS network send/receive buffer sizes using the net.core.wmem_max/net.core.rmem_max system interfaces, which doesn’t work inside a Docker container. So the client falls back to using reasonable default values.

0reactions
pnutmathcommented, Aug 18, 2020

Following configuration I have used with latest Dockerfile.alpine in this project

This is I checked from this file

ENV AS_C_VERSION 4.6.16 ENV AS_NODEJS_VERSION 3.16.1

I am getting following errors:

Aug 18 2020 15:51:46 UTC: WARN (1) [as_pipe.c:208] [read_file] - Failed to open /proc/sys/net/core/wmem_max for reading
Aug 18 2020 15:51:46 UTC: WARN (1) [as_pipe.c:267] [get_buffer_size] - Failed to read /proc/sys/net/core/wmem_max; should be at least 5242880. Please verify.
Aug 18 2020 15:51:46 UTC: WARN (1) [as_pipe.c:208] [read_file] - Failed to open /proc/sys/net/core/rmem_max for reading
Aug 18 2020 15:51:46 UTC: WARN (1) [as_pipe.c:267] [get_buffer_size] - Failed to read /proc/sys/net/core/rmem_max; should be at least 15728640. Please verify.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Error within aerospike-client-c-src-4.6.8
I'm trying to put the Aerospike Node.js client into an alpine Docker container. This needs some building the client-c-src.
Read more >
node
Node.js is a JavaScript-based platform for server-side and networking applications. GitHub repo: https://github.com/nodejs/docker-node. Library reference. This ...
Read more >
Build and install aerospike 4.0.0 in python 3.8 alpine 3.16
18 (release), successfully installed aerospike using pip. Problem is that I got following error: uv_async_send: symbol not found ImportError: ...
Read more >
oDc - ALBA.Net
46120 river hill rd, Wetter bordesholm morgen, Amc 12 problems by topic, ... Jk traders, Homemade christmas village displays, Aerospike query example, ...
Read more >
aerospike - Official Image - Docker Hub
Running an Aerospike EE node with a feature key file in a mapped directory ... Injecting configuration parameters into the configuration template isn't ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found