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

MongoDb QAN doesn't show new queries beause of CappedPositionLost error

    Details

    • Type: Improvement
    • Status: New
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: QAN Agent
    • Labels:
      None

      Description

      For some reason MongoDb QAn stopped fetching queries…
      I checked QAN status and found an error:
      "

      getMore executor error: CappedPositionLost: CollectionScan died due to position in capped collection being deleted. Last seen record id: 

      I executed some commands suggested by Adamo:

      use <yourdb>
      db.getProfilingLevel()
      db.setProfilingLevel(0)
      db.system.profile.drop()

      After that the error was dissapeared, I generated some new data, then checked Mongo QAN - No new data :disappointed:
      I also restarted all services, but it didn’t help..
      In pmm-mongo-queries.log:

      2018/01/18 09:37:04.072763 WARNING data-sender Removed qan_1516268220061001909 because API returned 400: data.GetData: gzip: invalid header
      2018/01/18 09:37:04.080111 WARNING data-sender Removed qan_1516268220068944599 because API returned 400: data.GetData: unexpected EOF
      2018/01/18 09:47:34.077586 WARNING data-sender Removed qan_1516268820012313482 because API returned 400: data.GetData: gzip: invalid header

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  roma.novikov Roma Novikov
                  Reporter:
                  nailya.kutlubaeva Nailya Kutlubaeva
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1 hour
                    1h