Forum Discussion
Venkat_96088
Feb 02, 2012Nimbostratus
tmm error logs related to iRule
Hi,
The below iRule when configured did not give any syntax error. However, in /var/log/ltm tmm err logs are getting generated continuously. Also there are pakcet drops detected in 1.1 and 1.2 interfaces.
Error:
Feb 2 06:09:50 local/tmm err tmm[8132]: 01220001:3: TCL error: xxx_IRule - Operation not supported. Multiple redirect/respond invocations not allowed (line 2) invoked from within "HTTP::redirect https://[HTTP::host][HTTP::uri]"
iRule:
when HTTP_REQUEST {
if { not ([string tolower [HTTP::host]] contains "jsession")}{
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
- hooleylistCirrostratusHi Venkat,
- Venkat_96088NimbostratusHi Aaron, Thanks for your reply.
- nitassEmployeetwo HTTP::redirect will be triggered when HTTP::host matches condition in demo_redirect rule.
[root@ve1023:Active] config b virtual bar list virtual bar { snat automap pool foo destination 172.28.19.79:80 ip protocol 6 rules { demo_redirect redirect_http2https } profiles { http {} tcp {} } } [root@ve1023:Active] config curl -I http://demo.ssig/ HTTP/1.0 302 Found Location: https://xxxx.com/ Server: BigIP Connection: Keep-Alive Content-Length: 0 [root@ve1023:Active] config cat /var/log/ltm Feb 3 05:55:45 local/tmm err tmm[4369]: 01220001:3: TCL error: redirect_http2https - Operation not supported. Multiple redirect/respond invocations not allowed (line 1) invoked from within "HTTP::redirect https://[HTTP::host][HTTP::uri]"
- hooleylistCirrostratusAs Nitass shows you'll see the TCL error if both iRules try to send a redirect for the same request. As the two iRules are doing similar operations, I'd combine them into one iRule and use switch to evaluate the host header.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects