SHARE
TWEET

oauth-debug-log

a guest Feb 8th, 2017 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Nginx starts processing the request and determines it needs to be proxied to Apache as it is a PHP request.
  2. 18:32:29 [debug] 10603#0: *35 http process request line
  3. 18:32:29 [debug] 10603#0: *35 http request line: "GET /index.php?params=xyz HTTP/1.1"
  4. 18:32:29 [debug] 10603#0: *35 http uri: "/index.php"
  5. 18:32:29 [debug] 10603#0: *35 http args: "params=xyz"
  6. 18:32:29 [debug] 10603#0: *35 using location: @proxy_nofilter "/index.php?params=xyz"
  7.  
  8.  
  9.  
  10. Nginx connects to Apache  (Less than one second: 18:32:29 to 18:32:29)
  11. 18:32:29 [debug] 10603#0: *35 http upstream request: "/index.php?params=xyz"
  12. 18:32:29 [debug] 10603#0: *35 http upstream send request handler
  13. 18:32:29 [debug] 10603#0: *35 http upstream send request
  14. 18:32:29 [debug] 10603#0: *35 http upstream send request body
  15. 18:32:29 [debug] 10603#0: *35 chain writer buf fl:1 s:1531
  16. 18:32:29 [debug] 10603#0: *35 chain writer in: 00007FB5879E7818
  17. 18:32:29 [debug] 10603#0: *35 writev: 1531 of 1531
  18. 18:32:29 [debug] 10603#0: *35 chain writer out: 0000000000000000
  19. 18:32:29 [debug] 10603#0: *35 event timer del: 30: 1486492379442
  20. 18:32:29 [debug] 10603#0: *35 event timer add: 30: 600000:1486492949442
  21.  
  22.  
  23. -Pay attention to how the steps before and after this line are completed in less than a second (18:32:29 to 18:32:29)
  24.  
  25.  
  26. 18:32:29 [debug] 10603#0: *35 post event 00007FB58769D230
  27. 18:32:29 [debug] 10603#0: *35 post event 00007FB5874C2610
  28. 18:32:29 [debug] 10603#0: *35 delete posted event 00007FB58769D230
  29. 18:32:29 [debug] 10603#0: *35 http upstream request: "/index.php?params=xyz"
  30.  
  31.  
  32.  
  33. Apache returns "303 See other" and redirects to OAuth Provider (Less than one second: 18:32:29 to 18:32:29)
  34. 18:32:29 [debug] 10603#0: *35 http proxy status 303 "303 See other"
  35. 18:32:29 [debug] 10603#0: *35 http proxy header: "Date: Tue, 07 Feb 2017 18:32:29 GMT"
  36. 18:32:29 [debug] 10603#0: *35 http proxy header: "Server: Apache"
  37. 18:32:29 [debug] 10603#0: *35 http proxy header: "Location: https://oauth.site.com/authorize?callback=callback.php"
  38.  
  39.  
  40.  
  41. Auth complete on site and callback initiated.  (Two seconds: 18:32:29 to 18:32:32)
  42. Nginx starts processing the callback request and determines it needs to be proxied to Apache as it is a PHP request. (Less than one second: 18:32:31 to 18:32:31)
  43. 18:32:31 [debug] 10603#0: *35 http process request line
  44. 18:32:31 [debug] 10603#0: *35 http request line: "GET https://www.example.com/callback.php HTTP/1.1"
  45. 18:32:31 [debug] 10603#0: *35 using location: @proxy_nofilter "https://www.example.com/callback.php"
  46.  
  47.  
  48.  
  49. Nginx connects to Apache  (Less than one second: 18:32:31 to 18:32:31)
  50. 18:32:31 [debug] 10603#0: *35 http upstream request: "https://www.example.com/callback.php"
  51. 18:32:31 [debug] 10603#0: *35 http upstream send request handler
  52. 18:32:31 [debug] 10603#0: *35 http upstream send request
  53. 18:32:31 [debug] 10603#0: *35 http upstream send request body
  54. 18:32:31 [debug] 10603#0: *35 chain writer buf fl:1 s:1538
  55. 18:32:31 [debug] 10603#0: *35 chain writer in: 00007FB5879E7820
  56. 18:32:31 [debug] 10603#0: *35 writev: 1538 of 1538
  57. 18:32:31 [debug] 10603#0: *35 chain writer out: 0000000000000000
  58. 18:32:31 [debug] 10603#0: *35 event timer del: 30: 1486492381343
  59. 18:32:31 [debug] 10603#0: *35 event timer add: 30: 600000:1486492951343
  60.  
  61.  
  62. -Pay attention to how the steps before and after this line now take 2 minutes (18:32:31 to 18:34:12)
  63. -This was a rare successful attempt and usually, there is a 504 timeout here instead.
  64. -Trying to understand why there is this long delay.
  65.  
  66.  
  67. 18:34:12 [debug] 10603#0: *35 post event 00007FB58769D230
  68. 18:34:12 [debug] 10603#0: *35 post event 00007FB5874C2610
  69. 18:34:12 [debug] 10603#0: *35 delete posted event 00007FB58769D230
  70. 18:34:12 [debug] 10603#0: *35 http upstream request: "https://www.example.com/callback.php"
  71.  
  72.  
  73.  
  74. Apache returns "303 See other" and redirects to index.php (Less than one second: 18:34:12 to 18:34:12)
  75. 18:34:12 [debug] 10603#0: *35 http proxy status 303 "303 See other"
  76. 18:34:12 [debug] 10603#0: *35 http proxy header: "Date: Tue, 07 Feb 2017 18:32:31 GMT"
  77. 18:34:12 [debug] 10603#0: *35 http proxy header: "Server: Apache"
  78. 18:34:12 [debug] 10603#0: *35 http proxy header: "Set-Cookie: somevar=1; expires=Tue, 07-Feb-2017 19:04:12 GMT; Max-Age=1800"
  79. 18:34:12 [debug] 10603#0: *35 http proxy header: "Set-Cookie: somehash; path=/; domain=www.example.com; HttpOnly"
  80. 18:34:12 [debug] 10603#0: *35 http proxy header: "Location: /index.php"
  81.  
  82.  
  83.  
  84. Nginx starts index.php request and determines it needs to be proxied to Apache as it is a PHP request. (Less than one second: 18:34:12 to 18:34:12)
  85. 18:34:12 [debug] 10603#0: *35 http process request line
  86. 18:34:12 [debug] 10603#0: *35 http request line: "GET /index.php HTTP/1.1"
  87. 18:34:12 [debug] 10603#0: *35 http uri: "/index.php"
  88. 18:34:12 [debug] 10603#0: *35 http args: ""
  89. 18:34:12 [debug] 10603#0: *35 using location: @proxy_nofilter "/index.php?"
  90.  
  91.  
  92.  
  93. Nginx connects to Apache  (Less than one second: 18:34:12 to 18:34:12)
  94. 18:34:12 [debug] 10603#0: *35 http upstream request: "/index.php?"
  95. 18:34:12 [debug] 10603#0: *35 http upstream send request handler
  96. 18:34:12 [debug] 10603#0: *35 http upstream send request
  97. 18:34:12 [debug] 10603#0: *35 http upstream send request body
  98. 18:34:12 [debug] 10603#0: *35 chain writer buf fl:1 s:1443
  99. 18:34:12 [debug] 10603#0: *35 chain writer in: 00007FB5879E77A8
  100. 18:34:12 [debug] 10603#0: *35 writev: 1443 of 1443
  101. 18:34:12 [debug] 10603#0: *35 chain writer out: 0000000000000000
  102. 18:34:12 [debug] 10603#0: *35 event timer del: 30: 1486492482242
  103. 18:34:12 [debug] 10603#0: *35 event timer add: 30: 600000:1486493052242
  104.  
  105.  
  106. -No problem here again. Issue only with callback request
  107.  
  108.  
  109. 18:34:12 [debug] 10603#0: *35 post event 00007FB58769D230
  110. 18:34:12 [debug] 10603#0: *35 post event 00007FB5874C2610
  111. 18:34:12 [debug] 10603#0: *35 delete posted event 00007FB58769D230
  112. 18:34:12 [debug] 10603#0: *35 http upstream request: "/index.php?"
  113.  
  114.  
  115.  
  116. Apache returns "200 OK" and index.php is served
  117. 18:34:12 [debug] 10603#0: *35 http proxy status 200 "200 OK"
  118. 18:34:12 [debug] 10603#0: *35 http proxy header: "Date: Tue, 07 Feb 2017 18:34:12 GMT"
  119. 18:34:12 [debug] 10603#0: *35 http proxy header: "Server: Apache"
  120. 18:34:12 [debug] 10603#0: *35 http proxy header: "Content-Length: 51030"
  121. 18:34:12 [debug] 10603#0: *35 http proxy header: "Content-Type: text/html; charset=utf-8"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top