Forum Discussion
irule errors after upgrade from 10.2 to 11.3
I just replaced a pair of ltms that were running 10.2. The new ltms are running 11.3. We have an iRule on a virtual server that sets persistence based on the JSESSIONID cookie that is created by back-end servers. On the new ltms, we get error messages in the log.
Feb 18 06:07:11 err tmm[11721]: 01220001:3: TCL error: websphere_jsessionid_persistence_irule - Prerequisite operation not in progress (line 1) (line 1) invoked from within "persist add uie [HTTP::cookie "JSESSIONID"]"
Below is the iRule:
when CLIENT_ACCEPTED { set add_persist 1 }
when HTTP_RESPONSE { if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } { persist add uie [HTTP::cookie "JSESSIONID"] set add_persist 0 } }
when HTTP_REQUEST { if { [HTTP::cookie exists "JSESSIONID"] } { persist uie [HTTP::cookie "JSESSIONID"] } else { set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"] if { $jsess != "" } { persist uie $jsess } } }
I need help determining why the TCL error is triggered. Any help would be greatly appreciated.
Thanks.
4 Replies
- Kevin_Stewart
Employee
Technically speaking, the iRule in this case should be applied to the universal persistence profile that is applied to the VIP, not assigned to the VIP directly.
- Kevin_Stewart
Employee
Okay. One other question then. Do you a pool applied to the VIP?
- Kevin_Stewart
Employee
The wiki page for the persist command actual states this:
When using the session or persist commands, one common error that occurs is "Prerequisite operation not in progress". The most common cause for this error is that there is no pool currently selected for the connection.
The wiki doesn't specifically spell it out, and it's not always a strict requirement, but applying a persistence iRule to a persistence profile (instead of the VIP) might be considered a best practice. That it may have worked flawlessly in v10 and not in v11 is likely an anomaly.
- Kevin_Stewart
Employee
Well, the catch statement would certainly eradicate the error message, but it doesn't really solve the underlying problem. Any chance you can share a bigger picture of your config? You mentioned there was more than one iRule?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com