[AMAGENTS-250] Agent seems to fail on startup if timezone is different to OpenAM when using SSL Created: 03/Nov/16  Updated: 07/Nov/16  Resolved: 07/Nov/16

Status: Closed
Project: OpenAM Agents
Component/s: Web Agents
Affects Version/s: 4.1.0
Fix Version/s: 5.0.0.0, 4.1.0

Type: Bug Priority: Major
Reporter: edwardb Assignee: Mareks Malnacs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OpenAM - Centos6
Agent - Windows 2012, IIS


Issue Links:
Relates

 Description   

If I set up an agent and openam so that we are using native SSL to communicate then if we have the Agent Time Zone set to UTC (Dublin, Edinburgh, Lisbon, London) and OpenAM time set to UTC (Dublin, Edinburgh, Lisbon, London) then we get access to resources as expected.

So we have a working Agent/OpenAM configuration. (Using OpenAM 13.5 and Agent 4.1.0RC3)

Now we do the following steps

1)Change timezone to (UTC-08:00) Pacific Time (US & Canada) on Agent Machine
2)Restart IIS
3)Attempt to access a protected page

Expected Result
Access to page

Actual Result
We get a 503 service unvailable error

Additional Notes
-This issue does not occur for Windows 2008
-When IIS is restarted we get the application pool stopping
-There is no information available from logs
-When I tried with agent disabled then access was obtained to site suggesting it is not an IIS problem
-Also tried changing the time and this did not cause any problems - It seems that it is time zone which causes the issue.



 Comments   
Comment by Alex Levin [ 04/Nov/16 ]

related crash is here:
thread 5:

mod_iis_openam_64!_output_l+3b8 [f:\dd\vctools\crt\crtw32\stdio\output.c @ 1648 + 2] f:\dd\vctools\crt\crtw32\stdio\output.c @ 1648 + 2
mod_iis_openam_64!_vsnprintf_l+91 [f:\dd\vctools\crt\crtw32\stdio\vsprintf.c @ 138 + 39] f:\dd\vctools\crt\crtw32\stdio\vsprintf.c @ 138 + 39
mod_iis_openam_64!_vsnprintf+11 [f:\dd\vctools\crt\crtw32\stdio\vsprintf.c @ 192] f:\dd\vctools\crt\crtw32\stdio\vsprintf.c @ 192
mod_iis_openam_64!am_log_write+8e [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\log.c @ 926 + 26] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\log.c @ 926 + 26
mod_iis_openam_64!net_ssl_init_creds+666 [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client_win.c @ 899] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client_win.c @ 899
mod_iis_openam_64!net_connect_ssl_win+15f [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client_win.c @ 1103 + 13] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client_win.c @ 1103 + 13
mod_iis_openam_64!sync_connect_win+3d7 [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client_win.c @ 1191 + 8] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client_win.c @ 1191 + 8
mod_iis_openam_64!am_net_sync_connect+3d3 [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client.c @ 668] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_client.c @ 668
mod_iis_openam_64!do_net_connect+631 [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_ops.c @ 911 + 8] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_ops.c @ 911 + 8
mod_iis_openam_64!am_agent_login+fc [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_ops.c @ 1049 + 18] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\net_ops.c @ 1049 + 18
mod_iis_openam_64!am_get_agent_config+44d [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\config.c @ 1648] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\config.c @ 1648
mod_iis_openam_64!OpenAMHttpModule::OnBeginRequest+237 [c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\iis\agent.c @ 1042] c:\jenkins_new\workspace\openam web agents - 4.1.0 - windows 64 bit\source\iis\agent.c @ 1042
iiscore!NOTIFICATION_CONTEXT::RequestDoWork+105
iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+198
iiscore!NOTIFICATION_CONTEXT::CallModules+36
iiscore!NOTIFICATION_MAIN::DoWork+1cb
iiscore!W3_MAIN_CONTEXT::OnNewRequest+243
w3dt!WP_CONTEXT::OnCompletion+c3
w3tp!THREAD_POOL_DATA::ThreadPoolThread+82
w3tp!THREAD_POOL_DATA::ThreadPoolThread+33
w3tp!THREAD_MANAGER::ThreadManagerThread+3e
kernel32!BaseThreadInitThunk+d
ntdll!RtlUserThreadStart+1d

Comment by Mareks Malnacs [ 07/Nov/16 ]

Reopening to update Fix version.

Generated at Tue May 11 08:24:26 UTC 2021 using Jira 8.16.0#816000-sha1:a455b91378454416b49bbc88d03e653cb9815ed5.