Skip to content

OSError: DICOMTransit needs to check LocalDB permissions! #10

Description

@sentry

Sentry Issue: DICOMTRANSIT-29

OperationalError: attempt to write a readonly database
  File "LocalDB/query.py", line 141, in create_entry
    f'INSERT OR IGNORE INTO {table_name} ({key_field}) VALUES ("{key_field_value}")'

OSError: 
(7 additional frame(s) were not displayed)
...
  File "transitions/core.py", line 266, in execute
    machine.callback(func, event_data)
  File "transitions/core.py", line 1005, in callback
    func(*event_data.args, **event_data.kwargs)
  File "fsm.py", line 1019, in LocalDBCreateSubject
    LocalDB.API.set_CNBP(self.DICOM_package.MRN, self.DICOM_package.CNBPID)
  File "LocalDB/API.py", line 300, in set_CNBP
    database_path, CNBP_blueprint.table_name, CNBP_blueprint.keyfield, MRN
  File "LocalDB/query.py", line 145, in create_entry
    raise IOError()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions