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

Nexus 3.77 does not start correctly #569

Open
chrullrich opened this issue Feb 7, 2025 · 2 comments
Open

Nexus 3.77 does not start correctly #569

chrullrich opened this issue Feb 7, 2025 · 2 comments

Comments

@chrullrich
Copy link

After upgrading from 3.76 (which works fine, with very low usage, OpenJDK 17 on FreeBSD 14) to 3.77 (both .0 and .1) my instance does not start correctly. The web interface remains at "Initializing" with no further activity. An entirely new installation does the same.

The log for the upgraded instance has this to say; no idea if it's relevant:

2025-02-07 10:34:54,062+0100 ERROR [event-4-thread-1]  *SYSTEM com.google.common.eventbus.EventBus.nexus.async - Could not dispatch event org.sonatype.nexus.common.upgrade.events.UpgradeStartedEvent@2c14c5b0 to subscriber org.sonatype.nexus.upgrade.datastore.internal.audit.UpgradeAuditor@7dbf1e43 method [public void org.sonatype.nexus.upgrade.datastore.internal.audit.UpgradeAuditor.on(org.sonatype.nexus.common.upgrade.events.UpgradeEventSupport)]
java.lang.NullPointerException: Cannot invoke "org.sonatype.nexus.audit.AuditRecorder.isEnabled()" because the return value of "org.sonatype.nexus.audit.AuditorSupport.recorder()" is null
        at org.sonatype.nexus.audit.AuditorSupport.isRecording(AuditorSupport.java:123)
        at org.sonatype.nexus.upgrade.datastore.internal.audit.UpgradeAuditor.on(UpgradeAuditor.java:78)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)
        at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:142)
        at com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)
        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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
2025-02-07 10:34:54,065+0100 ERROR [event-4-thread-1]  *SYSTEM com.google.common.eventbus.EventBus.nexus.async - Could not dispatch event org.sonatype.nexus.common.upgrade.events.UpgradeCompletedEvent@326cb33 to subscriber org.sonatype.nexus.upgrade.datastore.internal.audit.UpgradeAuditor@7dbf1e43 method [public void org.sonatype.nexus.upgrade.datastore.internal.audit.UpgradeAuditor.on(org.sonatype.nexus.common.upgrade.events.UpgradeEventSupport)]
java.lang.NullPointerException: Cannot invoke "org.sonatype.nexus.audit.AuditRecorder.isEnabled()" because the return value of "org.sonatype.nexus.audit.AuditorSupport.recorder()" is null
        at org.sonatype.nexus.audit.AuditorSupport.isRecording(AuditorSupport.java:123)
        at org.sonatype.nexus.upgrade.datastore.internal.audit.UpgradeAuditor.on(UpgradeAuditor.java:78)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)
        at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:142)
        at com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)
        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.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)

... and then in response to HTTP requests:

2025-02-07 10:35:01,623+0100 WARN  [qtp200468129-108]  *UNKNOWN org.sonatype.nexus.siesta.internal.WebappExceptionMapper - (ID 3792d22e-e9d6-4561-bf89-2887f5904e1e) Response: [404] (no entity/body); mapped from: javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path: https://nexus.local.domain/service/rest/v1/user-telemetry/javascript

The new installation does not have the upgrade-related errors, but instead has failures to phone home; these I will not be able to fix:

2025-02-07 10:51:10,381+0100 WARN  [qtp1663006474-104]  *UNKNOWN org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID 69d38eb0-7c45-460e-b2e6-fbf4ea0b6e20) Unexpected exception: org.apache.http.conn.HttpHostConnectException: Connect to clm.>
org.apache.http.conn.HttpHostConnectException: Connect to clm.sonatype.com:443 [clm.sonatype.com/13.249.9.41, clm.sonatype.com/13.249.9.17, clm.sonatype.com/13.249.9.78, clm.sonatype.com/13.249.9.33] failed: Connection refused
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:156)
...
@cschoell
Copy link

To me it looks like there is an issue with the nexus-context-path. I have the same problem and have the context path set.

@shankailun-aliyun
Copy link

请问这个解决了吗?

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

3 participants