eclipse-cbi / macos-notarization-service Goto Github PK
View Code? Open in Web Editor NEWREST Service to notarize macOS application bundles and DMG
License: Eclipse Public License 2.0
REST Service to notarize macOS application bundles and DMG
License: Eclipse Public License 2.0
I am getting an error with this stack trace showing up on the service. Any idea what might be going wrong here?
019-11-05 16:36:30,435 ERROR [io.und.req.io] (executor-thread-1) Exception handling request ee6c70c5-f1b7-4397-b6df-682e9e9eb187-2 to /macos-notarization-service/notarize: org.jboss.resteasy.spi.UnhandledException: java.io.EOFException: End of input
at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:106)
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:372)
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:209)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:252)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:153)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:363)
at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:156)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:238)
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:249)
at io.quarkus.resteasy.runtime.ResteasyFilter.doFilter(ResteasyFilter.java:30)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1$1.call(UndertowDeploymentRecorder.java:513)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2011)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1535)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:479)
Caused by: java.io.EOFException: End of input
at com.squareup.moshi.JsonUtf8Reader.nextNonWhitespace(JsonUtf8Reader.java:1043)
at com.squareup.moshi.JsonUtf8Reader.doPeek(JsonUtf8Reader.java:252)
at com.squareup.moshi.JsonUtf8Reader.hasNext(JsonUtf8Reader.java:185)
at org.eclipse.cbi.ws.macos.notarization.request.AutoValue_NotarizationRequestOptions$MoshiJsonAdapter.fromJson(AutoValue_NotarizationRequestOptions.java:34)
at org.eclipse.cbi.ws.macos.notarization.request.AutoValue_NotarizationRequestOptions$MoshiJsonAdapter.fromJson(AutoValue_NotarizationRequestOptions.java:20)
at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:36)
at org.eclipse.cbi.ws.macos.notarization.MultipartFormDataInputWrapper$WithMoshi.partJsonBodyAs(MultipartFormDataInputWrapper.java:108)
at org.eclipse.cbi.ws.macos.notarization.NotarizationService.notarize(NotarizationService.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:151)
at org.jboss.resteasy.core.MethodInjectorImpl.lambda$invoke$3(MethodInjectorImpl.java:122)
at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:616)
at java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:628)
at java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:1996)
at java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:110)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:122)
at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:594)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:468)
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$2(ResourceMethodInvoker.java:421)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:363)
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:423)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:391)
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invoke$1(ResourceMethodInvoker.java:365)
at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:995)
at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2137)
at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:110)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:365)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:477)
... 44 more
Sometimes, the services keep alive a CDS instance which prevents any further notarization attempt of the same bundle. The response from the service is
RESPONSE='{"uuid":"18f6c9d3-d697-42af-a7fa-44c0b66b0ff7",
"notarizationStatus":{"status":"ERROR","message":"Issue happened while uploading file to Apple
notarization service","moreInfo":"Failed to notarize the requested file. Reason: Cannot proceed
with delivery: an existing transporter instance is currently uploading this package"}}'
on the notarization machine, here is the stucked process:
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/bin/java
-Djava.ext.dirs=/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java/lib/ext
-XX:NewSize=2m -Xms32m -XX:NewSize=2m -DWORootDirectory= -DWOLocalRootDirectory=
-DWOUserDirectory=/usr/local/webservice/eclipse.org/notarization -DWOEnvClassPath=
-DWOApplicationClass= -DWOPlatform=MacOS -Dcom.webobjects.pid=88372 -Xmx2048m -Xms1024m
-Djava.awt.headless=true -Dsun.net.http.retryPost=false -Dhttps.protocols=TLSv1.1,TLSv1.2 -Dtransporter.client=altool
-Dtransporter.client.version=4.00 (1181) -jar ./lib/itmstransporter-launcher.jar -m upload -u <redacted>@eclipse.org
-vp json -TxHeaders <redacted> -sessionid @env:<redacted> -sharedsecret @env:<redacted>
-f /tmp/macos-notarization-service/pending-files/eclipse-rcp-2021-06-R-macosx-cocoa-x86_64-6018569964121664258-xcrun-notarize-app-2192338967387698589/D86F7639-49A8-4B14-B1E8-75A087D7F058/eclipse-rcp-2021-06-R.itmsp
-indicator true -v eXtreme -Dtransporter.client=altool -Dtransporter.client.version=4.00 (1181)
Raising this on behalf of Lakshmi
The latest Eclipse SDK builds on Mac are not notarised and fail to launch with this error:
"Eclipse” can’t be opened because Apple cannot check it for malicious software.
Problem is seem from I20211227-1800.
Error in the build log: https://ci.eclipse.org/releng/job/I-build-4.23/61/consoleFull
curl -sS https://cbi.eclipse.org/macos/xcrun/f161d6b0-a91d-4625-b7e1-7253c61f2104/status
[2022-01-03T12:09:13.348Z] + RESPONSE='{"uuid":"f161d6b0-a91d-4625-b7e1-7253c61f2104","notarizationStatus":{"status":"ERROR","message":"Issue happened while uploading file to Apple notarization service","moreInfo":"Failed to notarize the requested file. Reason: You must first sign the relevant contracts online. (1048)"}}'
Command to check notarisation:
spctl -a -vv -t install "Eclipse.app"
It was a bit hard to find configuration option limiting product size without any experience with Quarkus.
We have a product of 1.2 Gb in size. Please consider increasing this limit to 2G by default.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.