unicef / etools-issues

0 stars 2 forks source link

500 Error in PROD when adding a new agreement #482

Open mpawlowski85 opened 7 years ago

mpawlowski85 commented 7 years ago

User Issmail Nnaffie is consistently getting the 500 error when trying to add a new Agreement.

Environment: PROD Workspace: Burkina Faso

Partner: ASSOCIATION POUR LE DEVELOPPEMENT COMMUNAUTAIRE ET LA PROMOTION DES DROITS DES ENFANTS
we also tried: ANTBA but the issue seems independent of the partner - we got the error on both.

The Console dump is available below.

mpawlowski85 commented 7 years ago

Network Headers

  1. Request URL: https://etools.unicef.org/api/v2/agreements/
  2. Request Method: POST
  3. Status Code: 500 Internal Server Error
  4. Remote Address: 40.68.231.88:443
  5. Referrer Policy: no-referrer-when-downgrade
  6. Response Headersview source
  7. Content-Length: 15885
  8. Content-Type: text/html; charset=utf-8
  9. Date: Wed, 21 Jun 2017 16:12:53 GMT
  10. Server: gunicorn/19.6.0
  11. Vary: Cookie
  12. X-Frame-Options: SAMEORIGIN
  13. Request Headersview source
  14. accept: application/json
  15. Accept-Encoding: gzip, deflate, br
  16. Accept-Language: en-GB,en;q=0.8,en-US;q=0.6,nl;q=0.4,fr;q=0.2,ar;q=0.2,id;q=0.2
  17. Connection: keep-alive
  18. Content-Length: 5520916
  19. Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryThDhZ36VB7NpSn8D
  20. Cookie: uvt=; sessionid=pdp9esn8blf6bzxxrk66pq5l77oqaxiu; utma=51236845.2022956583.1488884773.1497886755.1497963749.8; utmz=51236845.1497963749.8.5.utmccn=(referral)|utmcsr=google.sn|utmcct=/|utmcmd=referral; unam=1c83e6d-15b8b6b5d95-70ae7b9d-5; csrftoken=TOq7dcrYO1U7u2FlsGuzfVCqg3Xp30t8; uvts=5jtlZ3JxS4CRnyTb
  21. Host: etools.unicef.org
  22. Origin: https://etools.unicef.org
  23. Referer: https://etools.unicef.org/pmp/agreements/new-agreement
  24. User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36
  25. x-csrftoken: TOq7dcrYO1U7u2FlsGuzfVCqg3Xp30t8
  26. Request Payload
  27. ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="id" null ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="authorized_officers[0]" 144 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="authorized_officers[1]" 145 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="agreement_type" PCA ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="attached_agreement"; filename="ADC-PDE_2500....PCA 2016_Prot_Accord legal.pdf" Content-Type: application/pdf ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="start" 2016-07-22 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="end" 2017-12-31 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="signed_by_unicef_date" 2016-07-22 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="signed_by_partner_date" 2016-07-22 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="status" draft ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="partner" 201 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="signed_by" 8443 ------WebKitFormBoundaryThDhZ36VB7NpSn8D Content-Disposition: form-data; name="partner_manager" 144 ------WebKitFormBoundaryThDhZ36VB7NpSn8D--
mpawlowski85 commented 7 years ago

Network Response:

