vacuumlabs / adalite-backend-service

Icarus, a reference implementation for a lightweight wallet developed by the IOHK Engineering Team.
Apache License 2.0
2 stars 7 forks source link

Segmentation fault #74

Open atomlab opened 4 years ago

atomlab commented 4 years ago

Hi. Application crashes from time to time with error Segmentation fault. Restarting container helps. Branch: develop, last commit: 774f379.

"2020-02-01T10:04:25" yarn run v1.21.1
"2020-02-01T10:04:25" $ NODE_ENV=production node ./build/index.js | bunyan
"2020-02-02T01:44:00" Segmentation fault (core dumped)
"2020-02-02T01:44:00" Done in 56374.89s.

dmesg

[Sun Feb  2 01:43:39 2020] node[3124]: segfault at 35fce213eb40 ip 00007fa523f9f8b1 sp 00007fff90ed1f38 error 4 in ld-musl-x86_64.so.1[7fa523f65000+46000]

Dockerfile

FROM node:10.18.1-alpine3.11

EXPOSE 8080

WORKDIR /opt/app
COPY ./ .

RUN mkdir -p /var/log/app
RUN wget -q https://raw.githubusercontent.com/vishnubob/wait-for-it/9995b721327eac7a88f0dce314ea074d5169634f/wait-for-it.sh -O wait-for-it.sh
RUN chmod +x wait-for-it.sh

RUN yarn install
RUN yarn build

CMD ["/bin/sh", "-c", "yarn start"]