sonatype-nexus-community / nexus-repository-apk

Eclipse Public License 1.0
42 stars 24 forks source link

Build with Nexus Repository Manager 3.40.1 #51

Open bhamail opened 2 years ago

bhamail commented 2 years ago

Attempt rebuild with latest Nexus Repository Manager. Needs testing/validation.

It relates to the following issue #s:

cc @DarthHater @bhamail

NoCoker commented 2 years ago

I can build it and it starts with error messages - please check in detail

nexus_1 | 2022-07-18 05:38:50,757+0000 INFO [quartz-11-thread-1] SYSTEM org.sonatype.nexus.repository.content.search.SearchFacetImpl - Rebuilding index of repository apk-alpine-3.16-community nexus_1 | 2022-07-18 05:38:50,781+0000 INFO [elasticsearch[594672F0-D8ABD4EC-6FB5511B-D6068CFE-07762D3E][clusterService#updateTask][T#1]] SYSTEM org.elasticsearch.cluster.metadata - [594672F0-D8ABD4EC-6FB5511B-D6068CFE-07762D3E] [c7941f6792ad2ee404f328ba4565c75aa5ebc2ac] creating index, cause [api], templates [], shards [1]/[0], mappings [component] nexus_1 | 2022-07-18 05:38:50,833+0000 ERROR [quartz-11-thread-1] *SYSTEM org.sonatype.nexus.repository.content.search.SearchFacetImpl - Unable to rebuild search index for repository apk-alpine-3.16-community nexus_1 | org.sonatype.nexus.repository.MissingFacetException: No facet of type ContentFacet attached to repository apk-alpine-3.16-community nexus_1 | at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.facet(RepositoryImpl.java:327) nexus_1 | at org.sonatype.nexus.repository.content.search.SearchFacetImpl.rebuildComponentIndex(SearchFacetImpl.java:154) nexus_1 | at org.sonatype.nexus.repository.content.search.SearchFacetImpl.rebuildIndex(SearchFacetImpl.java:145) nexus_1 | at org.sonatype.nexus.repository.content.search.SearchFacetImpl$$EnhancerByGuice$$430187054.GUICE$TRAMPOLINE() nexus_1 | at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74) nexus_1 | at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) nexus_1 | at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272) nexus_1 | at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54) nexus_1 | at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75) nexus_1 | at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55) nexus_1 | at org.sonatype.nexus.repository.content.search.SearchFacetImpl$$EnhancerByGuice$$430187054.rebuildIndex() nexus_1 | at org.sonatype.nexus.repository.search.index.RebuildIndexTask.execute(RebuildIndexTask.java:33) nexus_1 | at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:79) nexus_1 | at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:100) nexus_1 | at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:143) nexus_1 | at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106) nexus_1 | at org.quartz.core.JobRunShell.run(JobRunShell.java:202) nexus_1 | at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:145) nexus_1 | at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) nexus_1 | at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) nexus_1 | at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) nexus_1 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) nexus_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) nexus_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) nexus_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) nexus_1 | at java.lang.Thread.run(Thread.java:750)

NoCoker commented 2 years ago

I can use for now the ak repositories but get this messages: nexus_1 | 2022-07-18 05:41:02,008+0000 INFO [qtp1036716450-501] mmustermann org.sonatype.nexus.rapture.internal.security.SessionServlet - Created session for user: mmustermann nexus_1 | 2022-07-18 05:43:59,234+0000 INFO [qtp1036716450-507] mmustermann org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for docker-proxy-docker-io changed from READY to AVAILABLE - reason n/a for n/a nexus_1 | 2022-07-18 05:43:59,237+0000 WARN [qtp1036716450-507] mmustermann org.sonatype.nexus.repository.docker.internal.orient.DockerProxyFacetImpl - Exception org.sonatype.nexus.repository.proxy.BypassHttpErrorException checking remote for update, proxy repo docker-proxy-docker-io failed to fetch v2/library/igus-baseimage-alpine/manifests/3.16, content not in cache. nexus_1 | 2022-07-18 05:43:59,921+0000 WARN [qtp1036716450-511] mmustermann org.sonatype.nexus.repository.docker.internal.orient.DockerProxyFacetImpl - Exception org.sonatype.nexus.repository.proxy.BypassHttpErrorException checking remote for update, proxy repo docker-proxy-docker-io failed to fetch v2/library/igus-baseimage-alpine/manifests/sha256:0ef03979ce32bf7e69ea231c4aff14f3766d4e690eca97c4dc9c6684ce8ac262, content not in cache. nexus_1 | 2022-07-18 05:44:00,558+0000 WARN [qtp1036716450-510] mmustermann org.sonatype.nexus.repository.docker.internal.orient.DockerProxyFacetImpl - Exception org.sonatype.nexus.repository.proxy.BypassHttpErrorException checking remote for update, proxy repo docker-proxy-docker-io failed to fetch v2/library/igus-baseimage-alpine/blobs/sha256:2ed3cc52235bd9a57870ecabcbc3ef3f6de8e75b2abb92dbcd8c22c786350881, content not in cache. nexus_1 | 2022-07-18 05:44:01,637+0000 INFO [qtp1036716450-501] mmustermann org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for apk-alpine-3.16-main changed from READY to AVAILABLE - reason n/a for n/a nexus_1 | 2022-07-18 05:44:01,920+0000 INFO [qtp1036716450-102] mmustermann org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for apk-alpine-3.16-community changed from READY to AVAILABLE - reason n/a for n/a

bhamail commented 2 years ago

Are those Docker exceptions?

NoCoker commented 2 years ago

So we are running it now for some time and all works as expected - ignoring the error messages i report before ! We already update also the production nexus and all is fine so long !