OSS 3.26.1-02 API search giving 406 error

when getting a continuation token and making API calls. It returns the first two calls with 50 artifacts fine then it returns 406 error. If we try again with the same request and token after a few seconds then we get a successful result.

if the repository contains more then 100 artifacts only then we are see this issue.

can some one please help us with this issue.

Nexus version OSS 3.26.1-02.

Error:

2020-08-20 14:25:00,546+0000 WARN [qtp1412262071-3212] svn_unite_gocd_user org.sonatype.nexus.siesta.internal.WebappExceptionMapper - (ID 3bfbc079-1717-44cf-bff4-d3e7ce0bc27c) Response: [406] (no entity/body); mapped from: javax.ws.rs.WebApplicationException: Unable to parse token

Getting the same issue with slightly different logging. What was your last known working version?

Nexus version OSS 3.26.1-02.

Error:
2020-08-20 12:33:58,091-0500 WARN [qtp20735617-1483] mvndeploy org.sonatype.nexus.siesta.internal.WebappExceptionMapper - (ID 74c17820-ff10-4dc6-b96a-4645936281a8) Response: [406] (no entity/body); mapped from: javax.ws.rs.WebApplicationException: Continuation token 35303a6263393430396563633437343362623262326265626165303765666261626463 does not match this query

There is an open issue for this here: https://issues.sonatype.org/browse/NEXUS-24998

A fix is in the works.

Thanks for your response.

Currently i am planning to roll back to previous state Nexus version from 3.26.1-02 to 3.22.0-02 . while doing i am getting below db error. Unfortunately i don’t have any db backup.

Error
Error:

2020-08-26 08:44:16,580+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - The database model for component is 1.15, but the latest supported by this version of nexus is 1.14
2020-08-26 08:44:16,580+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - The database model for p2 is 1.2, but the latest supported by this version of nexus is 1.1
2020-08-26 08:44:16,584+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Failed transition: NEW -> STARTED
java.lang.IllegalStateException: Incompatible sonatype-work database model detected. Will result in failure to launch. Shutting down.
at org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl.validate(UpgradeServiceImpl.java:156)
at org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl.doStart(UpgradeServiceImpl.java:76)
at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:69)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:193)
at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:56)
at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:199)
at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:111)
at org.sonatype.nexus.extender.NexusContextListener.moveToPhase(NexusContextListener.java:321)
at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:218)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1431)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2020-08-26 08:44:16,586+0000 ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.extender.NexusContextListener - Failed to start nexus
java.lang.IllegalStateException: Incompatible sonatype-work database model detected. Will result in failure to launch. Shutting down.
at org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl.validate(UpgradeServiceImpl.java:156)

The only way to roll back would be to restore from a backup taken before the upgrade.

https://help.sonatype.com/display/NXRM3/Backup+and+Restore

Thank you :slight_smile: