-
Notifications
You must be signed in to change notification settings - Fork 189
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
Java crash on M4 Macs causing OCIS docker container restart loop #10965
Comments
This seems to be an M4-specific issue: |
Per this link, the fix seems to be JAVA_OPTS=“-XX:UseSVE=0” but I'm not sure where to put that... @micbar @ScharfViktor please help! |
This might be in the tika service: ocis/deployments/examples/ocis_full/tika.yml Lines 3 to 10 in 1f92622
You can check if this helps: tika:
image: ${TIKA_IMAGE:-apache/tika:latest-full}
# release notes: https://tika.apache.org
networks:
ocis-net:
restart: always
environment:
JAVA_OPTS: "-XX:UseSVE=0"
logging:
driver: ${LOG_DRIVER:-local} |
Hi @saw-jan! Tried that, but no luck so far. Also tried adding to .env. I thought maybe something needed to be compiled in, like an ldflag? |
oCIS does not use JAVA.
You can see that it's Tika. This is not an oCIS bug. I think it would be a better fit for the Tika issue tracker: https://issues.apache.org/jira/projects/TIKA/issues/ |
see also eg. https://stackoverflow.com/questions/5241743/how-do-i-use-the-java-opts-environment-variable This means it needs to go in the docker compose |
Thank you @wkloucek, I will log the issue with the Tika team. I added the env var per @saw-jan suggestion, but it didn't work. Is there somewhere else in the container it needs to be set? I tried: -adding to .env as JAVA_OPTS="-XX:UseSVE=0" |
Maybe try |
@saw-jan you are my hero! That did it :) |
@wkloucek I will log my issue with Tika but in the meantime, it seems adding this to the ocis_full deployment example would be a good idea. Thanks everyone. |
I have a new WOPI deployment running in a Ubuntu 24.04.1 VM on an M4 Mac host. After finishing the deployment, the Tika container keeps restarting with a Java crash.
The ocis-rolling container and apache containers last a matter of seconds before restarting.
The logs look like this:
When I migrate this VM to an M1 CPU host with otherwise identical configuration, it works fine:
Any ideas how to rectify?
The text was updated successfully, but these errors were encountered: