-
Notifications
You must be signed in to change notification settings - Fork 176
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
Fix: Failed to start polaris on UnionTech OS Desktop 20 Pro. #971
Conversation
@mlsstart please sync your branch with latest main before raise for a code review. |
So quick run on my local (Mac) shows it is working without
Do you mind share a bit more info about your setup (e.g. OS) and provide full trace if possible. There are couple reasons which can cause "pthread_create failed (EPERM) for attributes: stacksize" error including not having enough memory allocated to the docker (check if u have sufficient memory allocated to your docker process if using docker desktop. IMO, I don't think it is a good idea to run with privileges flag. |
Hey, I'm with you on the --privileged flag thing. It's def not a good idea to use it for security reasons. |
I don't have a local env that I can use to reproduce this, do you mind sharing the output of 'docker info' as well? |
Here is the output of docker info: |
Let me take a look. It worked for me earlier this week. |
It seems like an issue of docker setting, or OS setting. I'm with @MonkeyCanCode that we should be careful of adding |
Yes. This may be related to moby/moby#47297. I see you have seccomp profile set to builtin, maybe try to change it to unconfined instead? Here is what I have on my local:
|
Thank you for suggesting setting the seccomp profile to the "unconfined" mode. I followed your advice, and the problem has been resolved. I suggest adding information about Docker settings on UnionTech OS Desktop 20 Pro to the quickstart.md. |
@mlsstart, Thanks for the confirmation! Feel free to file an issue/PR for the doc change. |
Starting the Java application using /opt/jboss/container/java/run/run-java.sh ...
INFO exec -a "java" java -XX:MaxRAMPercentage=80.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -cp "." -jar /deployments/quarkus-run.jar
INFO running in /deployments
[0.005s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
[0.005s][error ][gc,task ] Failed to create worker thread