Skip to content

Finalising all rsyncers through the instrument server seems to cause connection issues with the database #530

@d-j-hatton

Description

@d-j-hatton

The first error log:

`sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

[SQL: SELECT session.id, session.name, session.visit, session.started, session.current_gain_ref, session.instrument_name
FROM session
WHERE session.id = %(id_1)s]
[parameters: {'id_1': 22}]
(Background on this error at: https://sqlalche.me/e/20/e3q8)`

occurring in validate_instrument_server_session_token in auth.

The rsyncer finalisatons happen outside of threads (

kwargs={"thread": False},
) which may cause issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingweb ui

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions