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

Cannot unlink account from the Authorizer app #240

Open
Hsankesara opened this issue Aug 23, 2023 · 0 comments
Open

Cannot unlink account from the Authorizer app #240

Hsankesara opened this issue Aug 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Hsankesara
Copy link
Member

When running radar-rest-source auth, I cannot unlink the linked user due to redis lock issue I think.

Logs from radar-rest-source-backend

[2023-08-23 10:28:23,103] ERROR - [500] GET users/26 (UnhandledExceptionMapper.kt:30)
java.io.IOException: redis.clients.jedis.exceptions.JedisConnectionException: Failed to connect to any host resolved for DNS name.
        at org.radarbase.authorizer.service.RedisLockService.withJedis(RedisLockService.kt:67) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
        at org.radarbase.authorizer.service.RedisLockService.runLocked-8Mi8wO0(RedisLockService.kt:38) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
        at org.radarbase.authorizer.service.RestSourceUserService.delete(RestSourceUserService.kt:147) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
        at org.radarbase.authorizer.resources.RestSourceUserResource.deleteUser(RestSourceUserResource.kt:153) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
        at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:134) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:177) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:81) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81) ~[jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:261) [jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) [jersey-common-3.1.1.jar:?]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) [jersey-common-3.1.1.jar:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:292) [jersey-common-3.1.1.jar:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:274) [jersey-common-3.1.1.jar:?]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:244) [jersey-common-3.1.1.jar:?]
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) [jersey-common-3.1.1.jar:?]
        at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:240) [jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:697) [jersey-server-3.1.1.jar:?]
        at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:367) [jersey-container-grizzly2-http-3.1.1.jar:?]
        at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:190) [grizzly-http-server-4.0.0.jar:4.0.0]
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535) [grizzly-framework-4.0.0.jar:4.0.0]
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515) [grizzly-framework-4.0.0.jar:4.0.0]
        at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Failed to connect to any host resolved for DNS name.
        at redis.clients.jedis.DefaultJedisSocketFactory.connectToFirstSuccessfulHost(DefaultJedisSocketFactory.java:63) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.DefaultJedisSocketFactory.createSocket(DefaultJedisSocketFactory.java:87) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.Connection.connect(Connection.java:180) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.Connection.initializeFromClientConfig(Connection.java:338) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.Connection.<init>(Connection.java:53) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.Jedis.<init>(Jedis.java:214) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:181) ~[jedis-4.3.2.jar:?]
        at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) ~[commons-pool2-2.11.1.jar:2.11.1]
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) ~[commons-pool2-2.11.1.jar:2.11.1]
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) ~[commons-pool2-2.11.1.jar:2.11.1]
        at redis.clients.jedis.util.Pool.getResource(Pool.java:34) ~[jedis-4.3.2.jar:?]
        at redis.clients.jedis.JedisPool.getResource(JedisPool.java:373) ~[jedis-4.3.2.jar:?]
        at org.radarbase.authorizer.service.RedisLockService.withJedis(RedisLockService.kt:63) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
        ... 29 more
        Suppressed: java.net.ConnectException: Connection refused
                at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
                at sun.nio.ch.Net.pollConnectNow(Unknown Source) ~[?:?]
                at sun.nio.ch.NioSocketImpl.timedFinishConnect(Unknown Source) ~[?:?]
                at sun.nio.ch.NioSocketImpl.connect(Unknown Source) ~[?:?]
                at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:?]
                at java.net.Socket.connect(Unknown Source) ~[?:?]
                at redis.clients.jedis.DefaultJedisSocketFactory.connectToFirstSuccessfulHost(DefaultJedisSocketFactory.java:73) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.DefaultJedisSocketFactory.createSocket(DefaultJedisSocketFactory.java:87) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.Connection.connect(Connection.java:180) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.Connection.initializeFromClientConfig(Connection.java:338) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.Connection.<init>(Connection.java:53) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.Jedis.<init>(Jedis.java:214) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:181) ~[jedis-4.3.2.jar:?]
                at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:571) ~[commons-pool2-2.11.1.jar:2.11.1]
                at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:298) ~[commons-pool2-2.11.1.jar:2.11.1]
                at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:223) ~[commons-pool2-2.11.1.jar:2.11.1]
                at redis.clients.jedis.util.Pool.getResource(Pool.java:34) ~[jedis-4.3.2.jar:?]
                at redis.clients.jedis.JedisPool.getResource(JedisPool.java:373) ~[jedis-4.3.2.jar:?]
                at org.radarbase.authorizer.service.RedisLockService.withJedis(RedisLockService.kt:63) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
                at org.radarbase.authorizer.service.RedisLockService.runLocked-8Mi8wO0(RedisLockService.kt:38) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
                at org.radarbase.authorizer.service.RestSourceUserService.delete(RestSourceUserService.kt:147) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
                at org.radarbase.authorizer.resources.RestSourceUserResource.deleteUser(RestSourceUserResource.kt:153) ~[authorizer-app-backend-4.3.1-SNAPSHOT.jar:?]
                at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
                at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
                at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
                at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
                at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:134) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:177) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:81) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:478) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:400) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81) ~[jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:261) [jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) [jersey-common-3.1.1.jar:?]
                at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) [jersey-common-3.1.1.jar:?]
                at org.glassfish.jersey.internal.Errors.process(Errors.java:292) [jersey-common-3.1.1.jar:?]
                at org.glassfish.jersey.internal.Errors.process(Errors.java:274) [jersey-common-3.1.1.jar:?]
                at org.glassfish.jersey.internal.Errors.process(Errors.java:244) [jersey-common-3.1.1.jar:?]
                at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) [jersey-common-3.1.1.jar:?]
                at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:240) [jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:697) [jersey-server-3.1.1.jar:?]
                at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:367) [jersey-container-grizzly2-http-3.1.1.jar:?]
                at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:190) [grizzly-http-server-4.0.0.jar:4.0.0]
                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535) [grizzly-framework-4.0.0.jar:4.0.0]
                at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515) [grizzly-framework-4.0.0.jar:4.0.0]
                at java.lang.Thread.run(Unknown Source) [?:?]
[2023-08-23 10:28:23,109] HTTP  - [500] DELETE users/26 -- <application/json;charset=utf-8> 
@Hsankesara Hsankesara added the bug Something isn't working label Aug 23, 2023
@Hsankesara Hsankesara changed the title cannot unlink account from the Authorizer app Cannot unlink account from the Authorizer app Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant