Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Explosive Logs #174

@awwad

Description

@awwad

If the SQL server is not running, the clearinghouse's check_active_db_nodes log explodes. I'm currently looking at a 335 GB check_active_db_nodes.log file....

[2016-05-27 12:01:27.467222] CRITICAL 526751924 Unexpected exception in check_active_db_nodes.py: Traceback (most recent call last):
  File "/home/ch/deployment/clearinghouse/polling/check_active_db_nodes.py", line 104, in main
  File "/home/ch/deployment/clearinghouse/common/api/maindb.py", line 2198, in get_active_nodes_include_broken
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 162, in __iter__
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 965, in _fetch_all
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 238, in iterator
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 840, in execute_sql
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 79, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 97, in __exit__
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 124, in execute
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
OperationalError: (2006, 'MySQL server has gone away')

[2016-05-27 12:01:27.467593] CRITICAL 526751924 Unexpected exception in check_active_db_nodes.py: Traceback (most recent call last):
  File "/home/ch/deployment/clearinghouse/polling/check_active_db_nodes.py", line 104, in main
  File "/home/ch/deployment/clearinghouse/common/api/maindb.py", line 2198, in get_active_nodes_include_broken
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 162, in __iter__
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 965, in _fetch_all
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 238, in iterator
  File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 840, in execute_sql
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 79, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 97, in __exit__
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 124, in execute
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
OperationalError: (2006, 'MySQL server has gone away')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions