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

pouchdb-server wont run on docker using node:12-alpine #422

Open
jonathanmcchesney opened this issue Jan 24, 2020 · 1 comment
Open

pouchdb-server wont run on docker using node:12-alpine #422

jonathanmcchesney opened this issue Jan 24, 2020 · 1 comment

Comments

@jonathanmcchesney
Copy link

jonathanmcchesney commented Jan 24, 2020

Current version of pouchdb-server throws a segmentation fault when running in docker using node:12-alpine, falling back to node:10-alpine still results in a seg fault for this release version. Previous release V4.1.0 seems to run fine on node:10-alpine, but not on later alpine versions.

Dockerfile:

FROM node:12.10.0-alpine

RUN apk --update add curl g++ make python valgrind && \
     npm install --global --unsafe-perm=true pouchdb-server && \
     rm -rf /root/.[^.]* && \
     apk del g++ make python

RUN npm install pouchdb-adapter-leveldb

WORKDIR /pouchdb

Run: docker run -p 5984:5984 --hostname=pouchdb-server --name=pouchdb-server imageName

Running valgrind on pouchdb-server -p 5984

--25-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--25-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--25-- REDIR: 0x4024dfb (libc.musl-x86_64.so.1:free) redirected to 0x489d6cc (free)
--25-- REDIR: 0x404fe59 (libc.musl-x86_64.so.1:strlen) redirected to 0x489f38d (strlen)
--25-- REDIR: 0x4024d4e (libc.musl-x86_64.so.1:calloc) redirected to 0x489e65e (calloc)
--25-- REDIR: 0x404fc1d (libc.musl-x86_64.so.1:strcpy) redirected to 0x489f3ef (strcpy)
--25-- REDIR: 0x404fb69 (libc.musl-x86_64.so.1:strchr) redirected to 0x489f0ea (strchr)
--25-- REDIR: 0x404ff5f (libc.musl-x86_64.so.1:strncmp) redirected to 0x489f7f3 (strncmp)
--25-- REDIR: 0x404fb79 (libc.musl-x86_64.so.1:strchrnul) redirected to 0x48a24e0 (strchrnul)
--25-- REDIR: 0x404fc05 (libc.musl-x86_64.so.1:strcmp) redirected to 0x489fd3a (strcmp)
--25-- REDIR: 0x405001d (libc.musl-x86_64.so.1:strrchr) redirected to 0x489f057 (strrchr)
--25-- REDIR: 0x404ffe3 (libc.musl-x86_64.so.1:strnlen) redirected to 0x489f367 (strnlen)
Segmentation fault (core dumped)```

@sstewart199
Copy link

Hi Jonathan,
Funny you mention this, I just put up a PR to update the readme explaining how to install on Alpine with node 12.

#424

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

No branches or pull requests

2 participants