Uploaded image for project: 'Percona Monitoring and Management'
  1. Percona Monitoring and Management
  2. PMM-927

Error "Cannot read property 'hasOwnProperty' of undefined" in QAN page for mongodb

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.2.2
    • Component/s: QAN Agent, QAN App
    • Labels:
      None
    • Sprint:
      27W2017Y (07/3-07/9), 28W2017Y (07/10-07/16 ) R, 29W2017Y (07/17-07/23)

      Description

      1. Install pmm  server
      2. Install pmm client
      3. Create collection in mongodb
      4. Enable monitoring for mongodb:queries
      5. Generate some data in mongo (inserts, find)

      Result: QAN main page for mongodb shows error "Cannot read property 'hasOwnProperty' of undefined"

      In JS-console:

      SyntaxError: Unexpected token S in JSON at position 0
      at JSON.parse (<anonymous>)
      at t.Fzro.e.json (vendor.c812c898c8214beff46f.bundle.js:469)
      at main.54b512abc7b0fc89e0db.bundle.js:1
      at e.invoke (vendor.c812c898c8214beff46f.bundle.js:750)
      at Object.onInvoke (vendor.c812c898c8214beff46f.bundle.js:348)
      at e.invoke (vendor.c812c898c8214beff46f.bundle.js:750)
      at r.run (vendor.c812c898c8214beff46f.bundle.js:750)
      at vendor.c812c898c8214beff46f.bundle.js:757
      at e.invokeTask (vendor.c812c898c8214beff46f.bundle.js:750)
      at Object.onInvokeTask (vendor.c812c898c8214beff46f.bundle.js:348)

      qan-api returns:

      Server Error:
      json: unsupported value: NaN
      
      Additionally, an error occurred when rendering the error page:
      Template errors/200.json not found
      
      
       [nailya.kutlubaeva@bm-qanqa05 percona-qa]$ mongo
      MongoDB shell version: 2.6.12
        Service Manager | unix-systemv
        Go Version      | 1.8
        Runtime Info    | linux/amd64
      ==================== PMM network check (sudo pmm-admin check-network):
        PMM Network Status
        Server Address | 10.10.11.50:8888
        Client Address | 10.10.11.54 
        * System Time
        NTP Server (0.pool.ntp.org)         | 2017-05-30 08:51:18 +0000 UTC
        PMM Server                          | 2017-05-30 08:51:18 +0000 GMT
        PMM Client                          | 2017-05-30 08:51:18 +0000 UTC
        PMM Server Time Drift               | OK
        PMM Client Time Drift               | OK
        PMM Client to PMM Server Time Drift | OK
        * Connection: Client --> Server
        -------------------- -------      
        SERVER SERVICE       STATUS       
        -------------------- -------      
        Consul API           OK           
        Prometheus API       OK           
        Query Analytics API  OK           
        Connection duration | 958.307┬Ás
        Request duration    | 1.539385ms
        Full round trip     | 2.497692ms
        * Connection: Client <-- Server
        ---------------- ------------------------------ ------------------ ------- ---------- ---------
        SERVICE TYPE     NAME                           REMOTE ENDPOINT    STATUS  HTTPS/TLS  PASSWORD 
        ---------------- ------------------------------ ------------------ ------- ---------- ---------
        linux:metrics    bm-qanqa05.bm.int.percona.com  10.10.11.54:42000  OK                 YES                   YES      
        mongodb:metrics  bm-qanqa05.bm.int.percona.com  10.10.11.54:42003  OK                 YES                   YES      
      ==================== PMM list (sudo pmm-admin list):
        pmm-admin 1.1.4
        PMM Server      | 10.10.11.50:8888 (password-protected)
        Client Name     | bm-qanqa05.bm.int.percona.com
        Client Address  | 10.10.11.54 
        Service Manager | unix-systemv
        ---------------- ------------------------------ ----------- -------- ---------------- --------------------
        SERVICE TYPE     NAME                           LOCAL PORT  RUNNING  DATA SOURCE      OPTIONS             
        ---------------- ------------------------------ ----------- -------- ---------------- --------------------
        mongodb:queries  bm-qanqa05.bm.int.percona.com  -           YES                 localhost:27017  query_examples=true 
        linux:metrics    bm-qanqa05.bm.int.percona.com  42000       YES                 -                                    
        mongodb:metrics  bm-qanqa05.bm.int.percona.com  42003       YES                 localhost:27017  

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                nailya.kutlubaeva Nailya Kutlubaeva
                Reporter:
                nailya.kutlubaeva Nailya Kutlubaeva
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: