Fusionpbx giving "Too many hops"issue - fusionpbx

I have set up multi tenant domain in FusionPBX trying to make two extentions talk with tls enabled. The registration and TLS part works perfect. But I am getting the following error when trying to call between them.. If I change the context to public I am able to make the calls but not able to access the dialplans like *870 etc. But if i change the context to my domain I am getting this error. Similarly if I provide my ip in Access Control domains my calls get diverted to public context. But if i dont I am not able to receive calls. Also from the logs I can see the max-forwards become 1 when calling between extentions which might be causing this issue. If calling a dialplan it returns to 70 and goes ahead. I tried giving it as a variable to 70 in internal profile but doesnt help. Please help me out as I am in an emergency to finish this. Please do let me know If any other information is required.
2018-06-22 11:59:19.795007 [NOTICE] switch_ivr.c:2201 Transfer sofia/internal/160#ortimo.voipmax.nl to XML[185#ortimo.voipmax.nl]
2018-06-22 11:59:19.795007 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/160#ortimo.voipmax.nl) State EXECUTE going to sleep
2018-06-22 11:59:19.795007 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/160#ortimo.voipmax.nl) Running State Change CS_ROUTING (Cur 1 Tot 10)
2018-06-22 11:59:19.795007 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/160#ortimo.voipmax.nl) State ROUTING
2018-06-22 11:59:19.795007 [DEBUG] mod_sofia.c:145 Call appears to be already acknowledged
2018-06-22 11:59:19.795007 [DEBUG] mod_sofia.c:154 sofia/internal/160#ortimo.voipmax.nl SOFIA ROUTING
2018-06-22 11:59:19.795007 [DEBUG] switch_core_state_machine.c:236 sofia/internal/160#ortimo.voipmax.nl Standard ROUTING
2018-06-22 11:59:19.795007 [INFO] mod_dialplan_xml.c:637 Processing 160 <160>->185 in context ortimo.voipmax.nl
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->user_exists] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_exists] () =~ // break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(user_exists=${user_exists id ${destination_number} ${domain_name}}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(user_exists=true)
2018-06-22 11:59:19.795007 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [user_exists]=[true]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_exists] ${user_exists}(true) =~ /^true$/ break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(extension_uuid=${user_data ${destination_number}#${domain_name} var extension_uuid}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(extension_uuid=10997a7f-fd74-4ae9-a174-733a968d96e2)
2018-06-22 11:59:19.795007 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [extension_uuid]=[10997a7f-fd74-4ae9-a174-733a968d96e2]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(hold_music=${user_data ${destination_number}#${domain_name} var hold_music}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(hold_music=)
2018-06-22 11:59:19.795007 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [hold_music]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_all_enabled=${user_data ${destination_number}#${domain_name} var forward_all_enabled}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_all_enabled=)
2018-06-22 11:59:19.815003 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_all_enabled]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_all_destination=${user_data ${destination_number}#${domain_name} var forward_all_destination}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_all_destination=)
2018-06-22 11:59:19.815003 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_all_destination]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_busy_enabled=${user_data ${destination_number}#${domain_name} var forward_busy_enabled}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_busy_enabled=)
2018-06-22 11:59:19.815003 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_busy_enabled]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_busy_destination=${user_data ${destination_number}#${domain_name} var forward_busy_destination}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_busy_destination=)
2018-06-22 11:59:19.815003 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_busy_destination]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_no_answer_enabled=${user_data ${destination_number}#${domain_name} var forward_no_answer_enabled}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_no_answer_enabled=)
2018-06-22 11:59:19.815003 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_no_answer_enabled]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_no_answer_destination=${user_data ${destination_number}#${domain_name} var forward_no_answer_destination}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_no_answer_destination=)
2018-06-22 11:59:19.815003 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_no_answer_destination]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_user_not_registered_enabled=${user_data ${destination_number}#${domain_name} var forward_user_not_registered_enabled}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_user_not_registered_enabled=)
2018-06-22 11:59:19.834991 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_user_not_registered_enabled]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(forward_user_not_registered_destination=${user_data ${destination_number}#${domain_name} var forward_user_not_registered_destination}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(forward_user_not_registered_destination=)
2018-06-22 11:59:19.834991 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [forward_user_not_registered_destination]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(do_not_disturb=${user_data ${destination_number}#${domain_name} var do_not_disturb}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(do_not_disturb=)
2018-06-22 11:59:19.834991 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [do_not_disturb]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(call_timeout=${user_data ${destination_number}#${domain_name} var call_timeout}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(call_timeout=30)
2018-06-22 11:59:19.834991 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [call_timeout]=[30]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(missed_call_app=${user_data ${destination_number}#${domain_name} var missed_call_app}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(missed_call_app=)
2018-06-22 11:59:19.834991 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [missed_call_app]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(missed_call_data=${user_data ${destination_number}#${domain_name} var missed_call_data}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(missed_call_data=)
2018-06-22 11:59:19.834991 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [missed_call_data]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(toll_allow=${user_data ${destination_number}#${domain_name} var toll_allow}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(toll_allow=)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [toll_allow]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(call_screen_enabled=${user_data ${destination_number}#${domain_name} var call_screen_enabled}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(call_screen_enabled=false)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [call_screen_enabled]=[false]
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->caller-details] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [caller-details] ${caller_destination}(185) =~ /^$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->variables] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [variables] () =~ // break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action export(origination_callee_id_name=${destination_number})
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->call-direction] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [call-direction] ${call_direction}(local) =~ /^(inbound|outbound|local)$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->user_record] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] () =~ // break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(user_record=${user_data ${destination_number}#${domain_name} var user_record}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(user_record=)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [user_record]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(from_user_exists=${user_exists id ${sip_from_user} ${sip_from_host}}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(from_user_exists=true)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [from_user_exists]=[true]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${user_record}() =~ /^all$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${call_direction}(local) =~ /^inbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${user_record}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${call_direction}(local) =~ /^outbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${user_record}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${call_direction}(local) =~ /^local$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${user_record}() =~ /^local$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(from_user_record=${user_data ${sip_from_user}#${sip_from_host} var user_record}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(from_user_record=)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [from_user_record]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${from_user_record}() =~ /^all$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${call_direction}(local) =~ /^inbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${from_user_record}() =~ /^inbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${call_direction}(local) =~ /^outbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${from_user_record}() =~ /^outbound$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [user_record] ${call_direction}(local) =~ /^local$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${from_user_record}() =~ /^local$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [user_record] ${record_session}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->redial] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [redial] destination_number(185) =~ /^(redial|\*870)$/ break=on-true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [redial] () =~ // break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->speed_dial] continue=false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [speed_dial] destination_number(185) =~ /^\*0(.*)$/ break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->default_caller_id] continue=true
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [default_caller_id] ${emergency_caller_id_number}() =~ /^$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(emergency_caller_id_name=${default_emergency_caller_id_name}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(emergency_caller_id_name=)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [emergency_caller_id_name]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(emergency_caller_id_number=${default_emergency_caller_id_number}) INLINE
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(emergency_caller_id_number=)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [emergency_caller_id_number]=[UNDEF]
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (FAIL) [default_caller_id] ${outbound_caller_id_number}(160) =~ /^$/ break=never
Dialplan: sofia/internal/160#ortimo.voipmax.nl parsing [ortimo.voipmax.nl->185] continue=false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Regex (PASS) [185] destination_number(185) =~ /^(185)$/ break=on-false
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(hangup_after_bridge=true)
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(continue_on_fail=true)
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action set(accountcode=ortimo.voipmax.nl)
Dialplan: sofia/internal/160#ortimo.voipmax.nl Action transfer(185 XML ortimo.voipmax.nl)
2018-06-22 11:59:19.854997 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/160#ortimo.voipmax.nl) State Change CS_ROUTING -> CS_EXECUTE
2018-06-22 11:59:19.854997 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/160#ortimo.voipmax.nl) State ROUTING going to sleep
2018-06-22 11:59:19.854997 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/160#ortimo.voipmax.nl) Running State Change CS_EXECUTE (Cur 1 Tot 10)
2018-06-22 11:59:19.854997 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/160#ortimo.voipmax.nl) State EXECUTE
2018-06-22 11:59:19.854997 [DEBUG] mod_sofia.c:209 sofia/internal/160#ortimo.voipmax.nl SOFIA EXECUTE
2018-06-22 11:59:19.854997 [DEBUG] switch_core_state_machine.c:328 sofia/internal/160#ortimo.voipmax.nl Standard EXECUTE
EXECUTE sofia/internal/160#ortimo.voipmax.nl export(origination_callee_id_name=185)
2018-06-22 11:59:19.854997 [DEBUG] switch_channel.c:1296 EXPORT (export_vars) [origination_callee_id_name]=[185]
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(RFC2822_DATE=Fri, 22 Jun 2018 11:59:19 +0200)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [RFC2822_DATE]=[Fri, 22 Jun 2018 11:59:19 +0200]
EXECUTE sofia/internal/160#ortimo.voipmax.nl hash(insert/ortimo.voipmax.nl-last_dial/160/185)
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(hangup_after_bridge=true)
2018-06-22 11:59:19.854997 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [hangup_after_bridge]=[true]
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(continue_on_fail=true)
2018-06-22 11:59:19.874992 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [continue_on_fail]=[true]
EXECUTE sofia/internal/160#ortimo.voipmax.nl set(accountcode=ortimo.voipmax.nl)
2018-06-22 11:59:19.874992 [DEBUG] mod_dptools.c:1588 SET sofia/internal/160#ortimo.voipmax.nl [accountcode]=[ortimo.voipmax.nl]
EXECUTE sofia/internal/160#ortimo.voipmax.nl transfer(185 XML ortimo.voipmax.nl)
2018-06-22 11:59:19.874992 [NOTICE] switch_ivr.c:2094 Hangup sofia/internal/160#ortimo.voipmax.nl [CS_EXECUTE] [EXCHANGE_ROUTING_ERROR]
2018-06-22 11:59:19.874992 [DEBUG] switch_core_session.c:2885 sofia/internal/160#ortimo.voipmax.nl skip receive message [PHONE_EVENT] (channel is hungup already)
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/160#ortimo.voipmax.nl) State EXECUTE going to sleep
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/160#ortimo.voipmax.nl) Running State Change CS_HANGUP (Cur 1 Tot 10)
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:850 (sofia/internal/160#ortimo.voipmax.nl) Callstate Change RINGING -> HANGUP
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/160#ortimo.voipmax.nl) State HANGUP
2018-06-22 11:59:19.874992 [DEBUG] mod_sofia.c:449 Channel sofia/internal/160#ortimo.voipmax.nl hanging up, cause: EXCHANGE_ROUTING_ERROR
2018-06-22 11:59:19.874992 [DEBUG] mod_sofia.c:588 Responding to INVITE with: 483
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:60 sofia/internal/160#ortimo.voipmax.nl Standard HANGUP, cause: EXCHANGE_ROUTING_ERROR
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:852 (sofia/internal/160#ortimo.voipmax.nl) State HANGUP going to sleep
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:619 (sofia/internal/160#ortimo.voipmax.nl) State Change CS_HANGUP -> CS_REPORTING
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/160#ortimo.voipmax.nl) Running State Change CS_REPORTING (Cur 1 Tot 10)
2018-06-22 11:59:19.874992 [DEBUG] switch_core_state_machine.c:938 (sofia/internal/160#ortimo.voipmax.nl) State REPORTING
send 822 bytes to tls/[217.100.229.30]:1328 at 11:59:19.908264:
------------------------------------------------------------------------
SIP/2.0 483 Too Many Hops
Via: SIP/2.0/TLS 10.30.21.135:1523;rport=1328;branch=z9hG4bK1486366143;received=217.100.229.30
Max-Forwards: 1
From: "160" <sip:160#ortimo.voipmax.nl>;tag=226805503
To: <sip:185#ortimo.voipmax.nl>;tag=r1m3rNrQHc5ar
Call-ID: 936082658#10.30.21.135
CSeq: 2 INVITE
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Reason: Q.850;cause=25;text="EXCHANGE_ROUTING_ERROR"
Content-Length: 0
Remote-Party-ID: "185" <sip:185#ortimo.voipmax.nl>;party=calling;privacy=off;screen=no
------------------------------------------------------------------------
recv 284 bytes from tls/[217.100.229.30]:1328 at 11:59:20.017886:
------------------------------------------------------------------------
ACK sip:185#ortimo.voipmax.nl:5060 SIP/2.0
Via: SIP/2.0/TLS 10.30.21.135:1523;rport;branch=z9hG4bK1486366143
From: "160" <sip:160#ortimo.voipmax.nl>;tag=226805503
To: <sip:185#ortimo.voipmax.nl>;tag=r1m3rNrQHc5ar
Call-ID: 936082658#10.30.21.135
CSeq: 2 ACK
Content-Length: 0

I was able to solve this issue by providing the max-forwards to 70 as a condition in the inbound routes. Please follow this solution if anyone stumbles upon an error like mine.
Destinations->Inbound Routes->Extention
Tag : Condition
Type: max-forwards
Data: 70
Leave others default and Save. This should hopefully rectify the problem. Cheers!

Related

fail2ban: apache-auth isn't banning failed login attempts

Trying to implement fail2ban on a Linux Mint 17.1 and cant seem to get it to ban me after multiple login attempts against apache-auth.
I followed this guide to get started.
I think its a problem with the apache-auth regex but cant get it right.
jail.local
[apache]
enabled = true
port = 80,443
filter = apache-auth
logpath = /var/log/apache2/*error.log
maxretry = 3
bantime = 600
##ignoreip = 192.168.3.70
##To block the remote host that is trying to request suspicious URLs, use the below jail.
[apache-overflows]
enabled = true
port = http,https
filter = apache-overflows
logpath = /var/log/apache2/*error.log
maxretry = 3
bantime = 600
ignoreip = 192.168.3.70
##To block the remote host that is trying to search for scripts on the website to execute, use the below jail.
[apache-noscript]
enabled = true
port = http,https
filter = apache-noscript
logpath = /var/log/apache2/*error.log
maxretry = 3
bantime = 600
ignoreip = 192.168.3.70
##To block the remote host that is trying to request malicious bot, use below jail.
[apache-badbots]
enabled = true
port = http,https
filter = apache-badbots
logpath = /var/log/apache2/*error.log
maxretry = 3
bantime = 600
ignoreip = 192.168.3.70
##To stop DOS attack from remote host.
[http-get-dos]
enabled = true
port = http,https
filter = http-get-dos
logpath = /var/log/apache*/access.log
maxretry = 400
findtime = 400
bantime = 200
##ignoreip = 192.168.3.70
action = iptables[name=HTTP, port=http, protocol=tcp]
apache-auth.conf
[INCLUDES]
before = apache-common.conf
[Definition]
failregex = ^%(_apache_error_client)s (AH01797: )?client denied by server configuration: (uri )?\S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01617: )?user .*? authentication failure for "\S*": Password Mismatch(, referer: \S+)?$
^%(_apache_error_client)s (AH01618: )?user .*? not found(: )?\S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01614: )?client used wrong authentication scheme: \S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH\d+: )?Authorization of user \S+ to access \S* failed, reason: .*$
^%(_apache_error_client)s (AH0179[24]: )?(Digest: )?user .*?: password mismatch: \S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH0179[01]: |Digest: )user `.*?' in realm `.+' (not found|denied by provider): \S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01631: )?user .*?: authorization failure for "\S*":(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01775: )?(Digest: )?invalid nonce .* received - length is not \S+(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01788: )?(Digest: )?realm mismatch - got `.*?' but expected `.+'(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01789: )?(Digest: )?unknown algorithm `.*?' received: \S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01793: )?invalid qop `.*?' received: \S*(, referer: \S+)?\s*$
^%(_apache_error_client)s (AH01777: )?(Digest: )?invalid nonce .*? received - user attempted time travel(, referer: \S+)?\s*$
apache-common.conf
_apache_error_client = \[[^]]*\] \[(error|\S+:\S+)\]( \[pid \d+:\S+\d+\])? \[client <HOST>(:\d{1,5})?\]
/var/log/apache2/error.log
[Thu Aug 02 23:03:42.143209 2018] [auth_basic:error] [pid 8025] [client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
[Thu Aug 02 23:03:43.216097 2018] [auth_basic:error] [pid 8025] [client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
[Thu Aug 02 23:03:44.124570 2018] [auth_basic:error] [pid 8025][client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
[Thu Aug 02 23:03:45.104747 2018] [auth_basic:error] [pid 8025][client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
[Thu Aug 02 23:03:46.001161 2018] [auth_basic:error] [pid 8025][client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
[Thu Aug 02 23:03:46.871802 2018] [auth_basic:error] [pid 8025][client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
[Thu Aug 02 23:03:47.843740 2018] [auth_basic:error] [pid 8025][client 192.168.3.60:54788] AH01618: user aaa not found: /SEC/test.php
As I said I think the problem is in the regex, since the http-get-dos jail worked fine. The regex for apache-common.conf doesn't look right since my log files seem to follow a different standard, BUT I'm not sure if that's true or how to properly format the regex.
ANy help is appreciated.
Found my problem
I had to change the line in apache-common.conf to the following;
_apache_error_client = \[[^]]*\] \[(error|\S+:\S+)\]( \[pid \d+\])? \[client <HOST>(:\d{1,5})?\]
The difference being in the PID section. I used Regex101 to work the expression until it matched.

playsms - kannel -smsc Able to receive but not to send sms

I use playsms and kannel, I can receive sms but i cannot send sms.
When I try to send a sms I got:
1. 0: Accepted for delivery in the browser
tail -f /var/log/kannel/smsbox.log
sudo tail -f /var/log/kannel/smsbox.log
2015-07-20 15:20:12 [2711] [3] INFO: smsbox: Got HTTP request from <127...*>
2015-07-20 15:20:12 [2711] [3] INFO: sendsms used by
2015-07-20 15:20:12 [2711] [3] INFO: sendsms sender:***> (127...) to:<2*******> msg:
2015-07-20 15:20:12 [2711] [3] DEBUG: Stored UUID f5a87ab8-bd95-413b-a9a6-eb37e9b454da
2015-07-20 15:20:12 [2711] [3] DEBUG: message length 14, sending 1 messages
2015-07-20 15:20:12 [2711] [3] DEBUG: Status: 202 Answer:
2015-07-20 15:20:12 [2711] [3] DEBUG: Delayed reply - wait for bearerbox
2015-07-20 15:20:12 [2711] [0] DEBUG: Got ACK (0) of f5a87ab8-bd95-413b-a9a6-eb37e9b454da
2015-07-20 15:20:12 [2711] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7f827c000a90.
2015-07-20 15:20:12 [2711] [0] DEBUG: HTTP: Destroying HTTPClient for 127...*)'.
2015-07-20 15:31:13 [2711] [2] DEBUG: HTTP: Creating HTTPClient for127...*)'.
2015-07-20 15:31:13 [2711] [2] DEBUG: HTTP: Created HTTPClient area 0x7f827c000a90.
In playsms the sms is pending and not sent
Have you any idea what is my problem?

Maximo Anywhere Not Able To login

I have Maximo Anywhere installed on WebSphere 8.5.5.3 and Maximo installed in Weblogic
i am not able to login to anywhere apps
i tried to debug it from chrome console i found its stuck on loop as the below
> worklight.js:4675 Request [login]
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] true - authStatus
Logger.js:163 [TRACE] [ServerAuthenticationProvider] User test successfully authentication against realm "CustomAuthenticationRealm"
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"isSuccessful":true,"userId":"test","attributes":{"Cookie":"JSESSIONID=0000NpUyrxPJPTCpeahWtAKZ-xr:-1; Path=\/","AuthenticationDate":"Wed Jul 08 03:07:48 GST 2015"},"isUserAuthenticated":1,"responseID":"149252","displayName":null}*/
Logger.js:163 [TRACE] User test authenticated successfully on server
Logger.js:163 [TRACE] [COMM] Previous "userInfo" resource data request resolved.
Logger.js:163 [TRACE] [COMM] Getting data from adapter if connectivity is available.
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 1ms
Logger.js:163 [TRACE] [COMM] Connectivity is available
Logger.js:163 [TRACE] [COMM] Requesting data for adapter
Logger.js:151 [COMM] resourceUrl: http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser?savedQuery=currentUser&…Bspi%3Agroupname%7D&oslc.pageSize=300&oslc.orderBy=%2Bdcterms%3Aidentifier
Logger.js:163 [TRACE] Invoking adapter with these parameters: {"adapter":"OSLCGenericAdapter","procedure":"query","parameters":[{"url":"http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser?savedQuery=currentUser&…Bspi%3Agroupname%7D&oslc.pageSize=300&oslc.orderBy=%2Bdcterms%3Aidentifier","sessionid":"JSESSIONID=0000NpUyrxPJPTCpeahWtAKZ-xr:-1; Path=/","langcode":"en-US"}],"timeout":360000}
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"isSuccessful":false,"errors":[{"oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http:\/\/192.168.1.31:7001\/maximo\/oslc\/error\/messages\/BMXAA0021E04"}},"oslc:message":"BMXAA0021E04 - User name and password combination are not valid. Try again.","oslc:statusCode":"401","spi:reasonCode":"BMXAA0021E04"}],"responseID":"149253"}*/
worklight.js:4675 Procedure invocation error. [object Object]WL.Logger.__log # worklight.js:4675PUBLIC_API.(anonymous function) # worklight.js:4860onInvokeProcedureSuccess # worklight.js:7353window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.onSuccess # worklight.js:3240window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.onWlSuccess # worklight.js:3212(anonymous function) # worklight.js:949window.WLJSX.Ajax.Request.WLJSX.Class.create.respondToReadyState # worklight.js:1158window.WLJSX.Ajax.Request.WLJSX.Class.create.onStateChange # worklight.js:1096(anonymous function) # worklight.js:949
Logger.js:163 [TRACE] UserAuthenticationManager.invokeAdapterSecurely: onFailure{"status":200,"invocationContext":null,"errorCode":"PROCEDURE_ERROR","errorMsg":"Procedure invocation error. [object Object]","invocationResult":{"isSuccessful":false,"errors":[{"oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http://192.168.1.31:7001/maximo/oslc/error/messages/BMXAA0021E04"}},"oslc:message":"BMXAA0021E04 - User name and password combination are not valid. Try again.","oslc:statusCode":"401","spi:reasonCode":"BMXAA0021E04"}],"responseID":"149253"}}
Logger.js:163 [TRACE] Session for user test expired
Logger.js:163 [TRACE] Reauthenticating
Logger.js:163 [TRACE] Authenticating user test against realm CustomAuthenticationRealm
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 0ms
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
worklight.js:4675 Request [login]
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] true - authStatus
Logger.js:163 [TRACE] [ServerAuthenticationProvider] User test successfully authentication against realm "CustomAuthenticationRealm"
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"isSuccessful":true,"userId":"test","attributes":{"Cookie":"JSESSIONID=0000NpUyrxPJPTCpeahWtAKZ-xr:-1; Path=\/","AuthenticationDate":"Wed Jul 08 03:07:48 GST 2015"},"isUserAuthenticated":1,"responseID":"149254","displayName":null}*/
Logger.js:163 [TRACE] User test authenticated successfully on server
Logger.js:163 [TRACE] [COMM] Previous "userInfo" resource data request resolved.
Logger.js:163 [TRACE] [COMM] Getting data from adapter if connectivity is available.
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 0ms
Logger.js:163 [TRACE] [COMM] Connectivity is available
Logger.js:163 [TRACE] [COMM] Requesting data for adapter
Logger.js:151 [COMM] resourceUrl: http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser?savedQuery=currentUser&…Bspi%3Agroupname%7D&oslc.pageSize=300&oslc.orderBy=%2Bdcterms%3Aidentifier
Logger.js:163 [TRACE] Invoking adapter with these parameters: {"adapter":"OSLCGenericAdapter","procedure":"query","parameters":[{"url":"http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser?savedQuery=currentUser&…Bspi%3Agroupname%7D&oslc.pageSize=300&oslc.orderBy=%2Bdcterms%3Aidentifier","sessionid":"JSESSIONID=0000NpUyrxPJPTCpeahWtAKZ-xr:-1; Path=/","langcode":"en-US"}],"timeout":360000}
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"isSuccessful":false,"errors":[{"oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http:\/\/192.168.1.31:7001\/maximo\/oslc\/error\/messages\/BMXAA0021E04"}},"oslc:message":"BMXAA0021E04 - User name and password combination are not valid. Try again.","oslc:statusCode":"401","spi:reasonCode":"BMXAA0021E04"}],"responseID":"149255"}*/
worklight.js:4675 Procedure invocation error. [object Object]WL.Logger.__log # worklight.js:4675PUBLIC_API.(anonymous function) # worklight.js:4860onInvokeProcedureSuccess # worklight.js:7353window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.onSuccess # worklight.js:3240window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.onWlSuccess # worklight.js:3212(anonymous function) # worklight.js:949window.WLJSX.Ajax.Request.WLJSX.Class.create.respondToReadyState # worklight.js:1158window.WLJSX.Ajax.Request.WLJSX.Class.create.onStateChange # worklight.js:1096(anonymous function) # worklight.js:949
Logger.js:163 [TRACE] UserAuthenticationManager.invokeAdapterSecurely: onFailure{"status":200,"invocationContext":null,"errorCode":"PROCEDURE_ERROR","errorMsg":"Procedure invocation error. [object Object]","invocationResult":{"isSuccessful":false,"errors":[{"oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http://192.168.1.31:7001/maximo/oslc/error/messages/BMXAA0021E04"}},"oslc:message":"BMXAA0021E04 - User name and password combination are not valid. Try again.","oslc:statusCode":"401","spi:reasonCode":"BMXAA0021E04"}],"responseID":"149255"}}
Logger.js:163 [TRACE] Session for user test expired
Logger.js:163 [TRACE] Reauthenticating
Logger.js:163 [TRACE] Authenticating user test against realm CustomAuthenticationRealm
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 0ms
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
worklight.js:4675 Request [login]
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] true - authStatus
Logger.js:163 [TRACE] [ServerAuthenticationProvider] User test successfully authentication against realm "CustomAuthenticationRealm"
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"isSuccessful":true,"userId":"test","attributes":{"Cookie":"JSESSIONID=0000NpUyrxPJPTCpeahWtAKZ-xr:-1; Path=\/","AuthenticationDate":"Wed Jul 08 03:07:48 GST 2015"},"isUserAuthenticated":1,"responseID":"149256","displayName":null}*/
Logger.js:163 [TRACE] User test authenticated successfully on server
Logger.js:163 [TRACE] [COMM] Previous "userInfo" resource data request resolved.
Logger.js:163 [TRACE] [COMM] Getting data from adapter if connectivity is available.
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 1ms
Logger.js:163 [TRACE] [COMM] Connectivity is available
Logger.js:163 [TRACE] [COMM] Requesting data for adapter
Logger.js:151 [COMM] resourceUrl: http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser?savedQuery=currentUser&…Bspi%3Agroupname%7D&oslc.pageSize=300&oslc.orderBy=%2Bdcterms%3Aidentifier
Logger.js:163 [TRACE] Invoking adapter with these parameters: {"adapter":"OSLCGenericAdapter","procedure":"query","parameters":[{"url":"http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser?savedQuery=currentUser&…Bspi%3Agroupname%7D&oslc.pageSize=300&oslc.orderBy=%2Bdcterms%3Aidentifier","sessionid":"JSESSIONID=0000NpUyrxPJPTCpeahWtAKZ-xr:-1; Path=/","langcode":"en-US"}],"timeout":360000}
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"isSuccessful":false,"errors":[{"oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http:\/\/192.168.1.31:7001\/maximo\/oslc\/error\/messages\/BMXAA0021E04"}},"oslc:message":"BMXAA0021E04 - User name and password combination are not valid. Try again.","oslc:statusCode":"401","spi:reasonCode":"BMXAA0021E04"}],"responseID":"149257"}*/
worklight.js:4675 Procedure invocation error. [object Object]WL.Logger.__log # worklight.js:4675PUBLIC_API.(anonymous function) # worklight.js:4860onInvokeProcedureSuccess # worklight.js:7353window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.onSuccess # worklight.js:3240window.WLJSX.Ajax.WLRequest.WLJSX.Class.create.onWlSuccess # worklight.js:3212(anonymous function) # worklight.js:949window.WLJSX.Ajax.Request.WLJSX.Class.create.respondToReadyState # worklight.js:1158window.WLJSX.Ajax.Request.WLJSX.Class.create.onStateChange # worklight.js:1096(anonymous function) # worklight.js:949
Logger.js:163 [TRACE] UserAuthenticationManager.invokeAdapterSecurely: onFailure{"status":200,"invocationContext":null,"errorCode":"PROCEDURE_ERROR","errorMsg":"Procedure invocation error. [object Object]","invocationResult":{"isSuccessful":false,"errors":[{"oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http://192.168.1.31:7001/maximo/oslc/error/messages/BMXAA0021E04"}},"oslc:message":"BMXAA0021E04 - User name and password combination are not valid. Try again.","oslc:statusCode":"401","spi:reasonCode":"BMXAA0021E04"}],"responseID":"149257"}}
Logger.js:163 [TRACE] Session for user test expired
Logger.js:163 [TRACE] Reauthenticating
Logger.js:163 [TRACE] Authenticating user test against realm CustomAuthenticationRealm
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 0ms
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
*i tried to call the OSLC Link direct from Maximo its working fine.
*i tried to run the application from eclipse and using Librity server it working fine .
I Restarted the Server where Work-light installed the exception changed to
Authentication (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:303:23)
at Object.lang.mixin.login (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:133:10)
at declare.loginClickHandler (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:72:47)
at null.<anonymous> (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/ui/control/UserInterface.js:757:47)
at HTMLButtonElement.e.hitch (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:34:484)
at Function.g.emit (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:106:485)
at declare.fire (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojox/gesture/Base.js:306:7)"l # dojo.js:59h # dojo.js:59k.around.advice # dojo.js:95e.(anonymous function).k # dojo.js:94m # dojo.js:89q.reject # dojo.js:92a # dojo.js:90g # dojo.js:89o.then.b.then # dojo.js:92classBody._activateCollections # PersistenceManager.js:303classBody.activateCollectionsOrFail # PersistenceManager.js:284lang.mixin._localAuthentication # UserAuthenticationManager.js:303lang.mixin.login # UserAuthenticationManager.js:133declare.loginClickHandler # LoginHandler.js:72(anonymous function) # UserInterface.js:757e.hitch # dojo.js:34g.emit # dojo.js:106declare.fire # Base.js:306declare.release # tap.js:104declare._process # Base.js:273e._hitchArgs # dojo.js:34
Startup.js:42 === Global promise rejection handling ===
Startup.js:43 === handled: true
Startup.js:44 Hiding the "Loading..." message in 8 seconds
Startup.js:42 === Global promise rejection handling ===
Startup.js:43 === handled: false
Startup.js:44 Hiding the "Loading..." message in 8 seconds
dojo.js:59 Object {name: undefined, messageKey: undefined, params: Array[0], stack: "undefined? at http://localhost:9084/worklight/a…fault/js/platform/handlers/LoginHandler.js:72:47)"} "undefined
at http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:308:23
at g (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:320)
at o.then.b.then [as then] (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:92:198)
at classBody._activateCollections (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:303:4)
at classBody.activateCollectionsOrFail (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:284:16)
at Object.lang.mixin._localAuthentication (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:303:23)
at Object.lang.mixin.login (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:133:10)
at declare.loginClickHandler (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:72:47)
----------------------------------------
rejected at a (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:90:226)
at g (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:493)
at o.then.b.then [as then] (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:92:198)
at Object.lang.mixin._localAuthentication (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:304:4)
at Object.lang.mixin.login (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:133:10)
at declare.loginClickHandler (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:72:47)
at null.<anonymous> (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/ui/control/UserInterface.js:757:47)
at HTMLButtonElement.e.hitch (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:34:484)
at Function.g.emit (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:106:485)
at declare.fire (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojox/gesture/Base.js:306:7)
----------------------------------------
Error
at o.then.b.then [as then] (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:92:143)
at Object.lang.mixin._localAuthentication (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:304:4)
at Object.lang.mixin.login (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:133:10)
at declare.loginClickHandler (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:72:47)
at null.<anonymous> (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/ui/control/UserInterface.js:757:47)
at HTMLButtonElement.e.hitch (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:34:484)
at Function.g.emit (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:106:485)
at declare.fire (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojox/gesture/Base.js:306:7)
at declare.release (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojox/gesture/tap.js:104:10)
at declare._process (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojox/gesture/Base.js:273:15)"l # dojo.js:59h # dojo.js:59k.around.advice # dojo.js:95e.(anonymous function).k # dojo.js:94m # dojo.js:89q.reject # dojo.js:92a # dojo.js:90g # dojo.js:89o.then.b.then # dojo.js:92lang.mixin._localAuthentication # UserAuthenticationManager.js:304lang.mixin.login # UserAuthenticationManager.js:133declare.loginClickHandler # LoginHandler.js:72(anonymous function) # UserInterface.js:757e.hitch # dojo.js:34g.emit # dojo.js:106declare.fire # Base.js:306declare.release # tap.js:104declare._process # Base.js:273e._hitchArgs # dojo.js:34
Startup.js:42 === Global promise rejection handling ===
Startup.js:43 === handled: false
Startup.js:44 Hiding the "Loading..." message in 8 seconds
dojo.js:59 Object {name: undefined, messageKey: undefined, params: Array[0], stack: "undefined? at http://localhost:9084/worklight/a…fault/js/platform/handlers/LoginHandler.js:72:47)"} "undefined
at http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:308:23
at g (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:320)
at o.then.b.then [as then] (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:92:198)
at classBody._activateCollections (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:303:4)
at classBody.activateCollectionsOrFail (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:284:16)
at Object.lang.mixin._localAuthentication (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:303:23)
at Object.lang.mixin.login (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:133:10)
at declare.loginClickHandler (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:72:47)
----------------------------------------
rejected at a (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:90:226)
at g (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:479)
at o.then.b.then [as then] (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:92:198)
at classBody._activateCollections (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:303:4)
at classBody.activateCollectionsOrFail (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/store/PersistenceManager.js:284:16)
at Object.lang.mixin._localAuthentication (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:303:23)
at Object.lang.mixin.login (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:133:10)
at declare.loginClickHandler (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/handlers/LoginHandler.js:72:47)
at null.<anonymous> (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/ui/control/UserInterface.js:757:47)
at HTMLButtonElement.e.hitch (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:34:484)
----------------------------------------
undefined"l # dojo.js:59h # dojo.js:59k.around.advice # dojo.js:95e.(anonymous function).k # dojo.js:94g # dojo.js:90o.then.b.then # dojo.js:92lang.mixin._localAuthentication # UserAuthenticationManager.js:304lang.mixin.login # UserAuthenticationManager.js:133declare.loginClickHandler # LoginHandler.js:72(anonymous function) # UserInterface.js:757e.hitch # dojo.js:34g.emit # dojo.js:106declare.fire # Base.js:306declare.release # tap.js:104declare._process # Base.js:273e._hitchArgs # dojo.js:34
Logger.js:163 [TRACE] Authenticating user test1 against realm CustomAuthenticationRealm
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 0ms
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
Logger.js:231 [TIMER] [COMM] Fetching simulator for connectivity: 1ms
worklight.js:4675 Request [/worklight/apps/services/api/WorkExecution/common/query]
Startup.js:42 === Global promise rejection handling ===
Startup.js:43 === handled: true
Startup.js:44 Hiding the "Loading..." message in 8 seconds
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] false
worklight.js:4675 response [/worklight/apps/services/api/WorkExecution/common/query] success: /*-secure-
{"properties":{"si.auth.type":"maximo"},"isSuccessful":true,"responseID":"7"}*/
Logger.js:163 [TRACE] [COMM] Successfully returned properties: {"si.auth.type":"maximo"}
worklight.js:4675 Request [login]
Logger.js:163 [TRACE] ServerAuthenticationProvider.login
Logger.js:163 [TRACE] [CustomChallangeHandler.isCustomResponse] true - authStatus
Logger.js:151 [_realmAuthentication] Unable to authenticate user test1 on server
Logger.js:151 Loading message showed by application = true
Logger.js:151 Cancel processing requested
Logger.js:163 [TRACE] Closing local storage
Startup.js:42 === Global promise rejection handling ===
Startup.js:43 === handled: true
Startup.js:44 Hiding the "Loading..." message in 8 seconds
Startup.js:42 === Global promise rejection handling ===
Startup.js:43 === handled: false
Startup.js:44 Hiding the "Loading..." message in 8 seconds
dojo.js:59 Object {oslcError: "null oslcError", errorMsg: "Your user name and password could not be validated. Connect to the server and try again."} "
----------------------------------------
rejected at Object.<anonymous> (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/js/platform/auth/UserAuthenticationManager.js:523:17)
at e.hitch (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:34:484)
at g (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:320)
at m (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:246)
at q.reject (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:92:33)
at a (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:90:226)
at g (http://localhost:9084/worklight/apps/services/preview/WorkExecution/common/0/default/dojo/dojo.js:89:493)
at m
So you said you restarted the server worklight is installed on. The first thing i would ask then is the war file that you deployed to that server, when it was built, was it pointing to a different Maximo than what your adapter currently has?
If it worked in the liberty server, I would say to update the war file that your worklight server is using, there may be a difference in what it is pointing.
This would involve updating your build.properties'
worklight.server.* properties, then rebuild the app, and then redeploy the war file that you will have in your MaximoAnywhere/bin directory
You have a authentication/login error based on "errorMsg: "Your user name and password could not be validated. Connect to the server and try again." and "oslc:statusCode":"401" . I don't know much about Anywhere. Can you explain how the authentication to the backend (OSLC oto Maximo) is hapenning ? What is the security test declared in for "OSLCGenericAdapter" procedure:"query",? It seems you are doing a request to "http://192.168.1.31:7001/maximo/oslc/os/oslcmaxuser" maybe this server is not available ? Are you using some invalid username/pass ?

Using custom functions in Volt force apache process to die

I worked with Phalcon and Volt under WAMP. Recently we moved to another dev environment (CentOS) and there I have PHP 5.5.17 with latest Phalcon build (I compiled and tested 2 versions lower as well).
Now, when Volt tries to compile template with custom function, it crashes (PHP process). The same is
about custom filters.
Error log of Apache
[Tue Sep 30 06:06:24.809476 2014] [proxy_fcgi:error] [pid 31199:tid 140596014397184] (104)Connection reset by peer: [client 10.0.2.2:53931] AH01075: Error dispatching request to :3080:
[Tue Sep 30 06:06:27.216226 2014] [proxy_fcgi:error] [pid 31200:tid 140596161255168] [client 10.0.2.2:53941] AH01067: Failed to read FastCGI header
[Tue Sep 30 06:06:27.216249 2014] [proxy_fcgi:error] [pid 31200:tid 140596161255168] (104)Connection reset by peer: [client 10.0.2.2:53941] AH01075: Error dispatching request to :3080:
PHP error log
[30-Sep-2014 06:06:27] WARNING: [pool www] child 32519 exited on signal 11 (SIGSEGV - core dumped) after 204.725812 seconds from start
[30-Sep-2014 06:06:27] NOTICE: [pool www] child 32529 started
PHP code looks like
$di->set('view', function () use ($config) {
$view = new View();
$view->setViewsDir($config->application->viewsDir);
$view->registerEngines(array(
'.volt' => function ($view, $di) use ($config) {
$volt = new VoltEngine($view, $di);
$volt->setOptions(array(
'compiledPath' => $config->application->cacheDir,
'compiledSeparator' => '_',
'compileAlways' => $config->application->debug
));
$compiler = $volt->getCompiler();
$compiler->addFunction(
'last',
function ($resolvedArgs) use ($compiler) {
return 'array_pop('. $resolvedArgs .')';
}
);
return $volt;
}
));
return $view;
}, true);
And in Volt for example
{{ last(['1', '2', '3']) }}
And I really stuck on this problem, because I have pretty a lot of custom functions and I do need them. Tried to debug it, but, as soon as volt tried to parse line with custom function, process die.
Phalcon bug submitted. Solution: totally disable xdebug for current build. More here: https://github.com/xdebug/xdebug/pull/120

Reset password email is not sent by Devise

Rails 3.2.13, Ruby 1.9.3
My Devise controller is working fine sending emails, with one exception: sending the reset password instructions email.
When I click on the "Forgot your password?" link, I get the message:
You will receive an email with your password reset instructions in a few minutes.
But, I do not receive the email. Following is the relevant dump from the log file:
Started GET "/password/new.user" for 174.xx.xxx.xx at 2013-04-29 01:28:48 +0000
Processing by Devise::PasswordsController#new as
BlogPost Load (0.5ms) SELECT `blog_posts`.* FROM `blog_posts`
Rendered devise/_links.erb (1.0ms)
Rendered devise/passwords/new.html.erb within layouts/application (23.1ms)
Rendered layouts/_shim.html.erb (0.0ms)
Rendered layouts/_header.html.erb (2.5ms)
Rendered layouts/_promo_bar.html.erb (0.9ms)
Rendered layouts/_footer.html.erb (2.6ms)
Completed 200 OK in 54ms (Views: 51.2ms | ActiveRecord: 0.5ms)
Started POST "/password" for 174.xx.xxx.xx at 2013-04-29 01:30:19 +0000
Processing by Devise::PasswordsController#create as HTML
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"emailaddress#outlook.com"}, "commit"=>"Send me reset password instructions"}
BlogPost Load (137.8ms) SELECT `blog_posts`.* FROM `blog_posts`
User Load (82.4ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'emailaddress#outlook.com' LIMIT 1
User Load (14.8ms) SELECT `users`.* FROM `users` WHERE `users`.`reset_password_token` = 'NysDaribCpgNySc5Nmog' LIMIT 1
(0.2ms) BEGIN
(99.0ms) UPDATE `users` SET `reset_password_token` = 'NysDaribCpgNySc5Nmog', `reset_password_sent_at` = '2013-04-29 01:30:19', `updated_at` = '2013-04-29 01:30:19' WHERE `users`.`id` = 113
(60.6ms) COMMIT
Rendered devise/mailer/reset_password_instructions.html.erb (1.3ms)
Rendered devise/mailer/reset_password_instructions.text.erb (1.5ms)
Sent mail to emailaddress#outlook.com (133ms)
Date: Mon, 29 Apr 2013 01:30:21 +0000
To: emailaddress#outlook.com
Message-ID: <517dcd2db584b_71bc6778701193#testsite-test.mail>
Subject: testsite Account Reset password instructions
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_517dcd2d93927_71bc677870116dc";
charset=UTF-8
Content-Transfer-Encoding: 7bit
----==_mimepart_517dcd2d93927_71bc677870116dc
Date: Mon, 29 Apr 2013 01:30:21 +0000
Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: <517dcd2d9bfb9_71bc677870117a2#testsite-test.mail>
Hello emailaddress#outlook.com!
A Request to change the password for this account has been received. If this is you, and you still want to change the password, you can do so by clicking on the link below.
Change my password
If you didn't request this, please ignore this email.
----==_mimepart_517dcd2d93927_71bc677870116dc
Date: Mon, 29 Apr 2013 01:30:21 +0000
Mime-Version: 1.0
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: <517dcd2db365a_71bc677870118da#testsite-test.mail>
<p>Hello emailaddress#outlook.com!</p>
<p>A Request to change the password for this account has been received. If this is you, and you still want to change the password, you can do so by clicking on the link below.</p>
<p>Change my password</p>
<p>If you didn't request this, please ignore this email.</p>
----==_mimepart_517dcd2d93927_71bc677870116dc--
Redirected to http://test.testsitethefuture.com/login
Completed 302 Found in 2520ms (ActiveRecord: 0.0ms)
Started GET "/login" for 174.xx.xxx.xx at 2013-04-29 01:30:22 +0000
Processing by Devise::SessionsController#new as HTML
BlogPost Load (3.0ms) SELECT `blog_posts`.* FROM `blog_posts`
Rendered devise/_links.erb (0.8ms)
Rendered devise/sessions/new.html.erb within layouts/application (7.0ms)
Rendered layouts/_shim.html.erb (0.0ms)
Rendered layouts/_header.html.erb (2.2ms)
Rendered layouts/_promo_bar.html.erb (1.2ms)
Rendered layouts/_footer.html.erb (2.6ms)
Completed 200 OK in 49ms (Views: 35.9ms | ActiveRecord: 3.0ms)
Any ideas of what I should be looking for?
environments/test.rb
Myapp::Application.configure do
config.cache_classes = false
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_dispatch.show_exceptions = false
config.action_controller.allow_forgery_protection = false
config.active_record.mass_assignment_sanitizer = :strict
config.active_support.deprecation = :stderr
config.action_mailer.default_url_options = {:host => 'myapp.com'}
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = false
config.action_mailer.default :charset => "utf-8"
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: 587,
domain: "myapp.com",
authentication: "plain",
enable_starttls_auto: true,
user_name: 'Admin#myapp.com',
password: 'xxxxxxxxxxx'
}
end
Check the SMTP Mailer settings in your config file, from log it is showing that mail is sending correctly but it is not delivered, because of SMTP settings problem.
Correct the smtp settings and check the mailer from console
Ex:-
Notification.forgot_password("sample#test.com").deliver
Having the line ActionMailer::Base.delivery_method = :smtp in config/environment.rb overrides ActionMailer::Base.delivery_method = :test in config/environments/test.rb.
So, add that line, ActionMailer::Base.delivery_method = :smtp' from config/environment.rb and place it in config/environments/test.rb. That allows you to place
ActionMailer::Base.delivery_method = :test in config/environments/test.rb.
Note: You must restart your server for these changes to take effect.
In config/environment.rb:
# Configuration for using SendGrid on Heroku
ActionMailer::Base.smtp_settings = {
:address => 'smtp.sendgrid.net',
:port => '587',
:authentication => :plain,
:user_name => 'app[my app number]#heroku.com',
:password => '[something super secret]',
:domain => '[let's get this party started!.com]',
:enable_starttls_auto => true
}
ActionMailer::Base.delivery_method = :smtp
Worked for me.