# synchro issue between bot BIG-IP

**URL:** <https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520>\
**Category:** Technical Forums\
**Tags:** design, config\
**Created:** [May 6, 2010, 8:36am UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520 "2010-05-06T08:36:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 8:36am UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/1 "2010-05-06T08:36:51Z")

</div>

Hi ,

when i start a synchro to peer i get this error:

```tcl
Operation Status
Configsync Mode: Push
Transferring UCS to peer...
Installing UCS on peer...
OperationFailed exception:
   Primary error : 16908289
   Secondary error: 0
   Error text : Error installing configuration
Obtaining results of remote configuration installation...
Saving active configuration...
Current configuration backed up to /var/local/ucs/cs_backup.ucs.
Product : BIG-IP
Version : 10.1.0
Hostname: UCS : am1.mydomain.org
          System: am2.mydomain.org
Installing --shared-- configuration on host am2.mydomain.org
Installing configuration...
Post-processing...
BIGpipe parsing error (/config/bigip.conf Line 333):
   012e0054:3: The braced list of attributes is not closed for 'rule'.
Reading configuration from /config/low_profile_base.conf.
Reading configuration from /defaults/config_base.conf.
Reading configuration from /config/bigip_sys.conf.
Reading configuration from /config/bigip_base.conf.
Reading configuration from /usr/share/monitors/base_monitors.conf.
Reading configuration from /config/profile_base.conf.
Reading configuration from /config/daemon.conf.
Reading configuration from /config/bigip.conf.
WARNING: There were one or more errors detected during installation.
         Check the error messages and take the proper actions if needed.
ERROR: UCS installation failed.
Operation aborted.
/tmp/configsync.spec: Error installing package
Config install aborted.
BIGpipe parsing error:
   01110001:3: Error running config install
Checking configuration on local system and peer system...
Peer's IP address: 10.10.10.3
Synchronizing Master Keys...
Saving active configuration...

```

```tcl
Could you help me?

```

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [May 6, 2010, 8:40am UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/2 "2010-05-06T08:40:36Z")

</div>

Hi Mic,

What’s on line 333 of the bigip.conf? It looks like there is a syntax error in an iRule which starts on that line which is breaking the config sync. Can you post that full iRule text?

Aaron

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 10:07am UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/3 "2010-05-06T10:07:10Z")

</div>

Hi Aaron

The line 333 in bigip.conf starts with that:

```tcl
rule iRule_ar {
   when HTTP_REQUEST {
set ParsedURI [HTTP::uri]
set ParamJsessionID [findstr $ParsedURI ";" 32] 
set ParamPageID [URI::query $ParsedURI "pageId"]
set ParamReset [URI::query $ParsedURI "reset"]
set ParamHLQuery [URI::query $ParsedURI "hlquery"]
set ParamAction [URI::query $ParsedURI "action"]
set ParamDARGS [URI::query $ParsedURI "_DARGS"]
set ParmaAction [URI::query $ParsedURI "action"]
set NewURI "" 
set ToCache 0
set Cas 0
set MyURI ""
set MyPath [URI::query $ParsedURI "path"]
set MyRedir ""

```

---

<div class="post-metadata">

**Author:** ![Cspillane\_18296](https://avatars.discourse-cdn.com/v4/letter/c/f08c70/32.png) [@Cspillane\_18296](https://community.f5.com/u/Cspillane_18296)\
**Post date:** [May 6, 2010, 10:50am UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/4 "2010-05-06T10:50:54Z")

</div>

Hello Mic,

if syncing is your biggest concern in this case I’d comment out () that iRule from the config file, then run ‘b verify load’. If there’s no error’s then do ‘b load’ followed by another sync.

Of course, if this iRule is business critical it will remove it from the config (by commenting it out) so this may not be ideal for you. I assume the iRule is vaild? (try running it through the iRule editor).

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 10:59am UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/5 "2010-05-06T10:59:35Z")

</div>

Yes this rule is used.

But when i check syntax of this rule through “F5 irule editor” i get a “success” message..

---

<div class="post-metadata">

**Author:** ![smp\_86112](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@smp\_86112](https://community.f5.com/u/smp_86112)\
**Post date:** [May 6, 2010, 12:56pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/6 "2010-05-06T12:56:41Z")

</div>

I think you need to post the entire iRule instead of just the top. I agree with hoolio that there is a brace missing somewhere, but we won’t be able to tell unless we see the entire thing.

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 1:27pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/7 "2010-05-06T13:27:35Z")

</div>

this is the full irule from the GUI:

