io.choerodon.core.exception.CommonException: error.git.clone
at io.choerodon.devops.infra.util.GitUtil.cloneRepository(GitUtil.java:376)
at io.choerodon.devops.app.service.impl.AppServiceServiceImpl.operationAppServiceImport(AppServiceServiceImpl.java:881)
at io.choerodon.devops.app.service.impl.AppServiceServiceImpl$$FastClassBySpringCGLIB$$e2351bf.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)
at io.choerodon.devops.app.service.impl.AppServiceServiceImpl$$EnhancerBySpringCGLIB$$a32797a8.operationAppServiceImport()
at io.choerodon.devops.app.eventhandler.DevopsSagaHandler.importApp(DevopsSagaHandler.java:207)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at io.choerodon.asgard.saga.consumer.SagaConsumer.invoke(SagaConsumer.java:85)
at io.choerodon.asgard.saga.consumer.SagaConsumer.lambda$null$0(SagaConsumer.java:57)
at io.choerodon.asgard.saga.consumer.SagaConsumer$$Lambda$973/000000000C00A990.get(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.jgit.api.errors.TransportException: Premature EOF
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:224)
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:216)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:137)
at io.choerodon.devops.infra.util.GitUtil.cloneRepository(GitUtil.java:373)
… 17 more
Caused by: org.eclipse.jgit.errors.TransportException: Premature EOF
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:384)
at org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:857)
at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:311)
at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:300)
at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:245)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:161)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1236)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:213)
… 20 more
Caused by: java.io.IOException: Premature EOF
at sun.net.www.http.ChunkedInputStream.fastRead(Unknown Source)
at sun.net.www.http.ChunkedInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at org.eclipse.jgit.util.io.UnionInputStream.read(UnionInputStream.java:145)
at org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:139)
at org.eclipse.jgit.transport.PackParser.fill(PackParser.java:1194)
at org.eclipse.jgit.transport.PackParser$InflaterStream.read(PackParser.java:1727)
at java.io.InputStream.read(Unknown Source)
at org.eclipse.jgit.transport.PackParser.whole(PackParser.java:1040)
at org.eclipse.jgit.transport.PackParser.indexOneObject(PackParser.java:970)
at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:537)
at org.eclipse.jgit.internal.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:195)
at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:498)
at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:780)
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:377)
… 28 more
先检查配置的拉取地址和token是否正确。
如果配置没问题,请检查网络是否正常。