push-файл git-lfs с ошибкой

На сервере не хватило места, и после перезагрузки Nexus я получил сообщение об ошибке, что в хранилище нет файла.

Я помещаю файл в репозиторий Nexus 3.5.2-01 GitLfs и получаю следующую ошибку:

$ git lfs push --object-id origin b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858
17:34:25.419257 git.c:572 trace: exec: 'git-lfs' 'push' '--object-id' 'origin' 'b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858'
17:34:25.420257 run-command.c:626 trace: run_command: 'git-lfs' 'push' '--object-id' 'origin' 'b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858'
17:34:25.481262 trace git-lfs: run_command: 'git' version
17:34:25.699366 trace git-lfs: run_command: 'git' config -l -f D:\Sources\JIRA_Test\export\smartgit\SprutCAM_Models2\SprutCAM_Models\.lfsconfig
17:34:25.742375 trace git-lfs: run_command: 'git' config -l
17:34:25.871296 trace git-lfs: tq: running as batched queue, batch size of 100
17:34:25.871296 trace git-lfs: tq: sending batch of size 1
17:34:25.872296 trace git-lfs: api: batch 1 files
17:34:25.872296 trace git-lfs: creds: git credential fill ("http", "nexus.local:8081", "repository/gitlfs/info/lfs")
17:34:26.441608 trace git-lfs: Filled credentials for http://nexus.local:8081/repository/gitlfs/info/lfs
17:34:26.485625 trace git-lfs: HTTP: POST http://nexus.local:8081/repository/gitlfs/info/lfs/objects/batch
17:34:26.504711 trace git-lfs: HTTP: 200
17:34:27.151923 trace git-lfs: HTTP: {"transfer":"basic","objects":[{"oid":"b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858","size":44544,"authenticated":true,"actions":{"upload":{"href":"http://nexus.local:8081/repository/gitlfs/b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858","header":{"Authorization":"Basic ***="},"expires_at":"2017-10-31T14:49:26Z"},"verify":{"href":"http://nexus.local:8081/repository/gitlfs/b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7
17:34:27.151923 trace git-lfs: HTTP: 858/verify","header":{"Authorization":"Basic ***="},"expires_at":"2017-10-31T14:49:26Z"}}}]}
17:34:27.151923 trace git-lfs: tq: starting transfer adapter "basic"
Git LFS: (0 of 1 files) 0 B / 43.50 KB 17:34:27.174949 trace git-lfs: HTTP: PUT http://nexus.local:8081/repository/gitlfs/b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858
Git LFS: (0 of 1 files) 43.50 KB / 43.50 KB 17:34:30.443919 trace git-lfs: HTTP: 500
17:34:30.443919 trace git-lfs: tq: retrying object b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858: Fatal error: Server error: http://nexus.local:8081/repository/gitlfs/b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858
17:34:30.443919 trace git-lfs: tq: enqueue retry #1 for "b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858" (size: 44544)

в журнале Nexus:

2017-10-31 14:34:55,931+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: ACTIVE -> OPEN
2017-10-31 14:34:55,933+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: OPEN
2017-10-31 14:34:57,325+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Retrying operation: 8/8
2017-10-31 14:34:57,325+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: OPEN -> ACTIVE
2017-10-31 14:34:57,325+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: ACTIVE
2017-10-31 14:34:57,330+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: ACTIVE -> OPEN
2017-10-31 14:34:57,331+0000 DEBUG [qtp2007815807-204] admin org.sonatype.nexus.repository.storage.StorageTxImpl - Failed transition: ACTIVE -> OPEN
com.orientechnologies.orient.core.storage.ORecordDuplicatedException: Cannot index record #14:16694: found duplicated key 'OCompositeKey{keys=[#12:8, #13:2266, b14d5d77453eb68f235d455a599bad544bf54a6a5975ac46c899b52fb54d7858]}' in index 'asset_bucket_component_name_idx' previously assigned to the record #14:2266
DB name="component"
at com.orientechnologies.orient.core.index.OIndexUnique$1.validate(OIndexUnique.java:47)
at com.orientechnologies.orient.core.index.OIndexUnique$1.validate(OIndexUnique.java:37)
at com.orientechnologies.orient.core.index.sbtree.local.OSBTree.put(OSBTree.java:873)
at com.orientechnologies.orient.core.index.sbtree.local.OSBTree.validatedPut(OSBTree.java:267)
at com.orientechnologies.orient.core.index.engine.OSBTreeIndexEngine.validatedPut(OSBTreeIndexEngine.java:169)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doValidatedPutIndexValue(OAbstractPaginatedStorage.java:2357)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.validatedPutIndexValue(OAbstractPaginatedStorage.java:2326)
at com.orientechnologies.orient.core.index.OIndexUnique.put(OIndexUnique.java:82)
at com.orientechnologies.orient.core.index.OIndexUnique.put(OIndexUnique.java:35)
at com.orientechnologies.orient.core.index.OIndexAbstract.putInSnapshot(OIndexAbstract.java:956)
at com.orientechnologies.orient.core.index.OIndexAbstract.applyIndexTxEntry(OIndexAbstract.java:790)
at com.orientechnologies.orient.core.index.OIndexAbstract.addTxOperation(OIndexAbstract.java:762)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commitIndexes(OAbstractPaginatedStorage.java:1743)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commit(OAbstractPaginatedStorage.java:1701)
at com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:541)
at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:99)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2895)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2864)
at org.sonatype.nexus.repository.storage.StorageTxImpl.commit(StorageTxImpl.java:173)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.sonatype.nexus.common.stateguard.SimpleMethodInvocation.proceed(SimpleMethodInvocation.java:53)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:191)
at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
at org.sonatype.nexus.common.stateguard.StateGuardAspect$1.invoke(StateGuardAspect.java:66)
at com.sun.proxy.$Proxy194.commit(Unknown Source)
at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:67)
at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
at org.sonatype.nexus.repository.gitlfs.internal.GitLfsHostedFacetImpl$$EnhancerByGuice$$e6865076.doPutContent(<generated>)
at org.sonatype.nexus.repository.gitlfs.internal.GitLfsHostedFacetImpl.put(GitLfsHostedFacetImpl.java:83)
at org.sonatype.nexus.repository.gitlfs.internal.GitLfsHostedUploadHandler.handle(GitLfsHostedUploadHandler.java:43)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:44)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.http.PartialFetchHandler.handle(PartialFetchHandler.java:55)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler.handle(ConditionalRequestHandler.java:72)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at com.sonatype.nexus.plugins.healthcheck.downloads.AssetDownloadCountContributedHandler.handle(AssetDownloadCountContributedHandler.java:47)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.view.handlers.HandlerContributor.handle(HandlerContributor.java:67)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.view.handlers.ExceptionHandler.handle(ExceptionHandler.java:43)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:52)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
at org.sonatype.nexus.repository.view.Context.start(Context.java:114)
at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:63)
at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:52)
at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43)
at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:198)
at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:160)
at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:117)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181)
at com.google.inject.servlet.DynamicServletPipeline.service(DynamicServletPipeline.java:71)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.sonatype.nexus.security.SecurityFilter.executeChain(SecurityFilter.java:85)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.sonatype.nexus.security.SecurityFilter.doFilterInternal(SecurityFilter.java:101)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.repository.httpbridge.internal.ExhaustRequestFilter.doFilter(ExhaustRequestFilter.java:71)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:108)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:97)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.internal.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:68)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.internal.web.EnvironmentFilter.doFilter(EnvironmentFilter.java:102)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.internal.web.HeaderPatternFilter.doFilter(HeaderPatternFilter.java:98)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.DynamicFilterPipeline.dispatch(DynamicFilterPipeline.java:104)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)
at org.sonatype.nexus.bootstrap.osgi.DelegatingFilter.doFilter(DelegatingFilter.java:73)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:175)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.eclipse.jetty.server.Server.handle(Server.java:517)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
at java.lang.Thread.run(Thread.java:748)

Я запускаю задание "Перестроить индекс репозитория", но оно у меня не работает.

Как мне вернуть репозиторий в онлайн? Я постараюсь отправить отсутствующие файлы в хранилище.

0 ответов

Другие вопросы по тегам