Forum Discussion
Proxy Pass v10/v11 Error
Oct 26 10:24:12 slot1/tmm err tmm[801]: 01220001:3: TCL error: /Common/ProxyPassv10_v11 - can't read "vsname": no such variable while executing "string range $vsname [expr {[string last "/" $vsname]+1}] end"
Debug error:
Oct 26 10:25:28 slot1/tmm3 info tmm3[809]: Rule /Common/ProxyPassv10_v11 : /Common/www.abc.abc.net: 123.123.123.123:23523 -> 124.124.124.124:80
Oct 26 10:25:28 slot1/tmm3 err tmm3[809]: 01220001:3: TCL error: /Common/ProxyPassv10_v11 - can't read "vsname": no such variable while executing "string range $vsname [expr {[string last "/" $vsname]+1}] end"
Any help would be appreciated very much.
=========
Using the earlier code on LTM running Version 11.2.1
I'm getting data group error despite having the data group in place
==> ltm <==
Oct 26 10:29:50 slot1/tmm info tmm[801]: Rule /Common/ProxyPassiRule : /Common/www.abc.abc.net: 123.123.123.123:23616 -> 124.124.124.124:80
Oct 26 10:29:50 slot1/tmm info tmm[801]: Rule /Common/ProxyPassiRule : VS=/Common/www.uc.edu.au, Host=www.abc.abc.net, URI=/absolutenl/: Data group ProxyPass/Common/www.abc.abc.net not found, exiting.
Thanks
4 Replies
- Mants_57436
Nimbostratus
I think it's because of this command but I'm not sure how to modify this so I can read the data group entry
The name of the Data Group (aka class) we are going to use
set clname "ProxyPass[virtual name]"The earlier code would probably work if I can read the Data group entry.
- Mants_57436
Nimbostratus
Managed to fix the error using:
set clname "/Common/ProxyPass[findstr [virtual name] /Common/ 8 /]"
but it looks like the redirect to other pool isn't working :( except for the default pool
example:
/goldenkey is on another pool
Rule, Client Host=www.abc.abc.net, Client Path=/goldenkey, Server Host=server1.abc1.abc.net, Server Path=/goldenkey
Oct 26 11:42:35 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.uc.edu.au, URI=/goldenkey/: Using default pool /Common/www.abc.abc.net
Oct 26 11:42:35 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.abc.abc.net, URI=/goldenkey/: New Host=erver1.abc1.abc.net, New Path=/goldenkey/
Oct 26 11:42:36 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.abc.abc.net, URI=/goldenkey/: 404 response from /Common/www.abc.abc.net 123.123.123.123 0 (not real IP)
Oct 26 11:42:36 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.abc.abc.net, URI=/goldenkey/: Checking Location=, $protocol=
Oct 26 11:42:36 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.abc.abc.net, URI=/goldenkey/: Checking Content-Location=, $protocol=
Oct 26 11:42:36 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.abc.abc.net, URI=/goldenkey/: Checking URI=, $protocol=
Oct 26 11:42:36 slot1/tmm5 info tmm5[812]: Rule /Common/ProxyPassiRule : VS=/Common/www.abc.abc.net, Host=www.abc.abc.net, URI=/goldenkey/: Inserting cookie: SQ_SYSTEM_SESSION=m76l3js2o9sid1lek3e433nph7; domain=www.abc.abc.netu.; path=/;
Please help. Thanks - hoolio
Cirrostratus
Hi Mants,
I updated the Codeshare example with a more general solution for getting just the virtual server name to derive the data group name:
https://devcentral.f5.com/wiki/iRules.proxypassv10.ashx
set clname "ProxyPass[string range [virtual name] [expr {[string last "/" [virtual name]]+1}] end]"
Can you try that to make sure it works to get the data group name?
Can you also post an anonymized copy of your data group 'tmsh list ltm data-group internal DG_NAME'?
Thanks, Aaron - Mants_57436
Nimbostratus
Thanks Aaron, I will try tomorrow morning and will let you know the result, I will also post the DG_Name with some minor edits (just naming) since it's running at the customer site.
Mants
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