<!DOCTYPE html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var o=e[t][1][n];return r(o||n)},o,o.exports)}return n[t].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<t.length;o++)r(t[o]);return r}({1:[function(e,n,t){function r(){}function o(e,n,t){return function(){return i(e,[c.now()].concat(u(arguments)),n?null:this,t),n?void 0:this}}var i=e("handle"),a=e(2),u=e(3),f=e("ee").get("tracer"),c=e("loader"),s=NREUM;"undefined"==typeof window.newrelic&&(newrelic=s);var p=["setPageViewName","setCustomAttribute","setErrorHandler","finished","addToTrace","inlineHit","addRelease"],d="api-",l=d+"ixn-";a(p,function(e,n){s[n]=o(d+n,!0,"api")}),s.addPageAction=o(d+"addPageAction",!0),s.setCurrentRouteName=o(d+"routeName",!0),n.exports=newrelic,s.interaction=function(){return(new r).get()};var m=r.prototype={createTracer:function(e,n){var t={},r=this,o="function"==typeof n;return i(l+"tracer",[c.now(),e,t],r),function(){if(f.emit((o?"":"no-")+"fn-start",[c.now(),r,o],t),o)try{return n.apply(this,arguments)}finally{f.emit("fn-end",[c.now()],t)}}}};a("setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(e,n){m[n]=o(l+n)}),newrelic.noticeError=function(e){"string"==typeof e&&(e=new Error(e)),i("err",[e,c.now()])}},{}],2:[function(e,n,t){function r(e,n){var t=[],r="",i=0;for(r in e)o.call(e,r)&&(t[i]=n(r,e[r]),i+=1);return t}var o=Object.prototype.hasOwnProperty;n.exports=r},{}],3:[function(e,n,t){function r(e,n,t){n||(n=0),"undefined"==typeof t&&(t=e?e.length:0);for(var r=-1,o=t-n||0,i=Array(o<0?0:o);++r<o;)i[r]=e[n+r];return i}n.exports=r},{}],4:[function(e,n,t){n.exports={exists:"undefined"!=typeof window.performance&&window.performance.timing&&"undefined"!=typeof window.performance.timing.navigationStart}},{}],ee:[function(e,n,t){function r(){}function o(e){function n(e){return e&&e instanceof r?e:e?f(e,u,i):i()}function t(t,r,o,i){if(!d.aborted||i){e&&e(t,r,o);for(var a=n(o),u=m(t),f=u.length,c=0;c<f;c++)u[c].apply(a,r);var p=s[y[t]];return p&&p.push([b,t,r,a]),a}}function l(e,n){v[e]=m(e).concat(n)}function m(e){return v[e]||[]}function w(e){return p[e]=p[e]||o(t)}function g(e,n){c(e,function(e,t){n=n||"feature",y[t]=n,n in s||(s[n]=[])})}var v={},y={},b={on:l,emit:t,get:w,listeners:m,context:n,buffer:g,abort:a,aborted:!1};return b}function i(){return new r}function a(){(s.api||s.feature)&&(d.aborted=!0,s=d.backlog={})}var u="nr@context",f=e("gos"),c=e(2),s={},p={},d=n.exports=o();d.backlog=s},{}],gos:[function(e,n,t){function r(e,n,t){if(o.call(e,n))return e[n];var r=t();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,n,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return e[n]=r,r}var o=Object.prototype.hasOwnProperty;n.exports=r},{}],handle:[function(e,n,t){function r(e,n,t,r){o.buffer([e],r),o.emit(e,n,t)}var o=e("ee").get("handle");n.exports=r,r.ee=o},{}],id:[function(e,n,t){function r(e){var n=typeof e;return!e||"object"!==n&&"function"!==n?-1:e===window?0:a(e,i,function(){return o++})}var o=1,i="nr@id",a=e("gos");n.exports=r},{}],loader:[function(e,n,t){function r(){if(!x++){var e=h.info=NREUM.info,n=d.getElementsByTagName("script")[0];if(setTimeout(s.abort,3e4),!(e&&e.licenseKey&&e.applicationID&&n))return s.abort();c(y,function(n,t){e[n]||(e[n]=t)}),f("mark",["onload",a()+h.offset],null,"api");var t=d.createElement("script");t.src="https://"+e.agent,n.parentNode.insertBefore(t,n)}}function o(){"complete"===d.readyState&&i()}function i(){f("mark",["domContent",a()+h.offset],null,"api")}function a(){return E.exists&&performance.now?Math.round(performance.now()):(u=Math.max((new Date).getTime(),u))-h.offset}var u=(new Date).getTime(),f=e("handle"),c=e(2),s=e("ee"),p=window,d=p.document,l="addEventListener",m="attachEvent",w=p.XMLHttpRequest,g=w&&w.prototype;NREUM.o={ST:setTimeout,CT:clearTimeout,XHR:w,REQ:p.Request,EV:p.Event,PR:p.Promise,MO:p.MutationObserver};var v=""+location,y={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-1026.min.js"},b=w&&g&&g[l]&&!/CriOS/.test(navigator.userAgent),h=n.exports={offset:u,now:a,origin:v,features:{},xhrWrappable:b};e(1),d[l]?(d[l]("DOMContentLoaded",i,!1),p[l]("load",r,!1)):(d[m]("onreadystatechange",o),p[m]("onload",r)),f("mark",["firstbyte",u],null,"api");var x=0,E=e(4)},{}]},{},["loader"]);</script><script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","queueTime":0,"licenseKey":"9074c0e444","agent":"","transactionName":"b1cBMERZVxVYVEAIC1YdJRFYW00PVlkbEQVKRg0BREsXEFBSQxJKWVURAVNVXAhNRGsXVgJzBBZTXVQDV0N4CBdMczMtYFFcEQ==","applicationID":"15607198","errorBeacon":"bam.nr-data.net","applicationTime":5478}</script>
<title>System Error</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Favicon -->
<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="/static/plugins/bootstrap/css/bootstrap.min.css">
<!-- Fonts from Font Awsome -->
<link rel="stylesheet" href="/static/css/font-awesome.min.css">
<!-- CSS Animate -->
<link rel="stylesheet" href="/static/css/animate.css">
<!-- Custom styles for this theme -->
<link rel="stylesheet" href="/static/css/main.css">
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic,600italic,700italic,900italic' rel='stylesheet' type='text/css'>
<!-- Feature detection -->
 <script src="/static/js/modernizr-2.6.2.min.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="static/js/html5shiv.js"></script>
<script src="static/js/respond.min.js"></script>
<![endif]-->
</head>
<body class="animated fadeIn">
<section id="error-container">

    <div class="block-error">

        <header>
            <h1 class="error">500</h1>

            <p class="text-center">Something went wrong.</p>
        </header>

        <p class="text-center">Our engineers have have been notified and will address the issue shortly</p>

        <div class="row">
            <div class="col-md-12">
                <a class="btn btn-info btn-block btn-3d" href="/">Back to Dashboard</a>
            </div>
        </div>
    </div>

</section>
 <!--Global JS-->
<script src="/static/js/jquery-1.10.2.min.js"></script>
<script src="/static/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/plugins/waypoints/waypoints.min.js"></script>
<script src="/static/js/application.js"></script>
</body>

<!DOCTYPE html>

eTools

500

Something went wrong.

Our engineers have have been notified and will address the issue shortly

anusenan commented 7 years ago

Understand from @robertavram that 452 will help fix this issue.

aldohunicef commented 7 years ago

Same issue is affecting Lebanon Production

aldohunicef commented 7 years ago

image

anusenan commented 7 years ago

@ntrncic - we need to look at the this card since it has a dependancy on PMP remediation?

ntrncic commented 7 years ago

@janpanchalingam1 @mpawlowski85 I was able to save an agreement for Lebanon and Burkina Faso in Demo. Please try and test again in demo

janpanchalingam1 commented 7 years ago

Passed testing in staging