Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Build package through package manager met error

Avatar

Level 2

I build a pages (content) package through package manager in crx/de, but I met this error : 
image.png

Going to check the log, I found this relevant error : 

19.11.2021 15:25:25.889 *ERROR* [qtp1274534587-9081] org.apache.felix.http.jetty Exception while processing request to /crx/packmgr/service/script.html/etc/packages/my_packages/sho1.zip (org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException)
org.eclipse.jetty.io.RuntimeIOException: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.server.ResponseWriter.isOpen(ResponseWriter.java:133) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.ResponseWriter.format(ResponseWriter.java:467) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.ResponseWriter.printf(ResponseWriter.java:439) [org.apache.felix.http.jetty:4.0.8]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.writeCallback(StreamedScriptResponse.java:228) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.access$000(StreamedScriptResponse.java:44) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse$1.flush(StreamedScriptResponse.java:82) [com.adobe.granite.crx-packagemgr:1.2.74]
	at java.io.PrintWriter.flush(PrintWriter.java:320)
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.error(StreamedScriptResponse.java:188) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.J2EEPackageManager.doPost(J2EEPackageManager.java:235) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.PackageManagerServlet.doPost(PackageManagerServlet.java:127) [com.adobe.granite.crx-packagemgr:1.2.74]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:644) [org.apache.felix.http.servlet-api:1.1.2]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [org.apache.felix.http.servlet-api:1.1.2]
	at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:123) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:86) [org.apache.felix.http.jetty:4.0.8]
	at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:308) [com.adobe.granite.license:1.2.10]
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:142) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:131) [org.apache.sling.i18n:2.5.14]
	at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:142) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.dispatch.InvocationChain.doFilter(InvocationChain.java:81) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.dispatch.Dispatcher$1.doFilter(Dispatcher.java:146) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1002) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:326) [org.apache.sling.security:1.1.16]
	at org.apache.felix.http.base.internal.handler.PreprocessorHandler.handle(PreprocessorHandler.java:136) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1008) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:97) [org.apache.felix.http.sslfilter:1.2.6]
	at org.apache.felix.http.base.internal.handler.PreprocessorHandler.handle(PreprocessorHandler.java:136) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager$2.doFilter(WhiteboardManager.java:1008) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.whiteboard.WhiteboardManager.invokePreprocessors(WhiteboardManager.java:1012) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:91) [org.apache.felix.http.jetty:4.0.8]
	at org.apache.felix.http.base.internal.dispatch.DispatcherServlet.service(DispatcherServlet.java:49) [org.apache.felix.http.jetty:4.0.8]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) [org.apache.felix.http.servlet-api:1.1.2]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:873) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.Server.handle(Server.java:502) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683) [org.apache.felix.http.jetty:4.0.8]
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.jetty.io.EofException: null
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:284) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:393) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:277) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:380) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:820) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:550) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:850) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:921) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:250) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:226) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpOutput.flush(HttpOutput.java:408) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.HttpWriter.flush(HttpWriter.java:56) [org.apache.felix.http.jetty:4.0.8]
	at org.eclipse.jetty.server.ResponseWriter.flush(ResponseWriter.java:147) [org.apache.felix.http.jetty:4.0.8]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.writeCallback(StreamedScriptResponse.java:231) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.access$000(StreamedScriptResponse.java:44) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse$1.flush(StreamedScriptResponse.java:82) [com.adobe.granite.crx-packagemgr:1.2.74]
	at java.io.PrintWriter.flush(PrintWriter.java:320)
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.print(StreamedScriptResponse.java:164) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.response.StreamedScriptResponse.onMessage(StreamedScriptResponse.java:137) [com.adobe.granite.crx-packagemgr:1.2.74]
	at org.apache.jackrabbit.vault.fs.spi.ProgressTracker.track(ProgressTracker.java:51) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.track(AbstractExporter.java:302) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.JarExporter.writeFile(JarExporter.java:176) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:290) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:288) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.fs.io.AbstractExporter.export(AbstractExporter.java:264) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.assemble(PackageManagerImpl.java:148) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.assemble(PackageManagerImpl.java:102) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.assemble(JcrPackageManagerImpl.java:358) [org.apache.jackrabbit.vault:3.2.8]
	at org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.assemble(JcrPackageManagerImpl.java:324) [org.apache.jackrabbit.vault:3.2.8]
	at com.day.crx.packaging.impl.J2EEPackageManager.consoleBuild(J2EEPackageManager.java:289) [com.adobe.granite.crx-packagemgr:1.2.74]
	at com.day.crx.packaging.impl.J2EEPackageManager.doPost(J2EEPackageManager.java:174) [com.adobe.granite.crx-packagemgr:1.2.74]
	... 51 common frames omitted
Caused by: java.io.IOException: Broken pipe
	at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
	at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
	at sun.nio.ch.IOUtil.write(IOUtil.java:148)
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:503)
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:264) [org.apache.felix.http.jetty:4.0.8]
	... 90 common frames omitted

 Does anyone know how to fix it ? Thanks!!!

6 Replies

Avatar

Community Advisor

@mlai011 Can you check if this behaviour is specific to this package or its a general issue if you create any package ?. Also is this happening with Admin user ?

Avatar

Level 2

Hi : Thanks for reply :))

No, it happened under some specific paths, I could still create packages under other paths.

I think this is due to the package size is too big, but I've created even more bigger before.

Yes, I was logging as admin.

Avatar

Community Advisor

@mlai011 Packaging requires zip creation and uses a lot of memory and CPU usage for large packages. It is normally advisable to make smaller packages and install them in chunks. Please try and see if that helps.

Avatar

Level 2

Hi @Bhuwan_B  Thanks :))

But because there are maybe a hundred of nodes inside that one parent node, it might be inefficient to separate so many packages.

I've tested the limit, it might be less than 10mb... I can only create a maybe 5 mb package now...

It's this a reasonable value? We've created a 300mb package before.

mlai011_0-1637632159333.png

 

Avatar

Community Advisor

@mlai011 as suggested @Bhuwan_B , first check whether it's an issue with specific package or global issue.

 

you can also try below steps to debug:

1. Make sure AEM is running  

2. Try to on different browsers - sometimes it's an issue with browser cache

3.  Try to create  test package with any other paths than the one you've have an issue, so that we can know it's a global issue or issue with specific package.

4. If it's the issue with specific paths, then make sure, the user has required access on those paths.

    Make sure all the nodes under selected paths are valid.

 

 

Avatar

Level 2

Hi @Siva_Sogalapalli Thanks for reply :))

1. Yes, it's exactly running :))

2. I've already tried other browser but still met the same issues

3. Yes'  it only happened under some specific paths, I could still create packages under other paths.

I think this is due to the package size is too big, but I've created even more bigger before.

4. I was logging as admin, so I might have accessibility to those paths.