Our NEXUS OSS 3.38.0 is running in a K8S Cluster.
All proxy-repositories, even maven-central, remain in the status “Ready to Connect”, although we have tried to retrieve assets from them multiple times.
In the Logfiles is no hint of a malfunction.
Is there annything we have forgotten?
Hi Roland,
What’s the problem you’re facing? Repository status Ready to Connect does not indicate any problem, it’s the contrary, the repository is functioning correctly and is ready to connect to the remote as soon as there will be a need to do so.
As I wrote, we have tried to download MULTIPE time various artifacts from these repos.
Even maven-central!
Any request wil respond, as if the repo is empty.
Can you attach your request.log and nexus.log, please?
The Request via CURL
curl -L -X GET "https://nexus.xxxxxxxxxx.xx/service/rest/v1/search/assets?repository=maven-central&maven.artifactId=log4j&sort=version&maven.extension=jar&direction=desc"
{
"items" : [ ],
"continuationToken" : null
}
The requested repo
The NEXUS Logfile:
-------------------------------------------------
Started Sonatype Nexus OSS 3.38.0-01
-------------------------------------------------
2022-03-08 07:25:16,413+0000 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@63ea00b{HTTP/1.1, (http/1.1)}{0.0.0.0:8088}
2022-03-08 07:25:18,719+0000 INFO [quartz-9-thread-1] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: maven-central' [healthcheck] state change WAITING -> RUNNING
2022-03-08 07:25:19,459+0000 INFO [quartz-9-thread-2] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: nuget.org-proxy' [healthcheck] state change WAITING -> RUNNING
2022-03-08 07:25:19,462+0000 INFO [quartz-9-thread-3] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: sector-maven-proxy' [healthcheck] state change WAITING -> RUNNING
2022-03-08 07:25:20,812+0000 INFO [quartz-9-thread-1] *SYSTEM org.sonatype.nexus.scheduling.TaskSchedulerImpl - Task 'System - Repository Health Check: maven-central' [healthcheck] scheduled: hourly
2022-03-08 07:25:20,817+0000 INFO [quartz-9-thread-1] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: maven-central' [healthcheck] state change RUNNING -> WAITING (OK)
2022-03-08 07:25:21,872+0000 INFO [quartz-9-thread-3] *SYSTEM org.sonatype.nexus.scheduling.TaskSchedulerImpl - Task 'System - Repository Health Check: sector-maven-proxy' [healthcheck] scheduled: hourly
2022-03-08 07:25:21,877+0000 INFO [quartz-9-thread-3] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: sector-maven-proxy' [healthcheck] state change RUNNING -> WAITING (OK)
2022-03-08 07:25:22,685+0000 INFO [quartz-9-thread-2] *SYSTEM org.sonatype.nexus.scheduling.TaskSchedulerImpl - Task 'System - Repository Health Check: nuget.org-proxy' [healthcheck] scheduled: hourly
2022-03-08 07:25:22,690+0000 INFO [quartz-9-thread-2] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'System - Repository Health Check: nuget.org-proxy' [healthcheck] state change RUNNING -> WAITING (OK)
2022-03-08 07:30:00,017+0000 INFO [quartz-9-thread-4] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 07:30:00,030+0000 INFO [quartz-9-thread-4] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 07:40:00,011+0000 INFO [quartz-9-thread-5] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 07:40:00,020+0000 INFO [quartz-9-thread-5] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 07:50:00,008+0000 INFO [quartz-9-thread-6] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 07:50:00,016+0000 INFO [quartz-9-thread-6] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 08:00:00,012+0000 INFO [quartz-9-thread-7] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 08:00:00,019+0000 INFO [quartz-9-thread-7] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 08:10:00,011+0000 INFO [quartz-9-thread-8] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 08:10:00,020+0000 INFO [quartz-9-thread-8] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 08:20:00,013+0000 INFO [quartz-9-thread-9] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 08:20:00,023+0000 INFO [quartz-9-thread-9] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 08:30:00,009+0000 INFO [quartz-9-thread-10] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 08:30:00,014+0000 INFO [quartz-9-thread-10] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 08:40:00,007+0000 INFO [quartz-9-thread-11] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 08:40:00,015+0000 INFO [quartz-9-thread-11] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 08:50:00,008+0000 INFO [quartz-9-thread-12] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 08:50:00,023+0000 INFO [quartz-9-thread-12] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 09:00:00,011+0000 INFO [quartz-9-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 09:00:00,018+0000 INFO [quartz-9-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 09:10:00,008+0000 INFO [quartz-9-thread-14] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 09:10:00,018+0000 INFO [quartz-9-thread-14] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 09:20:00,007+0000 INFO [quartz-9-thread-15] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 09:20:00,014+0000 INFO [quartz-9-thread-15] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 09:30:00,011+0000 INFO [quartz-9-thread-16] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 09:30:00,017+0000 INFO [quartz-9-thread-16] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 09:40:00,009+0000 INFO [quartz-9-thread-17] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 09:40:00,015+0000 INFO [quartz-9-thread-17] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 09:48:12,401+0000 INFO [qtp1709854630-95] *UNKNOWN org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Enabling session validation scheduler...
2022-03-08 09:50:00,011+0000 INFO [quartz-9-thread-18] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 09:50:00,021+0000 INFO [quartz-9-thread-18] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:00:00,008+0000 INFO [quartz-9-thread-19] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 10:00:00,019+0000 INFO [quartz-9-thread-19] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:04:44,368+0000 INFO [qtp1709854630-97] *UNKNOWN org.sonatype.nexus.internal.security.anonymous.AnonymousManagerImpl - Loaded configuration: OrientAnonymousConfiguration{enabled=false, userId='anonymous', realmName='NexusAuthorizingRealm'}
2022-03-08 10:10:00,008+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 10:10:00,023+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:20:00,007+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 10:20:00,030+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:30:00,009+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 10:30:00,016+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:40:00,008+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 10:40:00,016+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:48:12,405+0000 INFO [SessionValidationThread-1] *UNKNOWN org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Validating all active sessions...
2022-03-08 10:48:12,410+0000 INFO [SessionValidationThread-1] *UNKNOWN org.ehcache.jsr107.ConfigurationMerger - Configuration of cache shiro-activeSessionCache will be supplemented by template nexus-default
2022-03-08 10:48:12,415+0000 INFO [SessionValidationThread-1] *UNKNOWN org.ehcache.core.EhcacheManager - Cache 'shiro-activeSessionCache' created in EhcacheManager.
2022-03-08 10:48:12,415+0000 INFO [SessionValidationThread-1] *UNKNOWN org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./opt/sonatype/nexus/etc/fabric/ehcache.xml,Cache=shiro-activeSessionCache
2022-03-08 10:48:12,416+0000 INFO [SessionValidationThread-1] *UNKNOWN org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./opt/sonatype/nexus/etc/fabric/ehcache.xml,Cache=shiro-activeSessionCache
2022-03-08 10:48:12,419+0000 INFO [SessionValidationThread-1] *UNKNOWN org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Finished session validation. No sessions were stopped.
2022-03-08 10:50:00,006+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change WAITING -> RUNNING
2022-03-08 10:50:00,014+0000 INFO [quartz-9-thread-20] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Storage facet cleanup' [repository.storage-facet-cleanup] state change RUNNING -> WAITING (OK)
2022-03-08 10:52:47,075+0000 INFO [qtp1709854630-97] admin org.sonatype.nexus.rapture.internal.security.SessionServlet - Created session for user: admin
The curl request you’re trying is searching for assets present in your maven-central repository in your Nexus Repository. If you haven’t downloaded any assets yet, it won’t return anything. In other worlds, it’s returning an empty list, because you haven’t cached anything yet - it will not propagate your search query to the remote server.
That was it, thank you very much!
You have to come on it for now.
At least we now have a better understanding of how the proxy works.
Searching in a proxy is not recommended.
Best regards,
roland
I have a similar issue, similar because I don’t have LDAP setup. I’ve setup a Maven2 proxy for remote URL https://repo.maven.apache.org/maven2/
, and status is now Online - Remote available
, but yet see
Download https://repo.maven.apache.org/maven2/com/jcraft/jzlib/1.1.1/jzlib-1.1.1.jar
Download https://repo.maven.apache.org/maven2/com/googlecode/javaewah/JavaEWAH/1.1.6/JavaEWAH-1.1.6.jar
Download https://repo.maven.apache.org/maven2/com/jcraft/jsch.agentproxy.core/0.0.9/jsch.agentproxy.core-0.0.9.jar
Download https://repo.maven.apache.org/maven2/io/rest-assured/spring-commons/3.2.0/spring-commons-3.2.0.jar
(more artifacts)
I’ve setup my Gradle build.gradle
files to access the internal repo, and I see my builds downloading from our other internal repo, but not the above repo. Any clues for me?
buildscript {
repositories {
maven {
url https://nexus.mycompany.com
credentials {
username nexusUser
password nexusPW
}
}
}
dependencies {
classpath "..."
}
}
allprojects {
repositories {
maven {
url https://nexus.mycompany.com
credentials {
username nexusUser
password nexusPW
}
}
}
}
I can’t really tell from your description, but check your request.log to ensure that the downloads are trying to go through nexus maybe. If they are getting to nexus but it’s responding with something other than a 2xx response then maybe check your nexus.log for errors. Based on your description I wonder if maybe your build.gradle is mis-configured but I don’t really know.
@mmartz thanks, i will be looking at logs today. I updated my post to include a sample build.gradle
that I use.