Error installing requirements - default-jre

My previously working https://zserio.streamlit.app/ cannot boot anymore. It reports an error during packages.txt installation. But I have only default-jre pacakge.

Output in “manage app” console:

Setting up ca-certificates-java (20230103) ...

Exception in thread "main" [2023-06-22 10:28:40.755332] java.lang.InternalError: Error loading java.security file

	at java.base/java.security.Security.initialize(Security.java:106)

	at java.base/java.security.Security$1.run(Security.java:84)

	at java.base/java.security.Security$1.run(Security.java:82)

	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)

	at java.base/java.security.Security.<clinit>(Security.java:82)

	at java.base/sun.security.jca.ProviderList.<init>(ProviderList.java:178)

	at java.base/sun.security.jca.ProviderList$2.run(ProviderList.java:96)

	at java.base/sun.security.jca.ProviderList$2.run(ProviderList.java:94)

	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)

	at java.base/sun.security.jca.ProviderList.fromSecurityProperties(ProviderList.java:93)

	at java.base/sun.security.jca.Providers.<clinit>(Providers.java:55)

	at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:156)

	at java.base/java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:193)

	at org.debian.security.KeyStoreHandler.<init>(KeyStoreHandler.java:50)

	at org.debian.security.UpdateCertificates.<init>(UpdateCertificates.java:65)

	at org.debian.security.UpdateCertificates.main(UpdateCertificates.java:51)

dpkg: error processing package ca-certificates-java (--configure):
Errors were encountered while processing:

 ca-certificates-java

 openjdk-17-jre-headless:amd64

 openjdk-17-jre:amd64

 default-jre

E: Sub-process /usr/bin/dpkg returned an error code (1)

[10:56:20] ❗️ installer returned a non-zero exit code

[10:56:20] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

[10:57:59] ❗️ Streamlit server consistently failed status checks

[10:57:59] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.
1 Like

Hi @Mi-La,

Thanks for posting!

Can you share your repo? If you’re not able to do that, can you share your requirements.txt and packages.txt?

Hi @tonykip,

sure, the repo is: GitHub - zserio-streamlit/zserio-streamlit: Interactive zserio compiler based on streamlit using zserio python package
packages.txt contains only:

default-jre

requirements.txt:

streamlit
streamlit_ace
zserio==2.11.0

Any solutions to this? I am getting the same error.

Same for me!

Currently changing default-jre to openjdk-17-jre seems to help.

4 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.