I have just tested the m31 docker image, and I can no longer upload apps (development).
How can I disable the app signing thing?
Also the built app now pulls a lot of stuff in the Manifest and I do not know which of the third party libs pulls that stuff in. I upgraded all third party libs, to latest.
Here is an excerpt of the strange Imports:
java.beans,
java.io,
java.lang,
java.lang.annotation,
java.lang.invoke,
java.lang.management,
java.lang.ref,
java.lang.reflect,
java.math,
java.net,
java.nio,
java.nio.channels,
java.nio.charset,
java.nio.file,
java.nio.file.attribute,
java.nio.file.spi,
java.security,
java.security.cert,
java.sql,
java.text,
java.time,
java.time.chrono,
java.time.format,
java.time.temporal,
java.util,
java.util.concurrent,
java.util.concurrent.atomic,
java.util.concurrent.locks,
java.util.function,
java.util.logging,
java.util.regex,
java.util.stream,
java.util.zip,
javax.annotation,
javax.crypto,
javax.crypto.spec,
javax.lang.model.element,
javax.naming,
javax.net,
javax.net.ssl,
javax.security.auth.x500,
javax.xml.parsers,
javax.xml.transform,
javax.xml.transform.dom,
javax.xml.transform.stream,
javax.xml.xpath,
...
Is there a recommendation what to do? Should I manually mark them as optional? Currently my app does not start and gets a timeout. No osgi error, no other log. Simply does not enable within timeout. Is there an env var to increase the app startup time?
thanks a lot.
My compile scope dependencies
[INFO] +- com.google.code.gson:gson:jar:2.12.1:compile
[INFO] +- org.apache.commons:commons-configuration2:jar:2.11.0:compile
[INFO] +- com.atlassian.plugins:atlassian-plugins-osgi-javaconfig:jar:0.6.0:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.24.3:compile
[INFO] +- org.slf4j:slf4j-api:jar:2.0.17:compile
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.24.3:compile
[INFO] +- org.apache.logging.log4j:log4j-slf4j2-impl:jar:2.24.3:compile
[INFO] +- commons-io:commons-io:jar:2.18.0:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.17.0:compile
[INFO] +- org.apache.httpcomponents.client5:httpclient5:jar:5.4.3:compile
[INFO] +- org.apache.httpcomponents.core5:httpcore5:jar:5.3.3:compile
[INFO] +- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.3.3:compile
[INFO] +- commons-codec:commons-codec:jar:1.18.0:compile
[INFO] +- commons-logging:commons-logging:jar:1.3.5:compile
UPM App signing disable not working.
I tried to add this to the entry point of the docker image, but I still get the error. How can I achieve “uploaded jars do not have to be signed”?
UPDATE:
I could disable upm signing with this settings in my entry point:
#
# DISABLE APP SIGNING FOR UPLOADS https://confluence.atlassian.com/upm/configuring-upm-app-signature-check-1489470544.html
#
mkdir /var/atlassian/application-data/confluence/upmconfig
mkdir /var/atlassian/application-data/confluence/upmconfig/truststore
echo "atlassian.upm.signature.check.upload.disabled=true" > /var/atlassian/application-data/confluence/upmconfig/upm.properties
echo "atlassian.upm.signature.check.disabled=true" >> /var/atlassian/application-data/confluence/upmconfig/upm.properties
I also had to pass -Datlassian.upm.configuration.directory=/var/atlassian/application-data/confluence/upmconfig
to the docker container, and then it worked.
UPDATE 2: I am no longer seeing specific errors in the logs. The app simply does not enable. Even though setting -Datlassian.plugins.enable.wait=300
the errors do not change and the app does not enable
2025-04-12 07:19:52,338 WARN [UpmAsynchronousTaskManager:thread-2] [osgi.hook.dmz.DmzResolverHook] filterMatches Package javax.servlet is deprecated and is not available for export to plugin myapp
2025-04-12 07:19:52,347 WARN [UpmAsynchronousTaskManager:thread-2] [osgi.hook.dmz.DmzResolverHook] filterMatches Package jdk.net is internal and is not available for export to plugin myapp
2025-04-12 07:19:52,408 WARN [UpmAsynchronousTaskManager:thread-2] [osgi.hook.dmz.DmzResolverHook] filterMatches Package javax.transaction.xa is internal and is not available for export to plugin myapp
2025-04-12 07:19:52,409 WARN [UpmAsynchronousTaskManager:thread-2] [osgi.hook.dmz.DmzResolverHook] filterMatches Package javax.transaction.xa is internal and is not available for export to plugin myapp
2025-04-12 07:19:57,680 WARN [UpmAsynchronousTaskManager:thread-2] [atlassian.plugin.manager.PluginEnabler] isFinished Plugin 'myapp' did not enable within 5 seconds. The plugin should not take this long to enable. Will only attempt to load plugin for another '25' seconds.
2025-04-12 07:20:22,777 ERROR [UpmAsynchronousTaskManager:thread-2] [atlassian.plugin.manager.PluginEnabler] actualEnable Unable to start the following plugins due to timeout while waiting for plugin to enable: myapp
I have already set this in my OSGI Imports in the pom.xml
:
<Import-Package>
javax.servlet;resolution:=optional,
jdk.net;resolution:=optional,
javax.transaction.xa:=optional,