```tcl
when HTTP_REQUEST {
set ParsedURI [HTTP::uri]
set ParamJsessionID [findstr $ParsedURI ";" 32] 
set ParamPageID [URI::query $ParsedURI "pageId"]
set ParamReset [URI::query $ParsedURI "reset"]
set ParamHLQuery [URI::query $ParsedURI "hlquery"]
set ParamAction [URI::query $ParsedURI "action"]
set ParamDARGS [URI::query $ParsedURI "_DARGS"]
set ParmaAction [URI::query $ParsedURI "action"]
set NewURI "" 
set ToCache 0
set Cas 0
set MyURI ""
set MyPath [URI::query $ParsedURI "path"]
set MyRedir ""

if { [HTTP::method] equals "GET" } {
set ToCache 1
if { not ([findstr $ParsedURI "jsessionid"] eq "") } {
set LeftNewURI [substr $ParsedURI 0 ";"]
set RightNewURI [findstr $ParsedURI "?"]
set NoJsessionID [concat $LeftNewURI$RightNewURI]
set NewURI $NoJsessionID

if {$LeftNewURI eq "/portal/pi/html/search.jsp"} {
set ToCache 0
set Cas 1
}

if { [matchclass $::PageIDNoCache contains $ParamPageID]} {
if {($ParamPageID eq "contacts") and ($ParmaAction eq "local")}{
set NewURI $ParsedURI
}
set ToCache 0
set Cas 2
}
if { not([findstr $ParsedURI "redirect.jsp"] eq "") } {
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]
set ToCache 0
set Cas 3

}
if { $ToCache eq "1" } {
CACHE::enable
set ToCache "yes"
}
else {
CACHE::disable
set ToCache "no"
}
if {$MyRedir eq ""}{ 
log local0.info "-- Cas= $Cas -- Cache=$ToCache -- MyRedir=$MyRedir -- URI -- $NewURI"
HTTP::uri $NewURI 
}
else {
log local0.info " -- MyRedir=$MyRedir -- Cas= $Cas -- Cache=$ToCache -- URI -- $NewURI"
HTTP::redirect $MyRedir
}
}
}
}
when HTTP_RESPONSE {
  set monType [HTTP::header "Content-Type"]
  if { [HTTP::header "Content-Type"] equals "text/a.wml" } {
    log local0.info " Content - $monType -- NO CACHE"
    CACHE::disable
  }
 else {
  log local0.info " Content -- $monType -- CACHE"
 }
}

```

---

<div class="post-metadata">

**Author:** ![smp\_86112](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@smp\_86112](https://community.f5.com/u/smp_86112)\
**Post date:** [May 6, 2010, 1:36pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/8 "2010-05-06T13:36:00Z")

</div>

When I first looked at this, I thought you were missing a brace to close the HTTP\_REQUEST event. But I think the problem is with this statement:

```tcl
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]

```

The comment character “” sits before the closing brace. However when iRules are processed, something funky happens when both comment characters and braces are contained on the same line. I ran into this recently myself, though it does not correlate directly to your issue:

[http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/afv/topic/aff/5/aft/1172116/Default.aspx](http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/afv/topic/aff/5/aft/1172116/Default.aspx)

Try removing that comment character.

Also, I think I’ve had cases where the iRule editor has accepted code that was not accepted by the admin GUI. I tend to trust editing iRules in the admin GUI more than the editor.

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 1:44pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/9 "2010-05-06T13:44:05Z")

</div>

When i add one more brace i get a red point on iruel editor:

```tcl
else {
                log local0.info " -- MyRedir=$MyRedir -- Cas= $Cas -- Cache=$ToCache -- URI -- $NewURI"
                HTTP::redirect $MyRedir
            }    
        }
    }
}
}
when HTTP_RESPONSE {
  set monType [HTTP::header "Content-Type"]
  if { [HTTP::header "Content-Type"] equals "text/a.wml" } {
    log local0.info " Content - $monType -- NO CACHE"
    CACHE::disable
  }
 else {
  log local0.info " Content -- $monType -- CACHE"
 }
}

```

---

<div class="post-metadata">

**Author:** ![smp\_86112](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@smp\_86112](https://community.f5.com/u/smp_86112)\
**Post date:** [May 6, 2010, 1:46pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/10 "2010-05-06T13:46:41Z")

</div>

Sorry, I just edited my inital post.

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 1:58pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/11 "2010-05-06T13:58:25Z")

</div>

Indeed!

(9) Comments If a hash character () appears at a point where Tcl is expecting the first character of the first word of a command, then the hash character and the characters that follow it, up through the next newline, are treated as a comment and ignored. The comment character only has significance when it appears at the beginning of a command.

So do you think no solution right now?

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 2:00pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/12 "2010-05-06T14:00:33Z")

</div>

if i excpect to remove exceptions in my iruule

I mean if i transform that:

```tcl
set MyRedir [string map -nocase {%3a : %3f ? %3d = %26 & %23 } $MyPath]

```

to:

```tcl
set MyRedir [string map $MyPath]

```

is it correct?

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://community.f5.com/u/Hamish)\
**Post date:** [May 6, 2010, 2:04pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/13 "2010-05-06T14:04:52Z")

</div>

Actually, they SHOULD be ignored… And are as far as the GUI is concerned. And whatever loads the iRule into memory when you edit it via the GUI (Or iControl for that matter). However the parser that reads the config file at boot time (And when performing a ‘b load’, or upgrading a configuration from one version to the next) isn’t the same parser. And doesn’t ignore some special characters after a comment… e.g. } and " are both counted AFTER a comment…

AFAIUI there is an outstanding bug on this one… Has been for a while (I’ve raised it at least twice at two different locations. Once when rebooting a 9.3 box that had a comment quote in an iRule, and once when upgrading from 9.4.8 to 10.1.0). (It’s possible that they’ve fixed mine because they were " chars… But if so, then it’s a bit strange that they didn’t fix it for ALL characters… I suspect that { will also be affected… Maybe other things.

H

---

<div class="post-metadata">

**Author:** ![Mic\_108850](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@Mic\_108850](https://community.f5.com/u/Mic_108850)\
**Post date:** [May 6, 2010, 2:16pm UTC](https://community.f5.com/t/synchro-issue-between-bot-big-ip/4520/14 "2010-05-06T14:16:00Z")

</div>

wao it seems not to be confortable with this issue.

Maybe the best way for me should be to remove all these parameters as i mentioned just before?

Actually i use this rule to force decoding for some characters live “%023”…but normally it’s done by default..
