Tags

  • AWS (7)
  • Apigee (3)
  • ArchLinux (5)
  • Array (6)
  • Backtracking (6)
  • BinarySearch (6)
  • C++ (19)
  • CI&CD (3)
  • Calculus (2)
  • DesignPattern (43)
  • DisasterRecovery (1)
  • Docker (8)
  • DynamicProgramming (20)
  • FileSystem (11)
  • Frontend (2)
  • FunctionalProgramming (1)
  • GCP (1)
  • Gentoo (6)
  • Git (15)
  • Golang (1)
  • Graph (10)
  • GraphQL (1)
  • Hardware (1)
  • Hash (1)
  • Kafka (1)
  • LinkedList (13)
  • Linux (27)
  • Lodash (2)
  • MacOS (3)
  • Makefile (1)
  • Map (5)
  • MathHistory (1)
  • MySQL (21)
  • Neovim (10)
  • Network (66)
  • Nginx (6)
  • Node.js (33)
  • OpenGL (6)
  • PriorityQueue (1)
  • ProgrammingLanguage (9)
  • Python (10)
  • RealAnalysis (20)
  • Recursion (3)
  • Redis (1)
  • RegularExpression (1)
  • Ruby (19)
  • SQLite (1)
  • Sentry (3)
  • Set (4)
  • Shell (3)
  • SoftwareEngineering (12)
  • Sorting (2)
  • Stack (4)
  • String (2)
  • SystemDesign (13)
  • Terraform (2)
  • Tree (24)
  • Trie (2)
  • TwoPointers (16)
  • TypeScript (3)
  • Ubuntu (4)
  • Home

    Sentry Post Process Forwarder - KafkaError

    Published Oct 12, 2020 [  Sentry  ]

    Sentry no more catches errors with this error, but the web interface still works.

    In some cases,the Post Process Forwarder gets into a bad state and you need to do some manual cleanup.

    1. Stop Sentry

       docker-compose stop
      
    2. Start only Zookeeper and Kafka

       docker start sentry_onpremise_kafka_1 sentry_onpremise_zookeeper_1
      
    3. Hop into the Kafka instance interactively

       docker exec -it sentry_onpremise_kafka_1 /bin/bash
      
    4. Receive consumers list

       kafka-consumer-groups --bootstrap-server 127.0.0.1:9092 --list
      
    5. Get group ifo

       kafka-consumer-groups --bootstrap-server 127.0.0.1:9092 --group snuba-post-processor -describe
      
    6. Set the offsets to latest

       kafka-consumer-groups --bootstrap-server 127.0.0.1:9092 --group snuba-post-processor --topic events --reset-offsets --to-latest --execute
      
    7. Exit Kafka instance

       exit
      
    8. Stop Zookeeper and Kafka

       docker stop sentry_onpremise_kafka_1 sentry_onpremise_zookeeper_1
      
    9. Restart Sentry

       docker-compose up
      

    References