Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while logging #1

Open
andrew8er opened this issue Nov 4, 2019 · 0 comments
Open

Error while logging #1

andrew8er opened this issue Nov 4, 2019 · 0 comments
Assignees

Comments

@andrew8er
Copy link

This is the output from anfema/lokato-cache-worker@5bb1bf5d9ad350f3c6d9080b65de4a966ba4ba34 (integration)

--- Logging error ---
Traceback (most recent call last):
  File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_handler.py", line 203, in async_emit
    hostname_id=host.pk
  File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_models/model.py", line 65, in create
    data = await db.fetchrow(sql, *values)
  File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/asyncpg/connection.py", line 454, in fetchrow
    self._check_open()
  File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/asyncpg/connection.py", line 1147, in _check_open
    raise exceptions.InterfaceError('connection is closed')
asyncpg.exceptions._base.InterfaceError: connection is closed
Call stack:
  File "worker.py", line 65, in <module>
    run_server(config)
  File "/app/cache-worker/server/__init__.py", line 166, in run_server
    loop.run_until_complete(task)
  File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_handler.py", line 139, in log_emitter
    await self.async_emit(record)
  File "/root/.local/share/virtualenvs/cache-worker-v7-zHEPP/lib/python3.7/site-packages/dblogger/async_handler.py", line 221, in async_emit
    self.handleError(record)

Config:

{
    "db": {
        "default": {
            "dbname": "lokato",
            "host": "postgres",
            "password": "cache_worker",
            "pool": {
                "max": 20,
                "min": 5
            },
            "port": 5432,
            "user": "cache_worker"
        },
        "geocoder": {
            "dbname": "geocoder",
            "host": "postgres",
            "password": "geocoder",
            "pool": {
                "max": 20,
                "min": 5
            },
            "port": 5432,
            "user": "geocoder"
        },
        "privileged": {
            "dbname": "lokato",
            "host": "postgres",
            "password": "privileged",
            "pool": {
                "max": 10,
                "min": 2
            },
            "port": 5432,
            "user": "privileged"
        }
    },
    "environment": "integration",
    "logger": {
        "db": {
            "dbname": "journal",
            "host": "postgres",
            "password": "journal",
            "port": 5432,
            "user": "journal"
        },
        "level": "DEBUG",
        "name": "cache-worker"
    },
    // ...
}
@dunkelstern dunkelstern transferred this issue from anfema/dblogger-native Nov 4, 2019
@dunkelstern dunkelstern self-assigned this Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants