# Standalone nexus 3.41.1 upgrade to 3.70.1 issues

**URL:** <https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956>\
**Category:** Sonatype Nexus Repository\
**Tags:** upgrade\
**Created:** [July 25, 2024, 4:15pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956 "2024-07-25T16:15:37Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [July 25, 2024, 4:15pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/1 "2024-07-25T16:15:37Z")

</div>

java version “1.8.0\_221”  
Red Hat Enterprise Linux release 8.10 (Ootpa)

we had a nexus 3.41.1-01 instance successfully running in test with over 500G in data dir sonatype-work.

prior to attempting upgrade, i installed the 3.70.1-02 instance to its own unique dir and it started successfully with full webUI access on the application-port and nexus-context-path i configured in sonatype-work/nexus3/etc/nexus.properties.

i attempted to follow [Upgrading a Standalone Instance](https://help.sonatype.com/en/upgrading-a-standalone-instance.html?_ga=2.266054287.1421499187.1721673527-393768099.1715365603) but ran into issues when starting the 3.70.1-02 instance:

> Begin upgrade
> 
> * * *
> 
> 2024-07-24 09:03:39,734-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint config  
> 2024-07-24 09:03:40,085-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint security  
> 2024-07-24 09:03:40,299-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint component  
> 2024-07-24 09:05:23,348-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint elasticsearch  
> 2024-07-24 09:05:23,350-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl -
> 
> * * *
> 
> Apply upgrade
> 
> * * *
> 
> 2024-07-24 09:05:23,352-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade SettingsCapability from 1.0 to 1.1  
> 2024-07-24 09:05:23,400-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade api\_key from 1.0 to 1.1  
> 2024-07-24 09:05:23,402-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.internal.security.apikey.orient.upgrade.ApiKeyUpgrade\_1\_1 - Updating api\_key index  
> 2024-07-24 09:05:23,465-0700 ERROR [FelixStartLevel] \*SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `3D22BDD7` in storage `plocal:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/security`: 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x)  
> java.lang.IllegalMonitorStateException: null

in researching further i found instrucations to migrate OrientDB to H2 [Migrating to a New Database](https://help.sonatype.com/en/migrating-to-a-new-database.html), executing the nexus-db-migrator-\*.jar failed with:

> 12:45:53 [main] ERROR o.s.boot.SpringApplication - Application run failed  
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘batchConfig’: Unsatisfied dependency expressed through method ‘setProcessorConfig’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘processorConfig’ defined in URL [jar:file:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/nexus-db-migrator-3.70.0-02.jar!/com/sonatype/nexus/db/migrator/config/ProcessorConfig.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cipherHandler’ defined in class path resource [com/sonatype/nexus/db/migrator/config/CipherConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sonatype.nexus.db.migrator.utils.CipherHandler]: Factory method ‘cipherHandler’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pbeCipher’ defined in class path resource [com/sonatype/nexus/db/migrator/config/CipherConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonatype.nexus.crypto.PbeCipherFactory$PbeCipher]: Factory method ‘pbeCipher’ threw exception; nested exception is java.lang.SecurityException: JCE cannot authenticate the provider BC

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [July 26, 2024, 2:18pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/2 "2024-07-26T14:18:29Z")

</div>

tried running migration tool again with --logging.level.com.sonatype=DEBUG:

> db]# java -Xmx4G -Xms4G -XX:+UseG1GC -XX:MaxDirectMemorySize=28672M -jar nexus-db-migrator-\*.jar --migration\_type=h2 --logging.level.com.sonatype=DEBUG  
> 07:15:12 [main] WARN c.s.n.d.migrator.MigratorApplication - Please ensure any Nexus Repository instance has been gracefully shut down before proceeding.  
> 07:15:12 [main] INFO c.s.n.d.migrator.MigratorApplication - Do you want to continue [y/n]?  
> y  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - --content\_migration parameter is absent. Setting it to true.  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - Force parameter wasn’t found. Setting it to false by default.  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - ------------------------------------------------------------  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - Java version: Oracle Corporation 1.8.0\_221  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - JVM arguments: -Xmx4G -Xms4G -XX:+UseG1GC -XX:MaxDirectMemorySize=28672M  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - Migrator arguments: --migration\_type=h2 --logging.level.com.sonatype=DEBUG --content\_migration=true --export\_json=false --force=false  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - ------------------------------------------------------------  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - Starting MigratorApplication v3.70.0-02 using Java 1.8.0\_221 on [qqcoqadlin709.qad.com](http://qqcoqadlin709.qad.com) with PID 340119 (/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/nexus-db-migrator-3.70.0-02.jar started by root in /dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db)  
> 07:15:30 [main] DEBUG c.s.n.d.migrator.MigratorApplication - Running with Spring Boot v3.70.0-02, Spring v3.70.0-02  
> 07:15:30 [main] INFO c.s.n.d.migrator.MigratorApplication - No active profile set, falling back to 1 default profile: “default”  
> 07:15:33 [main] WARN o.s.c.a.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘batchConfig’: Unsatisfied dependency expressed through method ‘setProcessorConfig’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘processorConfig’ defined in URL [jar:file:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/nexus-db-migrator-3.70.0-02.jar!/com/sonatype/nexus/db/migrator/config/ProcessorConfig.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cipherHandler’ defined in class path resource [com/sonatype/nexus/db/migrator/config/CipherConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sonatype.nexus.db.migrator.utils.CipherHandler]: Factory method ‘cipherHandler’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pbeCipher’ defined in class path resource [com/sonatype/nexus/db/migrator/config/CipherConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonatype.nexus.crypto.PbeCipherFactory$PbeCipher]: Factory method ‘pbeCipher’ threw exception; nested exception is java.lang.SecurityException: JCE cannot authenticate the provider BC  
> 07:15:33 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -

> Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.  
> 07:15:33 [main] ERROR o.s.boot.SpringApplication - Application run failed  
> org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘batchConfig’: Unsatisfied dependency expressed through method ‘setProcessorConfig’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘processorConfig’ defined in URL [jar:file:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/nexus-db-migrator-3.70.0-02.jar!/com/sonatype/nexus/db/migrator/config/ProcessorConfig.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘cipherHandler’ defined in class path resource [com/sonatype/nexus/db/migrator/config/CipherConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sonatype.nexus.db.migrator.utils.CipherHandler]: Factory method ‘cipherHandler’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pbeCipher’ defined in class path resource [com/sonatype/nexus/db/migrator/config/CipherConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonatype.nexus.crypto.PbeCipherFactory$PbeCipher]: Factory method ‘pbeCipher’ threw exception; nested exception is java.lang.SecurityException: JCE cannot authenticate the provider BC

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [July 29, 2024, 1:31pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/3 "2024-07-29T13:31:52Z")

</div>

> [@ddc](#):
>
> JCE cannot authenticate the provider BC

Whatever setup you have is blocking cryptography on the migrator

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [July 29, 2024, 3:18pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/4 "2024-07-29T15:18:46Z")

</div>

very much appreciate response … any additional information would be helpful if you can provide?

curious why you statement includes “Whatever setup you have”?

what does that mean to you? my setup is as standard as i know it to be … i simply untar’ed the tar/gzip to a location on disk … copied over the work dir from 3.41 as indicated in [How to Upgrade Nexus Repository 3.0.2 to 3.1.0 or Later](https://support.sonatype.com/hc/en-us/articles/231723267-How-to-Upgrade-Nexus-Repository-3-0-2-to-3-1-0-or-Later) and then attempted the migration jar; no joy.

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [July 29, 2024, 4:10pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/5 "2024-07-29T16:10:23Z")

</div>

based on information you provided, i found some hits via google suggesting the following:

1. edit jre\lib\security\java.security file
2. add security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider (completed)
3. copy bc\*.jar to jre\lib\ext (i found the following bc\*.jar files and copied into my java instance: ./nexus-3.70.1-02/nexus-3.70.1-02/lib/bcpg-jdk15to18-1.78.1.jar  
./nexus-3.70.1-02/nexus-3.70.1-02/lib/bcpkix-jdk15to18-1.78.1.jar  
./nexus-3.70.1-02/nexus-3.70.1-02/lib/bcprov-jdk15to18-1.78.1.jar  
./nexus-3.70.1-02/nexus-3.70.1-02/lib/bcutil-jdk15to18-1.78.1.jar)

execute: qqcoqadlin709 db]# java -jar nexus-db-migrator-\*.jar --healthcheck --yes --logging.level.com.sonatype=TRACE

i receive the following:  
08:46:47 [main] INFO o.s.batch.core.job.SimpleStepHandler - Executing step: [startHealthCheckStep]  
09:02:57 [main SELECT FROM (SELECT @rid, bucket, component, name, COUNT(\*) AS count FROM asset GROUP BY bucket, component, name) WHERE count \> 1] ERROR o.s.batch.core.step.AbstractStep - Encountered an error executing step startHealthCheckStep in job migrationFromOrientJob

do i need to migrate or should i be able to just start nexus?

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [July 29, 2024, 4:14pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/6 "2024-07-29T16:14:52Z")

</div>

when i attempt to start, receiving following in nexus.log:  
2024-07-29 09:11:57,002-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl -

* * *

Begin upgrade

* * *

2024-07-29 09:11:57,003-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint config  
2024-07-29 09:11:57,373-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint security  
2024-07-29 09:11:57,547-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint component  
2024-07-29 09:13:42,205-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Checkpoint elasticsearch  
2024-07-29 09:13:42,209-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl -

* * *

Apply upgrade

* * *

2024-07-29 09:13:42,222-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade SettingsCapability from 1.0 to 1.1  
2024-07-29 09:13:42,281-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade api\_key from 1.0 to 1.1  
2024-07-29 09:13:42,283-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.internal.security.apikey.orient.upgrade.ApiKeyUpgrade\_1\_1 - Updating api\_key index  
2024-07-29 09:13:42,323-0700 ERROR [FelixStartLevel] \*SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `0ADC1C84` in storage `plocal:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/security`: 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x)  
java.lang.IllegalMonitorStateException: null

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [July 29, 2024, 5:33pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/7 "2024-07-29T17:33:49Z")

</div>

after java.security and copying bc\*.jar to java dir … when i start nexus getting this in log:

Apply upgrade

* * *

2024-07-29 10:30:13,730-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade SettingsCapability from 1.0 to 1.1  
2024-07-29 10:30:13,778-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade api\_key from 1.0 to 1.1  
2024-07-29 10:30:13,780-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.internal.security.apikey.orient.upgrade.ApiKeyUpgrade\_1\_1 - Updating api\_key index  
2024-07-29 10:30:13,809-0700 ERROR [FelixStartLevel] \*SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `203622F8` in storage `plocal:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/security`: 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x)  
java.lang.IllegalMonitorStateException: null

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [July 31, 2024, 5:49pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/8 "2024-07-31T17:49:53Z")

</div>

> [@ddc](#):
>
> curious why you statement includes “Whatever setup you have”?

Basically you aren’t using a JDK with the typical cryptography available. There are a number of possible causes for that including user configuration, FIPS, or missing unlimited strength cryptography.

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [August 2, 2024, 6:04pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/9 "2024-08-02T18:04:39Z")

</div>

The tar.gz does not include java, Nexus Repo will use the java already installed in the OS. From the error above, it looks like this might be Oracle Java? I suggest installing the latest OpenJDK 8 or 11.

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 2, 2024, 8:38pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/10 "2024-08-02T20:38:59Z")

</div>

thank you @rseddon … you are correct we have Oracle java version “1.8.0\_221”.

as suggested, i will try using openjdk Monday morning.

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 5, 2024, 4:20pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/11 "2024-08-05T16:20:06Z")

</div>

first hoping someone might be able to confirm this upgrade is valid?  
i read a note that when upgrading H2 database from a nexus version prior to 3.69 it is first required to upgrade to 3.69 then to 3.70? in our case, i believe we are still orientDB so i do not believe this applies to our use case and we should be OK upgrading directly from 3.41 to 3.70??

my testing this morning has not yielded any success … i first tried using openjdk11.0.5\_10; no joy, would not even start nor did it log anything under sonatype-work/nexus3/log dir.

it did start when i used openjdk1.8.0\_322 but again failed in the log file during the apply upgrade section.

i remain unclear why it failed using openjdk11.0.5\_10 as everything i read states this 3.70 version should work using openjdk 8 or 11?!?!?

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 6, 2024, 2:58pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/12 "2024-08-06T14:58:52Z")

</div>

found executing bin/nexus run gives more output (this is when using openjdk 11):  
qqcoqadlin709 bin]# /dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/bin/nexus run  
WARNING: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
WARNING: Detected execution as “root” user. This is NOT recommended!  
WARNING: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
-Djava.endorsed.dirs=lib/endorsed is not supported. Endorsed standards and standalone APIs  
in modular form will be supported via the concept of upgradeable modules.  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 6, 2024, 3:03pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/13 "2024-08-06T15:03:50Z")

