Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.

Checking data in backdrop

Ralph edited this page Aug 22, 2013 · 2 revisions

Hitting an endpoint like this should bring back some data. https://preview.alpagov.co.uk/performance/my-service/my-module-to-check

To look into what's going on behind the scenes:

  • ssh datainsight-1.backdrop.preview

  • check logs of write.backdrop

    • cd /data/vhost/write.preview.alphagov.co.uk less production.log
    • jump into 'current'
    • cd log
    • less production.log | grep -ir 'my-module' --color=auto (or zgrep or whatever)

    Nothing there? Maybe cron logs can tell you something

    • cd /data/vhost/write.preview.alphagov.co.uk/shared/log && ls -laG
    • zgrep 'my-module' cron.*

Still nothing?

Check mongo?

  • ssh mongo-1.backend.preview
  • check is master - mongo.isMaster()
  • if it's not, ssh onto the primary one (e.g. ssh mongo-3 etc)
  • show dbs / use backdrop / show collections / db.myCollection.find().pretty()

Clone this wiki locally