Forum Discussion

Rene_C_'s avatar
Rene_C_
Icon for Nimbostratus rankNimbostratus
Jun 25, 2014

"Failed to forward request to apmd" in iRule?

Hi,

 

some times i see the following message in the LTM-Log: Jun 25 11:04:44 atvxxxxxxx-p err tmm2[9150]: 01220001:3: TCL error: /P/P_AUTHENTICATE - Failed to forward request to apmd. Is APM provisioned? (line 1) invoked from within "ACCESS::policy evaluate -sid $flow_sid -profile $policy session.logon.last.username $user_name session.logon.last.password $password"

 

Can anyone tell me what this actually means? This profile does an ldap query and nothing else. For the majority of the Requests it works, and when issuing the same request again it works without any problem….

 

Thanks in advance!

 

6 Replies

  • Silly question maybe, but do you have the full APM product - licensed and provisioned? Or are you using the "lite" version?

     

  • As an additional update, we are currently on 11.4.1 HF3. We tried upgrading to HF4, though there when trying to do an ACCESS::policy evaluate, the apmd is restarting immediately.
  • I don't have a definitive answer, but given that ACCESS::policy evaluate is still relatively new, I would open a support case.

     

  • Hi,

     

    Was this issue ever solve? If yes how as I am experiencing the same issue as well. Although I am running 11.6HF4

     

    Thanks

     

  • Nope, it was never solved. We opened a support case but never got any solution; The issue is coming up only on high load, and cause of that it is quite hard to pinpoint the exact cause.

    What we did is to have a catch around the evaluate and execute it again. It then works in 100 percent of the cases.

    if {  [catch {
                ACCESS::policy evaluate -sid $flow_sid -profile $thePolicy session.logon.last.username $currentUser
            } errmsg ] } { 
                if {  [catch {
                    ACCESS::policy evaluate -sid $flow_sid -profile $thePolicy session.logon.last.username $currentUser
                } errmsg ] } { 
                    log local0.err "Policy failed second time for user $currentUser, giving up"
                }
            }
    }
    
    • Rene_C_'s avatar
      Rene_C_
      Icon for Nimbostratus rankNimbostratus
      And i can confirm the same issue still happening on 12.0 btw