Message: sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) BŁĄD: wstawianie lub modyfikacja na tabeli "oil_analysis_harmonogram" narusza klucz obcy "FK_device_id" DETAIL: Klucz (device_id_fkey)=(69436) nie występuje w tabeli "devices". [SQL: INSERT INTO cbm.oil_analysis_harmonogram (oil_analysis_harmonogram_id_pkey, ship_id_fkey, device_id_fkey, report_number, report_type_id_fkey) VALUES (%(oil_analysis_harmonogram_id_pkey)s, %(ship_id_fkey)s, %(device_id_fkey)s, %(report_number)s, %(report_type_id_fkey)s)] [parameters: {'oil_analysis_harmonogram_id_pkey': 688, 'ship_id_fkey': 344, 'device_id_fkey': '69436', 'report_number': '18241482127', 'report_type_id_fkey': '292'}] (Background on this error at: https://sqlalche.me/e/14/gkpj) // Werkzeug Debugger

IntegrityError

sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) BŁĄD: wstawianie lub modyfikacja na tabeli "oil_analysis_harmonogram" narusza klucz obcy "FK_device_id" DETAIL: Klucz (device_id_fkey)=(69436) nie występuje w tabeli "devices". [SQL: INSERT INTO cbm.oil_analysis_harmonogram (oil_analysis_harmonogram_id_pkey, ship_id_fkey, device_id_fkey, report_number, report_type_id_fkey) VALUES (%(oil_analysis_harmonogram_id_pkey)s, %(ship_id_fkey)s, %(device_id_fkey)s, %(report_number)s, %(report_type_id_fkey)s)] [parameters: {'oil_analysis_harmonogram_id_pkey': 688, 'ship_id_fkey': 344, 'device_id_fkey': '69436', 'report_number': '18241482127', 'report_type_id_fkey': '292'}] (Background on this error at: https://sqlalche.me/e/14/gkpj)

Traceback (most recent call last)

sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) BŁĄD: wstawianie lub modyfikacja na tabeli "oil_analysis_harmonogram" narusza klucz obcy "FK_device_id" DETAIL: Klucz (device_id_fkey)=(69436) nie występuje w tabeli "devices". [SQL: INSERT INTO cbm.oil_analysis_harmonogram (oil_analysis_harmonogram_id_pkey, ship_id_fkey, device_id_fkey, report_number, report_type_id_fkey) VALUES (%(oil_analysis_harmonogram_id_pkey)s, %(ship_id_fkey)s, %(device_id_fkey)s, %(report_number)s, %(report_type_id_fkey)s)] [parameters: {'oil_analysis_harmonogram_id_pkey': 688, 'ship_id_fkey': 344, 'device_id_fkey': '69436', 'report_number': '18241482127', 'report_type_id_fkey': '292'}] (Background on this error at: https://sqlalche.me/e/14/gkpj)

This is the Copy/Paste friendly version of the traceback.

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.

Console Locked

The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.

PIN: