Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages do not appear in any search #131

Open
anbuc opened this issue Dec 12, 2022 · 7 comments
Open

Packages do not appear in any search #131

anbuc opened this issue Dec 12, 2022 · 7 comments

Comments

@anbuc
Copy link

anbuc commented Dec 12, 2022

Searching for a composer package currently does not work. I think that is the reason why cleanup policies, while we can assign them now, do not work at all. This becomes apparent when trying to preview a cleanup policy and no package ever comes up, regardless how the filters are configured. This also applies to the default search functionality (/#browse/search)

@lerminou
Copy link

lerminou commented Jan 4, 2023

I'm upgrading to the new Nexus version (3.45)
When booting, I see this log: It may be linked

2023-01-04 12:28:02,866+0100 ERROR [quartz-12-thread-5]  *SYSTEM org.sonatype.nexus.repository.content.search.elasticsearch.SearchFacetImpl - Unable to rebuild search index for repository composer-packagist-proxy
org.sonatype.nexus.repository.MissingFacetException: No facet of type ContentFacet attached to repository composer-packagist-proxy
   at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.facet(RepositoryImpl.java:327)
   at org.sonatype.nexus.repository.content.search.elasticsearch.SearchFacetImpl.rebuildComponentIndex(SearchFacetImpl.java:156)
   at org.sonatype.nexus.repository.content.search.elasticsearch.SearchFacetImpl.rebuildIndex(SearchFacetImpl.java:147)
   at org.sonatype.nexus.repository.content.search.elasticsearch.SearchFacetImpl$$EnhancerByGuice$$436803389.GUICE$TRAMPOLINE(<generated>)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
   at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
   at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
   at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
   at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
   at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
   at org.sonatype.nexus.repository.content.search.elasticsearch.SearchFacetImpl$$EnhancerByGuice$$436803389.rebuildIndex(<generated>)
   at org.sonatype.nexus.repository.search.index.RebuildIndexTask.execute(RebuildIndexTask.java:33)
   at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:79)
   at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:100)
   at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:143)
   at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:145)
   at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)
   at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
   at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:750)

@githoober
Copy link

Can confirm that too. No search results for composer packages.

@Mmasson-01
Copy link

Can confirm this too, also no results from the search API

  • ${NEXUS_URL}/service/rest/v1/search\?repository\=composer-hosted
    • ${NEXUS_URL}/service/rest/v1/search\?repository\=packagist

@ibilalovic
Copy link

ibilalovic commented Feb 9, 2023

Upgrading my Nexus in 3.45.1-01 with nexus-repository-composer 0.0.29 and got the same :

  • no new composer packages list when using nexus 3 search bar.
  • no return for composer in API call

@pju51
Copy link

pju51 commented Jan 17, 2024

hello
any news on this issue ?

@ricardoee
Copy link

Following. Have this exact same issue.

@tsukasa-mixer
Copy link

tsukasa-mixer commented Nov 9, 2024

I confirm, it doesn't find anything in API.
OSS 3.70.1-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants