I am having a strange issue with Lucee 5.3.8.206 a...
# lucee
b
I am having a strange issue with Lucee 5.3.8.206 and clustered sessions using the latest Redis extension. Random requests seem to lose all of their session variables. I set all logging to trace level to help troubleshoot it. I noticed a pattern in the scope.log, when all session variables are kept there are only 3 lines for the single request, however when the session variables are lost there are 4 lines for the single request. Success
Copy code
"DEBUG","http-nio-8888-exec-6","02/24/2023","10:28:37","scope-context","create new session scope for TEST/12429c6b-35e9-4d0a-9ae1-5b647e88676f in cache [redissession]"
"DEBUG","http-nio-8888-exec-6","02/24/2023","10:28:37","scope-context","create new session scope for TEST/12429c6b-35e9-4d0a-9ae1-5b647e88676f in cache [redissession]"
"DEBUG","http-nio-8888-exec-6","02/24/2023","10:28:37","scope-context","create new session scope for TEST/12429c6b-35e9-4d0a-9ae1-5b647e88676f in cache [redissession]"
Failure
Copy code
"DEBUG","http-nio-8888-exec-2","02/24/2023","10:29:10","scope-context","create new session scope for TEST/bdadbe7a-ead9-4d2d-97c2-1b43e0c56c2d in cache [redissession]"
"DEBUG","http-nio-8888-exec-2","02/24/2023","10:29:10","scope-context","create new session scope for TEST/bdadbe7a-ead9-4d2d-97c2-1b43e0c56c2d in cache [redissession]"
"DEBUG","http-nio-8888-exec-2","02/24/2023","10:29:10","scope-context","create new session scope for TEST/bdadbe7a-ead9-4d2d-97c2-1b43e0c56c2d in cache [redissession]"
"DEBUG","http-nio-8888-exec-2","02/24/2023","10:29:10","scope-context","create new session scope for TEST/bdadbe7a-ead9-4d2d-97c2-1b43e0c56c2d in cache [redissession]"
I am wondering if anyone has experienced something similar before? I found a lot of old bug tickets and blog posts but the bug tickets have been resolved and the blogs are more than a decade old. I don't know if locking the
session
scope is still a thing or not but I did try it and it did not seem to fix it.
z
5.3.8.206 is pretty old, at a minimum, i'd try updating to 5.3.8.235-SNAPSHOT (it's very stable) or a newer stable release