sonatype / docker-nexus

Docker image for Sonatype Nexus
Other
383 stars 201 forks source link

Error when trying to change password #549

Closed Loahrs closed 1 year ago

Loahrs commented 1 year ago

I installed Nexus via the :latest docker image. (At the time of this issue, thats version OSS 3.59.0-01) After entering the default password, I am not being asked for a new password. When I try to set it through the admins user menu, the following error is logged and the new password isn't set:

2023-08-30 16:35:04,081+0000 INFO  [qtp458314874-1253] *UNKNOWN org.apache.shiro.session.mgt.AbstractValidatingSessionManager - Enabling session validation scheduler...
2023-08-30 16:35:04,089+0000 INFO  [qtp458314874-1253] *UNKNOWN org.sonatype.nexus.internal.security.anonymous.AnonymousManagerImpl - Using default configuration: OrientAnonymousConfiguration{enabled=true, userId='anonymous', realmName='NexusAuthorizingRealm'}
2023-08-30 16:35:29,293+0000 INFO  [qtp458314874-1255] *UNKNOWN org.ehcache.jsr107.ConfigurationMerger - Configuration of cache shiro-activeSessionCache will be supplemented by template nexus-default
2023-08-30 16:35:29,297+0000 INFO  [qtp458314874-1255] *UNKNOWN org.ehcache.core.EhcacheManager - Cache 'shiro-activeSessionCache' created in EhcacheManager.
2023-08-30 16:35:29,298+0000 INFO  [qtp458314874-1255] *UNKNOWN org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheConfiguration,CacheManager=file./opt/sonatype/nexus/etc/fabric/ehcache.xml,Cache=shiro-activeSessionCache
2023-08-30 16:35:29,299+0000 INFO  [qtp458314874-1255] *UNKNOWN org.ehcache.jsr107.Eh107CacheManager - Registering Ehcache MBean javax.cache:type=CacheStatistics,CacheManager=file./opt/sonatype/nexus/etc/fabric/ehcache.xml,Cache=shiro-activeSessionCache
2023-08-30 16:35:29,307+0000 INFO  [qtp458314874-1255] admin org.sonatype.nexus.rapture.internal.security.SessionServlet - Created session for user: admin
2023-08-30 16:35:44,421+0000 INFO  [periodic-4-thread-1] *SYSTEM org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for nuget.org-proxy changed from READY to AVAILABLE - reason n/a for n/a
2023-08-30 16:35:52,303+0000 WARN  [qtp458314874-516] *UNKNOWN org.sonatype.nexus.siesta.internal.JsonMappingExceptionMapper - (ID f7b3f091-bcaa-4c11-a138-3091d0e11534) Response: [400] '[ValidationErrorXO{id='authToken', message='Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)'}]'; mapped from: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: (org.eclipse.jetty.server.HttpInputOverHTTP); line: 1, column: 14] (through reference chain: org.sonatype.nexus.coreui.UserAccountPasswordXO["authToken"])

The container should have all the access rights in the mounted volume.

Loahrs commented 1 year ago

Okay, weirdly I don't have this kind of error in a private browser window. So the problem seems to have to do with the browser. Will close it for now.