-
Notifications
You must be signed in to change notification settings - Fork 893
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
ThreadStream.write "worker has exited" error. #1429
Comments
My initial thought was that this is related to #1400. But it's pino itself that's causing the error (not just that there's some other error, and we're logging during exit). |
Does that code work correctly in development / local machine? |
That's the mysterious part -- I can't reproduce it locally on Mac OS X. (Will be able to test it locally on Linux tomorrow). |
If you can provide a minimal reproduction code, I'll be happy to test this. |
Hi @mcollina, Here is the logger snippet,
Getting worker has exited error only when elasticsearch is not running. Pino version: 7.3.0 |
This seems a duplicate of pinojs/pino-elasticsearch#140. |
@mcollina - this could be a duplicate of pinojs/pino-elasticsearch#140, but we got the same thread worker error when testing with the |
So this is not correct, right? |
How often does this reproduce? Have you got a way to reproduce it reliably? |
I have a few ideas on why this can happen but I really need a repro to verify them. |
@mcollina thanks for looking at this, muchly appreciated. I'm going to work with our devops team to see if we can replicate. (Because, frustratingly, we can't replicate the error locally on our desktops, on MacOS or Linux, but it happens consistently on our dev cluster (k8s etc)). |
Here is my theory: the transport crash because of a bug. However the error is not reported correctly on the main thread due to a race condition. |
Ok, so, we may have solved the issue, and should now be running on pino 7, via PR EtherealEngine/etherealengine#5946 |
what was it? |
@mcollina - I'm not entirely sure, but it seems to be fixed by using |
You should use https://getpino.io/#/docs/api?id=pino-multistream, not pino-multi-stream. |
Ah, thanks for the heads up! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi all. We're getting an error trying to use Pino v7.10.0 (and
pino-pretty
v7.6.1) in our server (running on Node >=17).our package.json:
The logger config is fairly standard: https://github.com/XRFoundation/XREngine/blob/dev/packages/server-core/src/logger.ts
And this is the error we're getting on startup (using a standard builder deployment inside AWS kubernetes, Node v18).
Similarly, we ran into a similar error using the ElasticSearch transport (not on kubernetes, this is just Ubuntu linux on AWS):
We're able to work around it currently (by downgrading to pino v6), but would definitely like to take advantage of the multi-threaded version 7.
Is there anything we're missing here?
The text was updated successfully, but these errors were encountered: