Closed meysholdt closed 5 years ago
I've managed to recreate the error; now investigating fixes
So the error from the line ev._sigev_un._tid = profiler_tid;
is the only one; commenting the block out (until return NULL
) allows Appmetrics to compile and run, but without the watchdog feature (automatically turning on CPU profiling).
It seems to be that Linux Alpine is so trimmed down that the sigevent
object does not have the _sigev_un
property.
While we are investigating how to resolve this, you could comment the block out locally to get Appmetrics running without the watchdog feature.
@meysholdt, we've disabled watchdog on linux alpine. Would you mind confirming whether this has resolved your issue?
Thanks a lot for the fix!
Running docker build
on the following Dockerfile succeeds for me:
FROM node:10.15.3-alpine
RUN apk add --no-cache --update \
curl \
python \
build-base \
libexecinfo-dev \
libc6-compat \
git
RUN git clone https://github.com/RuntimeTools/appmetrics.git
WORKDIR /appmetrics
RUN git submodule update --init --recursive
RUN npm install
RUN npm build
``
:-D Will there be a release soon with this fix?
Hi! Faced with this problem too. When will it be approximately fixed?
I also stumbled on this error. Is there an ETA for the next release?
Update: after cloning latest master, I faced https://github.com/RuntimeTools/omr-agentcore/issues/90
This issue is fixed in the latest release of Appmetrics (5.0.3). There is no currentl outlook on when RuntimeTools/omr-agentcore#90 will be fixed.
Thank you for the update.
FWIW I've worked around this issue by switching to ubuntu:18.04
instead of Alpine Linux. It increases the image size in about 6 times (~5MB to ~29M) but it's not the end of the world.
my
Dockerfile
:when I run
docker build .
I get the following log output:Do you have any pointers what's wrong here? Can I do something in my dockerfile to make
yarn global add appmetrics
work?I'm using
yarn global add appmetrics
to have a simpler reproducible example. I actually have an app that includes appmetrics version 3.x, 4.x or 5.x viapackage.json
. Thank you for your help.I did see the issues https://github.com/RuntimeTools/appmetrics/issues/438, https://github.com/RuntimeTools/appmetrics-statsd/issues/11, https://github.com/RuntimeTools/appmetrics/issues/454, but could not extract any informaiton that would have made my example work.