GitHub user DerekHarter added a comment to the discussion: Upgrade from 
4.19.1.0 to 4.19.1.2 login issues "Unauthorized Session expired"

Just a little more information.  I notice that sometimes (not always) I get a 
java stacktrace associated with the Session destroyed, like the following.  It 
indicates an IllegalStateException, invalid for read:

```
2024-10-30 15:06:27,563 DEBUG [c.c.a.ApiSessionListener] 
(qtp364604394-635:ctx-176e7103) (logid:c0e3d007) Session destroyed by Id : 
node0jlrmpu3vw5zgou5aknnkvv7x2 , session: Session@4e1702ef
{id=node0jlrmpu3vw5zgou5aknnkvv7x2,x=node0jlrmpu3vw5zgou5aknnkvv7x2.node0,req=2,res=true}
 , source: 
Session@4e1702ef{id=node0jlrmpu3vw5zgou5aknnkvv7x2,x=node0jlrmpu3vw5zgou5aknnkvv7x2.node0,
req=2,res=true} , event: 
javax.servlet.http.HttpSessionEvent[source=Session@4e1702ef{id=node0jlrmpu3vw5zgou5aknnkvv7x2,x=node0jlrmpu3vw5zgou5aknnkvv7x2.node0,req=2,res=true}]
2024-10-30 15:06:27,565 ERROR [c.c.a.ApiServlet] 
(qtp364604394-318:ctx-2b8e7a39) (logid:0fcc0327) unknown exception writing api 
response
java.lang.IllegalStateException: Invalid for read: 
id=node0jlrmpu3vw5zgou5aknnkvv7x2 created=1730318786848 accessed=1730318787559 
lastaccessed=1730318787558 maxInactiveMs=3600000 expiry=1730
322387559
        at 
org.eclipse.jetty.server.session.Session.checkValidForRead(Session.java:689)
        at 
org.eclipse.jetty.server.session.Session.getAttribute(Session.java:712)
        at com.cloud.utils.HttpUtils.validateSessionKey(HttpUtils.java:124)
        at 
com.cloud.api.ApiServlet.invalidateHttpSessionIfNeeded(ApiServlet.java:534)
        at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:324)
        at com.cloud.api.ApiServlet$1.run(ApiServlet.java:152)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
        at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:149)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:103)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
        at 
org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)
        at 
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.Server.handle(Server.java:516)
        at 
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
        at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at 
org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555)
        at 
org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410)
        at 
org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
        at java.base/java.lang.Thread.run(Thread.java:829)
```

GitHub link: 
https://github.com/apache/cloudstack/discussions/9876#discussioncomment-11104980

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to