</div>

found -Djava.endorsed.dirs=lib/endorsed uncommented in nexus.vmoptions file; i have commented this line and executed: /dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/bin/nexus run

still fails in the apply upgrade section of log:

Apply upgrade

* * *

2024-08-06 08:03:16,585-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade SettingsCapability from 1.0 to 1.1  
2024-08-06 08:03:16,638-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.upgrade.internal.orient.UpgradeServiceImpl - Upgrade api\_key from 1.0 to 1.1  
2024-08-06 08:03:16,640-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.internal.security.apikey.orient.upgrade.ApiKeyUpgrade\_1\_1 - Updating api\_key index  
2024-08-06 08:03:16,667-0700 ERROR [FelixStartLevel] \*SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `4543C258` in storage `plocal:/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/db/security`: 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x)  
java.lang.IllegalMonitorStateException: null

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 6, 2024, 4:54pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/14 "2024-08-06T16:54:37Z")

</div>

found this post which lead me to successfully connect to db=config

> [@Orient db not able to connect](http://community.sonatype.com/t/orient-db-not-able-to-connect/5252/3):
>
> Hi, my nexus.vmopitions are -Xms1200M -Xmx1200M -XX:MaxDirectMemorySize=2G -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -XX:+LogVMOutput -XX:LogFile=…/sonatype-work/nexus3/log/jvm.log -XX:-OmitStackTraceInFastThrow -Djava.net.preferIPv4Stack=true -Dkaraf.home=. and i tried with correct but as show below orientdb\> connect plocal:/sonatype-work/nexus/db/config admin admin Connecting to database [plocal:/sonatype-work/nexus/db/config] with user ‘admin’…Exception 497AEC8C in st…

nexus-3.70.1-02]# java -jar ./nexus-3.70.1-02/lib/support/nexus-orient-console.jar  
Warning: Nashorn engine is planned to be removed from a future JDK release

OrientDB console v.2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x) [https://www.orientdb.com](https://www.orientdb.com)  
Type ‘help’ to display all the supported commands.  
orientdb\> connect plocal:…/sonatype-work/nexus3/db/config admin admin

Connecting to database [plocal:…/sonatype-work/nexus3/db/config] with user ‘admin’…WARNING: An illegal reflective access operation has occurred  
WARNING: Illegal reflective access by com.orientechnologies.common.directmemory.OByteBufferPool (file:/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/system/com/orientechnologies/orientdb-core/2.2.37/orientdb-core-2.2.37.jar) to method sun.nio.ch.DirectBuffer.cleaner()  
WARNING: Please consider reporting this to the maintainers of com.orientechnologies.common.directmemory.OByteBufferPool  
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations  
WARNING: All illegal access operations will be denied in a future release  
OK

---

<div class="post-metadata">

**Author:** ![d.j.mansukhani](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@d.j.mansukhani](https://community.sonatype.com/u/d.j.mansukhani)\
**Post date:** [August 6, 2024, 5:36pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/15 "2024-08-06T17:36:42Z")

</div>

Hi,  
Do let us know in case if still any query.

Thanks  
DJM

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 6, 2024, 5:52pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/16 "2024-08-06T17:52:28Z")

</div>

hello and thank you for response.

yes, still having issues.

---

<div class="post-metadata">

**Author:** ![d.j.mansukhani](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@d.j.mansukhani](https://community.sonatype.com/u/d.j.mansukhani)\
**Post date:** [August 9, 2024, 3:45pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/17 "2024-08-09T15:45:20Z")

</div>

Hi David,

Are you still facing issue on this.  
Do let us know with updated log.

Thanks  
DJM

---

<div class="post-metadata">

**Author:** ![ddc](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ddc/32/3551_2.png) [@ddc](https://community.sonatype.com/u/ddc)\
**Post date:** [August 12, 2024, 6:05pm UTC](https://community.sonatype.com/t/standalone-nexus-3-41-1-upgrade-to-3-70-1-issues/12956/18 "2024-08-12T18:05:25Z")

</div>

not seeing where/how to attach a log file so posting text here:

2024-08-12 10:42:49,039-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.pax.logging.NexusLogActivator - start  
2024-08-12 10:42:49,140-0700 ERROR [FelixStartLevel] \*SYSTEM Felix - Bundle org.apache.felix.framework [0] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

2024-08-12 10:42:49,141-0700 ERROR [FelixDispatchQueue] \*SYSTEM Events.Framework - FrameworkEvent ERROR  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

2024-08-12 10:42:49,395-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.features.internal.FeaturesWrapper - Fast  
FeaturesService starting  
2024-08-12 10:42:50,097-0700 INFO [FelixStartLevel] \*SYSTEM ROOT - bundle org.apache.felix.scr:2.1.30 (56) Starting with  
globalExtender setting: false  
2024-08-12 10:42:50,102-0700 INFO [FelixStartLevel] \*SYSTEM ROOT - bundle org.apache.felix.scr:2.1.30 (56) Version = 2.  
1.30  
2024-08-12 10:42:50,364-0700 WARN [FelixStartLevel] \*SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4JInitialise  
r - Your logging framework class org.ops4j.pax.logging.slf4j.Slf4jLogger is not known - if it needs access to the standard  
println methods on the console you will need to register it by calling registerLoggingSystemPackage  
2024-08-12 10:42:50,365-0700 INFO [FelixStartLevel] \*SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Package  
org.ops4j.pax.logging.slf4j registered; all classes within it or subpackages of it will be allowed to print to System.out  
and System.err  
2024-08-12 10:42:50,368-0700 INFO [FelixStartLevel] \*SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Replace  
d standard System.out and System.err PrintStreams with SLF4JPrintStreams  
2024-08-12 10:42:50,369-0700 INFO [FelixStartLevel] \*SYSTEM uk.org.lidalia.sysoutslf4j.context.SysOutOverSLF4J - Redirec  
ted System.out and System.err to SLF4J for this context  
2024-08-12 10:42:50,374-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - Properti  
es:  
2024-08-12 10:42:50,374-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - applic  
ation-host=‘0.0.0.0’  
2024-08-12 10:42:50,374-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - applic  
ation-port=‘11000’  
2024-08-12 10:42:50,375-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - fabric  
.etc=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/fabric’  
2024-08-12 10:42:50,375-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - jetty.  
etc=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jetty’  
2024-08-12 10:42:50,375-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.  
base=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02’  
2024-08-12 10:42:50,375-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.  
data=‘/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3’  
2024-08-12 10:42:50,376-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.  
etc=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/karaf’  
2024-08-12 10:42:50,376-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.  
home=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02’  
2024-08-12 10:42:50,376-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - karaf.  
instances=‘/dr01/maven/nexus-3.70.1-02/sonatype-work/nexus3/instances’  
2024-08-12 10:42:50,376-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - logbac  
k.etc=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/logback’  
2024-08-12 10:42:50,376-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-  
args=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jetty/jetty.xml,/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jett  
y/jetty-http.xml,/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jetty/jetty-requestlog.xml’  
2024-08-12 10:42:50,377-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-  
context-path=‘/nexus3’  
2024-08-12 10:42:50,377-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-  
edition=‘nexus-pro-edition’  
2024-08-12 10:42:50,377-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus-  
features=‘nexus-pro-feature’  
2024-08-12 10:42:50,377-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - nexus.  
hazelcast.discovery.isEnabled=‘true’  
2024-08-12 10:42:50,378-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.ConfigurationBuilder - ssl.et  
c=‘/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/ssl’  
2024-08-12 10:42:50,378-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.Launcher - Java: 1.8.0\_322, Ope  
nJDK 64-Bit Server VM, Temurin, 25.322-b06  
2024-08-12 10:42:50,378-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.Launcher - OS: Linux, 4.18.0-55  
3.5.1.el8\_10.x86\_64, amd64  
2024-08-12 10:42:50,378-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.Launcher - User: root, en, /roo  
t  
2024-08-12 10:42:50,379-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.Launcher - CWD: /dr01/maven/nex  
us-3.70.1-02/nexus-3.70.1-02  
2024-08-12 10:42:50,380-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.Launcher - TMP: /dr01/maven/nex  
us-3.70.1-02/sonatype-work/nexus3/tmp  
2024-08-12 10:42:50,384-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting  
2024-08-12 10:42:50,391-0700 INFO [FelixStartLevel] \*SYSTEM org.eclipse.jetty.util.log - Logging initialized @2904ms to  
org.eclipse.jetty.util.log.Slf4jLog  
2024-08-12 10:42:50,396-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying co  
nfiguration: file:/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jetty/jetty.xml  
2024-08-12 10:42:50,530-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying co  
nfiguration: file:/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jetty/jetty-http.xml  
2024-08-12 10:42:50,558-0700 INFO [FelixStartLevel] \*SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Applying co  
nfiguration: file:/dr01/maven/nexus-3.70.1-02/nexus-3.70.1-02/etc/jetty/jetty-requestlog.xml  
2024-08-12 10:42:50,575-0700 INFO [jetty-main-1] \*SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Starting: Serv  
er@57887d1{STOPPED}[9.4.53.v20231009]  
2024-08-12 10:42:50,580-0700 INFO [jetty-main-1] \*SYSTEM org.eclipse.jetty.server.Server - jetty-9.4.53.v20231009; built  
: 2023-10-09T12:29:09.265Z; git: 27bde00a0b95a1d5bbee0eae7984f891d2d0f8c9; jvm 1.8.0\_322-b06  
2024-08-12 10:42:50,642-0700 INFO [jetty-main-1] \*SYSTEM org.eclipse.jetty.server.session - DefaultSessionIdManager work  
erName=node0  
2024-08-12 10:42:50,643-0700 INFO [jetty-main-1] \*SYSTEM org.eclipse.jetty.server.session - No SessionScavenger set, usi  
ng defaults  
2024-08-12 10:42:50,644-0700 INFO [jetty-main-1] \*SYSTEM org.eclipse.jetty.server.session - node0 Scavenging every 60000  
0ms  
2024-08-12 10:42:50,651-0700 INFO [jetty-main-1] \*SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Initializ  
ing  
2024-08-12 10:42:50,662-0700 INFO [jetty-main-1] \*SYSTEM org.sonatype.nexus.bootstrap.osgi.OssNexusEdition - Loading OSS  
Edition  
2024-08-12 10:42:50,663-0700 INFO [jetty-main-1] \*SYSTEM org.sonatype.nexus.bootstrap.osgi.BootstrapListener - Installin  
g: nexus-oss-edition/3.70.1.02 (nexus-orient/3.70.1.02)  
2024-08-12 10:42:52,595-0700 ERROR [jetty-main-1] \*SYSTEM Felix - Bundle org.apache.felix.framework [0] EventDispatcher:  
Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

2024-08-12 10:42:52,596-0700 ERROR [FelixDispatchQueue] \*SYSTEM Events.Framework - FrameworkEvent ERROR  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

2024-08-12 10:42:52,597-0700 ERROR [jetty-main-1] \*SYSTEM Felix - Bundle org.apache.felix.framework [0] EventDispatcher:  
Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

2024-08-12 10:42:52,639-0700 ERROR [jetty-main-1] \*SYSTEM Felix - Bundle org.apache.felix.framework [0] EventDispatcher:  
Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

2024-08-12 10:42:52,666-0700 ERROR [jetty-main-1] \*SYSTEM Felix - Bundle org.apache.felix.framework [0] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator)  
java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator

i am focused on trying to understand why i am now getting this error which indicates a missing jar file, a version conflict of some sort, possibly corrupted jar file or some issue just loading the class.
