-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 7.5.7
-
Fix Version/s: None
-
Component/s: Access, Access Tokens
-
Labels:None
-
Environment:
Virtual Machine, CentOS Linux release 7.8.2003 (Core)
-
Severity:High
I am trying to upgrade my on-prem Artifactory Pro instance from 6.15.1 to 7.5.7.
I've built a new server with 7.5.7 installed, so the 6.15.1 server is separate from the new one.
I ran a System Export in the old Artifactory server with "Exclude Content" checked.
Then I tried to run a System Import in the new 7.5.7 server, with no options checked.
As soon as the import started on the 7.5.7 server, the UI logged me out, and I started seeing these 401 errors in console.log:
2020-09-23T15:58:21.153Z ^[[1;32m[jfrt ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [ifactoryApplicationContext:608] [http-nio-8081-exec-2] - ### Beginning full system import ### 2020-09-23T15:58:21.165Z ^[[1;32m[jfrt ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [o.a.s.a.AccessServiceImpl:1400] [http-nio-8081-exec-2] - Triggering import in access server... 2020-09-23T15:58:21.183Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [.BiDirectionalLazyCacheImpl:92] [27.0.0.1-8040-exec-4] - Cache disabled! 2020-09-23T15:58:21.184Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [.BiDirectionalLazyCacheImpl:92] [27.0.0.1-8040-exec-4] - Cache disabled! 2020-09-23T15:58:21.186Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [.AccessImporterExporterImpl:85] [27.0.0.1-8040-exec-4] - Importing access server config and data from file: /opt/jfrog/artifactory/var/etc/access/access.bootstrap.json 2020-09-23T15:58:21.186Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:105] [27.0.0.1-8040-exec-4] - Starting import -> overwrite:true full:true ... 2020-09-23T15:58:21.222Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [j.a.m.ConfigMigrationRunner:73] [27.0.0.1-8040-exec-4] - Current version of Access Backup JSON is 4, latest version is 6. Applying migrations. 2020-09-23T15:58:21.223Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [j.a.m.ConfigMigrationRunner:73] [27.0.0.1-8040-exec-4] - Migrating Access Backup JSON to version 5 2020-09-23T15:58:21.231Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [j.a.m.ConfigMigrationRunner:73] [27.0.0.1-8040-exec-4] - Migrating Access Backup JSON to version 6 2020-09-23T15:58:21.231Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [UnifiedPermissionsConverter:48] [27.0.0.1-8040-exec-4] - converting 5 permission before import 2020-09-23T15:58:21.238Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [nifiedPermissionsConverter:114] [27.0.0.1-8040-exec-4] - 4 permission to import after v5 conversion 2020-09-23T15:58:21.261Z ^[[1;33m[jfac ]^[[0;39m ^[[31m[WARN ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:170] [27.0.0.1-8040-exec-4] - Found unmapped content with key NodeIdServiceId 2020-09-23T15:58:21.263Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing groups... 2020-09-23T15:58:21.278Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [.d.GroupStorageServiceImpl:290] [27.0.0.1-8040-exec-4] - Deleting existing groups 2020-09-23T15:58:21.304Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [.d.GroupStorageServiceImpl:292] [27.0.0.1-8040-exec-4] - Importing 4 groups 2020-09-23T15:58:21.327Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing groups in 51.27 millis 2020-09-23T15:58:21.328Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing users... 2020-09-23T15:58:21.345Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [s.d.UserStorageServiceImpl:490] [27.0.0.1-8040-exec-4] - Deleting existing users 2020-09-23T15:58:21.351Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [s.d.UserStorageServiceImpl:492] [27.0.0.1-8040-exec-4] - Importing 21 users 2020-09-23T15:58:21.537Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing users in 208.58 millis 2020-09-23T15:58:21.538Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing tokens... 2020-09-23T15:58:21.557Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing tokens in 18.92 millis 2020-09-23T15:58:21.557Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing federation_events... 2020-09-23T15:58:21.567Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing federation_events in 9.16 millis 2020-09-23T15:58:21.567Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing federation_servers... 2020-09-23T15:58:21.572Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing federation_servers in 4.45 millis 2020-09-23T15:58:21.572Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing permissions... 2020-09-23T15:58:21.582Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [rmissionStorageServiceImpl:629] [27.0.0.1-8040-exec-4] - Deleting existing permissions 2020-09-23T15:58:21.593Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [rmissionStorageServiceImpl:631] [27.0.0.1-8040-exec-4] - Importing 4 permissions 2020-09-23T15:58:21.608Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing permissions in 35.04 millis 2020-09-23T15:58:21.608Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing encryption... 2020-09-23T15:58:21.609Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [CertificateFileHandlerBase:137] [27.0.0.1-8040-exec-4] - Importing root certificate. 2020-09-23T15:58:21.787Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [CertificateFileHandlerBase:331] [27.0.0.1-8040-exec-4] - [ACCESS BOOTSTRAP] Saved new root certificate at: /opt/jfrog/artifactory/var/etc/access/keys/root.crt 2020-09-23T15:58:21.788Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [CertificateFileHandlerBase:162] [27.0.0.1-8040-exec-4] - Finished importing root certificate. 2020-09-23T15:58:21.788Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing encryption in 179.94 millis 2020-09-23T15:58:21.789Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:155] [27.0.0.1-8040-exec-4] - Importing config... 2020-09-23T15:58:21.811Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [a.c.RefreshableScheduledJob:53] [27.0.0.1-8040-exec-4] - Scheduling federationCleanupService task to run every 1209600 seconds 2020-09-23T15:58:21.812Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [ef868c87b3c30c9d] [.f.FederationCleanupService:59] [jf-access-task1 ] - Running clean up of outdated Federation events 2020-09-23T15:58:21.819Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:164] [27.0.0.1-8040-exec-4] - Finished importing config in 30.05 millis 2020-09-23T15:58:21.850Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [AccessImporterExporterImpl:113] [27.0.0.1-8040-exec-4] - Finished importing 2020-09-23T08:58:21.839L ^[[35m[tomct]^[[0m [SEVERE] [ ] [io.grpc.internal.SerializingExecutor] [io.grpc.internal.SerializingExecutor run] - Exception while executing runnable io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated@385325ea org.jfrog.access.server.exception.UnauthorizedException: Bearer authentication failed, invalid token at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.authenticateBearer(AuthenticationServiceImpl.java:385) at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.processAuthSymbol(AuthenticationServiceImpl.java:335) at org.jfrog.access.server.rpc.service.TokenServerInterceptor.interceptCall(TokenServerInterceptor.java:37) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.TracerServerInterceptor$ContextServerCallHandler.startCall(TracerServerInterceptor.java:76) at io.grpc.Contexts.interceptCall(Contexts.java:52) at org.jfrog.access.server.rpc.service.TracerServerInterceptor.interceptCall(TracerServerInterceptor.java:55) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.LoggerInterceptor.interceptCall(LoggerInterceptor.java:23) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startWrappedCall(ServerImpl.java:649) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startCall(ServerImpl.java:627) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.access$1900(ServerImpl.java:417) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInternal(ServerImpl.java:557) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInContext(ServerImpl.java:532) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 2020-09-23T15:58:21.858Z ^[[34;1m[jfmd ]^[[0m ^[[34m[INFO ]^[[0m [6f44e58218c91b6f] [compatibility_logger.go:22 ] [main ] - Refreshing [permissions] stream - target server terminated gracefully [access_client] 2020-09-23T15:58:21.868Z ^[[36m[jfrou]^[[0m ^[[31;1m[ERROR]^[[0m [4db4bc8101706c2e] [external_topology.go:82 ] [main ] - failed fetching external topology from Access: bad response status: 401 Unauthorized 2020-09-23T15:58:21.870Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [BiDirectionalLazyCacheImpl:121] [27.0.0.1-8040-exec-4] - Enabled cache for 'GroupCachingRepo' 2020-09-23T15:58:21.870Z ^[[1;33m[jfac ]^[[0;39m ^[[34m[INFO ]^[[0;39m [7a6caa6d23e6bbf6] [BiDirectionalLazyCacheImpl:121] [27.0.0.1-8040-exec-4] - Enabled cache for 'UserCachingRepo' 2020-09-23T15:58:21.870Z ^[[34;1m[jfmd ]^[[0m ^[[31m[WARN ]^[[0m [6f44e58218c91b6f] [compatibility_logger.go:25 ] [main ] - [permissions] stream stopped (UNAUTHENTICATED) - immediate cache invalidation will not work without restart [access_client] 2020-09-23T08:58:21.869L ^[[35m[tomct]^[[0m [SEVERE] [ ] [io.grpc.internal.SerializingExecutor] [io.grpc.internal.SerializingExecutor run] - Exception while executing runnable io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated@664b80a3 org.jfrog.access.server.exception.UnauthorizedException: Bearer authentication failed, invalid token at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.authenticateBearer(AuthenticationServiceImpl.java:385) at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.processAuthSymbol(AuthenticationServiceImpl.java:335) at org.jfrog.access.server.rpc.service.TokenServerInterceptor.interceptCall(TokenServerInterceptor.java:37) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.TracerServerInterceptor$ContextServerCallHandler.startCall(TracerServerInterceptor.java:76) at io.grpc.Contexts.interceptCall(Contexts.java:52) at org.jfrog.access.server.rpc.service.TracerServerInterceptor.interceptCall(TracerServerInterceptor.java:55) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.LoggerInterceptor.interceptCall(LoggerInterceptor.java:23) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startWrappedCall(ServerImpl.java:649) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startCall(ServerImpl.java:627) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.access$1900(ServerImpl.java:417) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInternal(ServerImpl.java:557) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInContext(ServerImpl.java:532) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
2020-09-23T18:22:40.493Z [jffe ] [ERROR] [ ] [ ] [main ] - TypeError: Cannot read property 'accessToken' of undefined at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:208:46) 2020-09-23T18:22:40.494Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error creating admin token for user for service - artifactory at Function.createAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:139:20) 2020-09-23T18:22:40.494Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: GRPC error - UNAUTHENTICATED at Function.handleError (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:328:20) at Function.createAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:140:26) 2020-09-23T18:22:40.495Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error getting admin token for service artifactory at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:212:20) 2020-09-23T18:22:40.495Z [jffe ] [ERROR] [ ] [ ] [main ] - TypeError: Cannot read property 'accessToken' of undefined at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:208:46) 2020-09-23T18:22:40.496Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error creating admin token for user for service - artifactory at Function.createAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:139:20) 2020-09-23T18:22:40.496Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: GRPC error - UNAUTHENTICATED at Function.handleError (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:328:20) at Function.createAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:140:26) 2020-09-23T18:22:40.496Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error getting admin token for service artifactory 2020-09-23T11:22:40.502L [tomct] [SEVERE] [ ] [io.grpc.internal.SerializingExecutor] [io.grpc.internal.SerializingExecutor run] - Exception while executing runnable io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated@7690435d org.jfrog.access.server.exception.UnauthorizedException: Bearer authentication failed, invalid token at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.authenticateBearer(AuthenticationServiceImpl.java:385) at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.processAuthSymbol(AuthenticationServiceImpl.java:335) at org.jfrog.access.server.rpc.service.TokenServerInterceptor.interceptCall(TokenServerInterceptor.java:37) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.TracerServerInterceptor$ContextServerCallHandler.startCall(TracerServerInterceptor.java:76) at io.grpc.Contexts.interceptCall(Contexts.java:52) at org.jfrog.access.server.rpc.service.TracerServerInterceptor.interceptCall(TracerServerInterceptor.java:55) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.LoggerInterceptor.interceptCall(LoggerInterceptor.java:23) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startWrappedCall(ServerImpl.java:649) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startCall(ServerImpl.java:627) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.access$1900(ServerImpl.java:417) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInternal(ServerImpl.java:557) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInContext(ServerImpl.java:532) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:212:20) 2020-09-23T11:22:40.503L [tomct] [SEVERE] [ ] [io.grpc.internal.SerializingExecutor] [io.grpc.internal.SerializingExecutor run] - Exception while executing runnable io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated@4611f285 org.jfrog.access.server.exception.UnauthorizedException: Bearer authentication failed, invalid token at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.authenticateBearer(AuthenticationServiceImpl.java:385) at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.processAuthSymbol(AuthenticationServiceImpl.java:335) at org.jfrog.access.server.rpc.service.TokenServerInterceptor.interceptCall(TokenServerInterceptor.java:37) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.TracerServerInterceptor$ContextServerCallHandler.startCall(TracerServerInterceptor.java:76) at io.grpc.Contexts.interceptCall(Contexts.java:52) at org.jfrog.access.server.rpc.service.TracerServerInterceptor.interceptCall(TracerServerInterceptor.java:55) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.LoggerInterceptor.interceptCall(LoggerInterceptor.java:23) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startWrappedCall(ServerImpl.java:649) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startCall(ServerImpl.java:627) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.access$1900(ServerImpl.java:417) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInternal(ServerImpl.java:557) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInContext(ServerImpl.java:532) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 2020-09-23T11:22:40.503L [tomct] [SEVERE] [ ] [io.grpc.internal.SerializingExecutor] [io.grpc.internal.SerializingExecutor run] - Exception while executing runnable io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated@1ddcbc8b org.jfrog.access.server.exception.UnauthorizedException: Bearer authentication failed, invalid token at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.authenticateBearer(AuthenticationServiceImpl.java:385) at org.jfrog.access.server.service.auth.AuthenticationServiceImpl.processAuthSymbol(AuthenticationServiceImpl.java:335) at org.jfrog.access.server.rpc.service.TokenServerInterceptor.interceptCall(TokenServerInterceptor.java:37) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.TracerServerInterceptor$ContextServerCallHandler.startCall(TracerServerInterceptor.java:76) at io.grpc.Contexts.interceptCall(Contexts.java:52) at org.jfrog.access.server.rpc.service.TracerServerInterceptor.interceptCall(TracerServerInterceptor.java:55) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at org.jfrog.access.server.rpc.service.LoggerInterceptor.interceptCall(LoggerInterceptor.java:23) at io.grpc.ServerInterceptors$InterceptCallHandler.startCall(ServerInterceptors.java:244) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startWrappedCall(ServerImpl.java:649) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.startCall(ServerImpl.java:627) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl.access$1900(ServerImpl.java:417) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInternal(ServerImpl.java:557) at io.grpc.internal.ServerImpl$ServerTransportListenerImpl$1StreamCreated.runInContext(ServerImpl.java:532) at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 2020-09-23T18:22:40.497Z [jffe ] [ERROR] [ ] [ ] [main ] - TypeError: Cannot read property 'accessToken' of undefined at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:208:46) 2020-09-23T18:22:40.498Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error creating admin token for user for service - artifactory at Function.createAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:139:20) 2020-09-23T18:22:40.499Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: GRPC error - UNAUTHENTICATED at Function.handleError (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:328:20) at Function.createAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:140:26) 2020-09-23T18:22:40.499Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error getting admin token for service artifactory at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:212:20) 2020-09-23T18:22:40.499Z [jffe ] [ERROR] [ ] [ ] [main ] - TypeError: Cannot read property 'accessToken' of undefined at Function.getAdminToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:208:46) 2020-09-23T18:22:40.501Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error creating impersonation token for user - null for service - artifactory at Function.createImpersonationToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:114:20) 2020-09-23T18:22:40.502Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error getting impersonation token for user - null with sessionId - for service artifactory at Function.getImpersonationToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:175:9) 2020-09-23T18:22:40.502Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: GRPC error - UNAUTHENTICATED at Function.handleError (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:328:20) at Function.getImpersonationToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:179:26) 2020-09-23T18:22:40.505Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error creating impersonation token for user - null for service - artifactory at Function.createImpersonationToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:114:20) 2020-09-23T18:22:40.505Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: error getting impersonation token for user - null with sessionId - for service artifactory at Function.getImpersonationToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:175:9) 2020-09-23T18:22:40.505Z [jffe ] [ERROR] [ ] [ ] [main ] - Error: GRPC error - UNAUTHENTICATED at Function.handleError (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:328:20) at Function.getImpersonationToken (/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Services/Access/AccessTokenService.ts:179:26)
I tried updating access-admin credentials, but that doesn't work either:
[root@artifactory-01 artifactory]# curl -XPATCH -uaccess-admin:password http://localhost:8040/access/api/v1/users/access-admin -H "Content-Type: application/json" -d '{ "password": "Password" }' {"errors":[{"code":"UNAUTHORIZED","detail":"Unauthorized","message":"HTTP 401 Unauthorized"}]}
I noticed the issue is non-existent if I restart Artifactory after the system import completes.
What is the reason for these errors and is there anything extra I should have done during the system import to avoid the errors ?